diff options
| -rw-r--r-- | meta-xfce/recipes-xfce/xfconf/xfconf/0001-build-Make-sure-gdbus-headers-are-generated-before-i.patch | 116 | ||||
| -rw-r--r-- | meta-xfce/recipes-xfce/xfconf/xfconf_4.21.2.bb (renamed from meta-xfce/recipes-xfce/xfconf/xfconf_4.20.0.bb) | 12 |
2 files changed, 123 insertions, 5 deletions
diff --git a/meta-xfce/recipes-xfce/xfconf/xfconf/0001-build-Make-sure-gdbus-headers-are-generated-before-i.patch b/meta-xfce/recipes-xfce/xfconf/xfconf/0001-build-Make-sure-gdbus-headers-are-generated-before-i.patch new file mode 100644 index 0000000000..35bed60b11 --- /dev/null +++ b/meta-xfce/recipes-xfce/xfconf/xfconf/0001-build-Make-sure-gdbus-headers-are-generated-before-i.patch | |||
| @@ -0,0 +1,116 @@ | |||
| 1 | From 6fc6e4408ea021ee8a210e691f1a13b807121a3c Mon Sep 17 00:00:00 2001 | ||
| 2 | From: =?UTF-8?q?Ga=C3=ABl=20Bonithon?= <gael@xfce.org> | ||
| 3 | Date: Thu, 19 Mar 2026 18:33:41 +0100 | ||
| 4 | Subject: [PATCH] build: Make sure gdbus headers are generated before including | ||
| 5 | them | ||
| 6 | |||
| 7 | Fixes: #48 | ||
| 8 | |||
| 9 | Upstream-Status: Backport [https://gitlab.xfce.org/xfce/xfconf/-/commit/6fc6e4408ea021ee8a210e691f1a13b807121a3c] | ||
| 10 | |||
| 11 | Signed-off-by: Zhang Peng <peng.zhang1.cn@windriver.com> | ||
| 12 | --- | ||
| 13 | .scan-build-false-positives | 2 ++ | ||
| 14 | common/meson.build | 36 +++++++++++++++++++----------------- | ||
| 15 | xfconf/meson.build | 5 ++++- | ||
| 16 | xfconfd/meson.build | 1 + | ||
| 17 | 4 files changed, 26 insertions(+), 18 deletions(-) | ||
| 18 | |||
| 19 | diff --git a/.scan-build-false-positives b/.scan-build-false-positives | ||
| 20 | index d925d3f..7ab5ec6 100644 | ||
| 21 | --- a/.scan-build-false-positives | ||
| 22 | +++ b/.scan-build-false-positives | ||
| 23 | @@ -1,5 +1,7 @@ | ||
| 24 | # gdbus-codegen generated code | ||
| 25 | xfconf-gdbus-bindings.c:[0-9]+:[0-9]+: warning: Value stored to .+skeleton.+ during its initialization is never read \[deadcode.DeadStores\] | ||
| 26 | +xfconf-gdbus-bindings.c:[0-9]+:[0-9]+: warning: Value stored to .+skeleton.+ during its initialization is never read \[deadcode.DeadStores\] | ||
| 27 | +xfconf-gdbus-bindings.c:[0-9]+:[0-9]+: warning: Value stored to .+skeleton.+ during its initialization is never read \[deadcode.DeadStores\] | ||
| 28 | |||
| 29 | # gobject-introspection generated code | ||
| 30 | Xfconf-0.c:[0-9]+:[0-9]+: warning: Access to field .+message.+ results in a dereference of a null pointer \(loaded from variable .+error.+\) \[core.NullDereference\] | ||
| 31 | diff --git a/common/meson.build b/common/meson.build | ||
| 32 | index 08acd5b..fe30c38 100644 | ||
| 33 | --- a/common/meson.build | ||
| 34 | +++ b/common/meson.build | ||
| 35 | @@ -22,6 +22,24 @@ xfconf_visibility_sources += configure_file( | ||
| 36 | command: [xdt_gen_visibility, '--kind=source', '@INPUT@', '@OUTPUT@'], | ||
| 37 | ) | ||
| 38 | |||
| 39 | +xfconf_dbus_xml = configure_file( | ||
| 40 | + configuration: configuration_data({ | ||
| 41 | + 'XFCONF_SERVICE_NAME_PREFIX': xfconf_service_name_prefix, | ||
| 42 | + 'XFCONF_SERVICE_PATH_PREFIX': xfconf_service_path_prefix, | ||
| 43 | + }), | ||
| 44 | + input: 'xfconf-dbus.xml.in', | ||
| 45 | + output: 'xfconf-dbus.xml', | ||
| 46 | +) | ||
| 47 | + | ||
| 48 | +xfconf_gdbus_sources = gnome.gdbus_codegen( | ||
| 49 | + 'xfconf-gdbus-bindings', | ||
| 50 | + sources: xfconf_dbus_xml, | ||
| 51 | + interface_prefix: '@0@.Xfconf'.format(xfconf_service_name_prefix), | ||
| 52 | + namespace: 'Xfconf', | ||
| 53 | + annotations: ['@0@.Xfconf'.format(xfconf_service_name_prefix), 'org.gtk.GDBus.C.Name', 'Exported'], | ||
| 54 | + install_header: false, | ||
| 55 | +) | ||
| 56 | + | ||
| 57 | xfconf_common = static_library( | ||
| 58 | 'xfconf-common', | ||
| 59 | xfconf_common_sources, | ||
| 60 | @@ -61,25 +79,9 @@ xfconf_gvaluefuncs = static_library( | ||
| 61 | install: false, | ||
| 62 | ) | ||
| 63 | |||
| 64 | -xfconf_dbus_xml = configure_file( | ||
| 65 | - configuration: configuration_data({ | ||
| 66 | - 'XFCONF_SERVICE_NAME_PREFIX': xfconf_service_name_prefix, | ||
| 67 | - 'XFCONF_SERVICE_PATH_PREFIX': xfconf_service_path_prefix, | ||
| 68 | - }), | ||
| 69 | - input: 'xfconf-dbus.xml.in', | ||
| 70 | - output: 'xfconf-dbus.xml', | ||
| 71 | -) | ||
| 72 | - | ||
| 73 | xfconf_dbus = static_library( | ||
| 74 | 'xfconf-dbus', | ||
| 75 | - gnome.gdbus_codegen( | ||
| 76 | - 'xfconf-gdbus-bindings', | ||
| 77 | - sources: xfconf_dbus_xml, | ||
| 78 | - interface_prefix: '@0@.Xfconf'.format(xfconf_service_name_prefix), | ||
| 79 | - namespace: 'Xfconf', | ||
| 80 | - annotations: ['@0@.Xfconf'.format(xfconf_service_name_prefix), 'org.gtk.GDBus.C.Name', 'Exported'], | ||
| 81 | - install_header: false, | ||
| 82 | - ), | ||
| 83 | + xfconf_gdbus_sources, | ||
| 84 | c_args: [ | ||
| 85 | '-DG_LOG_DOMAIN="@0@"'.format('xfconf-common'), | ||
| 86 | ], | ||
| 87 | diff --git a/xfconf/meson.build b/xfconf/meson.build | ||
| 88 | index e3ecd55..15cafa5 100644 | ||
| 89 | --- a/xfconf/meson.build | ||
| 90 | +++ b/xfconf/meson.build | ||
| 91 | @@ -39,7 +39,10 @@ xfconf_version = '@0@.0.0'.format(xfconf_so_version) | ||
| 92 | xfconf = library( | ||
| 93 | xfconf_pkgname, | ||
| 94 | xfconf_sources, | ||
| 95 | - sources: xfconf_visibility_sources, | ||
| 96 | + sources: [ | ||
| 97 | + xfconf_visibility_sources, | ||
| 98 | + xfconf_gdbus_sources, | ||
| 99 | + ], | ||
| 100 | version: xfconf_version, | ||
| 101 | soversion: xfconf_so_version, | ||
| 102 | c_args: [ | ||
| 103 | diff --git a/xfconfd/meson.build b/xfconfd/meson.build | ||
| 104 | index 6e46a58..13e614e 100644 | ||
| 105 | --- a/xfconfd/meson.build | ||
| 106 | +++ b/xfconfd/meson.build | ||
| 107 | @@ -56,6 +56,7 @@ executable( | ||
| 108 | sources: [ | ||
| 109 | xfce_revision_h, | ||
| 110 | xfconf_visibility_sources, | ||
| 111 | + xfconf_gdbus_sources, | ||
| 112 | ], | ||
| 113 | c_args: c_args, | ||
| 114 | include_directories: [ | ||
| 115 | -- | ||
| 116 | 2.50.0 | ||
diff --git a/meta-xfce/recipes-xfce/xfconf/xfconf_4.20.0.bb b/meta-xfce/recipes-xfce/xfconf/xfconf_4.21.2.bb index 168bd4d790..fbc0cffccc 100644 --- a/meta-xfce/recipes-xfce/xfconf/xfconf_4.20.0.bb +++ b/meta-xfce/recipes-xfce/xfconf/xfconf_4.21.2.bb | |||
| @@ -5,11 +5,14 @@ LICENSE = "GPL-2.0-or-later" | |||
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" |
| 6 | DEPENDS = "libxfce4util perl intltool-native xfce4-dev-tools-native" | 6 | DEPENDS = "libxfce4util perl intltool-native xfce4-dev-tools-native" |
| 7 | 7 | ||
| 8 | inherit xfce gtk-doc gobject-introspection bash-completion vala | 8 | XFCE_COMPRESS_TYPE = "xz" |
| 9 | XFCEBASEBUILDCLASS = "meson" | ||
| 10 | GTKDOC_MESON_OPTION = "gtk-doc" | ||
| 9 | 11 | ||
| 10 | EXTRA_OECONF += "GDBUS_CODEGEN=${STAGING_BINDIR_NATIVE}/gdbus-codegen" | 12 | inherit xfce gtk-doc gobject-introspection bash-completion vala |
| 11 | 13 | ||
| 12 | SRC_URI[sha256sum] = "8bc43c60f1716b13cf35fc899e2a36ea9c6cdc3478a8f051220eef0f53567efd" | 14 | SRC_URI += "file://0001-build-Make-sure-gdbus-headers-are-generated-before-i.patch" |
| 15 | SRC_URI[sha256sum] = "99aa4366e909ba7b9f746aba48b610b9e9d2933aeb283c7fa5f37a7c3dc7a3a6" | ||
| 13 | 16 | ||
| 14 | FILES:${PN} += "${libdir}/xfce4/xfconf/xfconfd \ | 17 | FILES:${PN} += "${libdir}/xfce4/xfconf/xfconfd \ |
| 15 | ${libdir}/gio/modules/libxfconfgsettingsbackend.so \ | 18 | ${libdir}/gio/modules/libxfconfgsettingsbackend.so \ |
| @@ -17,6 +20,5 @@ FILES:${PN} += "${libdir}/xfce4/xfconf/xfconfd \ | |||
| 17 | ${systemd_user_unitdir}/xfconfd.service \ | 20 | ${systemd_user_unitdir}/xfconfd.service \ |
| 18 | " | 21 | " |
| 19 | 22 | ||
| 20 | FILES:${PN}-dev += "${libdir}/gio/modules/libxfconfgsettingsbackend.la" | 23 | PACKAGECONFIG[gsettings-backend] = "-Dgsettings-backend=true,-Dgsettings-backend=false," |
| 21 | 24 | ||
| 22 | PACKAGECONFIG[gsettings-backend] = "--enable-gsettings-backend,--disable-gsettings-backend," | ||
