summaryrefslogtreecommitdiff
path: root/0001-packagekitd-Use-export_dynamic-explicitly.patch
diff options
context:
space:
mode:
Diffstat (limited to '0001-packagekitd-Use-export_dynamic-explicitly.patch')
-rw-r--r--0001-packagekitd-Use-export_dynamic-explicitly.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/0001-packagekitd-Use-export_dynamic-explicitly.patch b/0001-packagekitd-Use-export_dynamic-explicitly.patch
new file mode 100644
index 0000000..4a16757
--- /dev/null
+++ b/0001-packagekitd-Use-export_dynamic-explicitly.patch
@@ -0,0 +1,28 @@
+From 70594bbe7b3c61b7f9fe58cb77ddaeb630e7276f Mon Sep 17 00:00:00 2001
+From: Dominique Leuenberger <dimstar@opensuse.org>
+Date: Mon, 17 Jul 2023 15:24:14 +0200
+Subject: [PATCH] packagekitd: Use export_dynamic explicitly
+
+We used to get that implicitly through GModule .pc file defining -Wl,--export-dynamic so that modules could reference symbols in the main executable.
+
+With newer GLib including glib@11bdd6fc the gmodule .pc file will no longer define this compiler flag in a way that works for us, resulting in errors like:
+packagekitd[2394]: Failed to load the backend: opening module zypp failed : /usr/lib64/packagekit-backend/libpk_backend_zypp.so: undefined symbol: pk_backend_job_require_restart
+---
+ src/meson.build | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/meson.build b/src/meson.build
+index cae73380e..a47169c2b 100644
+--- a/src/meson.build
++++ b/src/meson.build
+@@ -76,6 +76,7 @@ packagekitd_exec = executable(
+ ],
+ install: true,
+ install_dir: get_option('libexecdir'),
++ export_dynamic: true,
+ c_args: [
+ '-DPK_BUILD_DAEMON=1',
+ '-DG_LOG_DOMAIN="PackageKit"',
+--
+2.41.0
+