Skip to contentSkip to conversation

gtkmm4: remove x11 from REQUIRED_DISTRO_FEATURES

PATCH New Changqing Li 1 participant 7 messages Apr 14

lore
Share & tools
lore
#0 lore raw

PATCH 1/7 gtkmm4: remove x11 from REQUIRED_DISTRO_FEATURES

We add x11 into REQUIRED_DISTRO_FEATURES because one of the dependency atkmm requires x11, refer [1], remove atkmm from dependency, and remove x11 from REQUIRED_DISTRO_FEATURES

[1] https://gitlab.gnome.org/GNOME/gtkmm/-/commit/0fc81d346f50bfc30f6fb78afe6a15331c5a8790

---
 meta-oe/recipes-gnome/gtk+/gtkmm4_4.20.0.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-gnome/gtk+/gtkmm4_4.20.0.bb +2 -2
index 0e08bed8a1..e0b91f02a9 100644
@@ -8,13 +8,13 @@ LIC_FILES_CHKSUM = " \
 	file://COPYING.tools;md5=570a9b3749dd0463a1778803b12a6dce \
 "
 
-DEPENDS = "glib-2.0-native atkmm pangomm-2.48 glibmm gtk4 cairomm-1.16 gdk-pixbuf-native"
+DEPENDS = "glib-2.0-native pangomm-2.48 glibmm gtk4 cairomm-1.16 gdk-pixbuf-native"
 
 GNOMEBN = "gtkmm"
 
 inherit gnomebase features_check
 
-REQUIRED_DISTRO_FEATURES = "opengl x11"
+REQUIRED_DISTRO_FEATURES = "opengl"
 
 SRC_URI[archive.sha256sum] = "daad9bf9b70f90975f91781fc7a656c923a91374261f576c883cd3aebd59c833"
 
Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/7 pavucontrol: remove x11 from REQUIRED_DISTRO_FEATURES

We add x11 into REQUIRED_DISTRO_FEATURES because one of the dependency gtkmm4 require x11, now, gtkmm4 don't require x11, so remove x11 from REQUIRED_DISTRO_FEATURES

---
 meta-oe/recipes-multimedia/pulseaudio/pavucontrol_6.2.bb | 1 -
 1 file changed, 1 deletion(-)
meta-oe/recipes-multimedia/pulseaudio/pavucontrol_6.2.bb +0 -1
index 9e54f49dcb..b6b9a068a9 100644
@@ -9,7 +9,6 @@ DEPENDS = "gtkmm4 pulseaudio json-glib"
 inherit meson features_check pkgconfig gettext
 
 ANY_OF_DISTRO_FEATURES = "opengl vulkan"
-REQUIRED_DISTRO_FEATURES = "x11"
 
 SRC_URI = "http://www.freedesktop.org/software/pulseaudio/${BPN}/${BP}.tar.xz"
 SRC_URI[sha256sum] = "e93a7836c7307dcbc989e95fc7ec0878322514c475fabd90e89ed52fd4f15d32"
Signature · 1 line
2.34.1
#2 lore raw

PATCH 3/7 xfce4-pulseaudio-plugin: remove x11 from REQUIRED_DISTRO_FEATURES

In reply to Changqing Li

We add x11 into REQUIRED_DISTRO_FEATURES because one of the dependency pavucontrol requires x11, now, pavucontrol doesn't require x11, so remove x11 from REQUIRED_DISTRO_FEATURES

---
 .../pulseaudio/xfce4-pulseaudio-plugin_0.5.1.bb                 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-xfce/recipes-panel-plugins/pulseaudio/xfce4-pulseaudio-plugin_0.5.1.bb +1 -1
index 4f823c67b5..2fa76351a4 100644
@@ -7,7 +7,7 @@ XFCE_COMPRESS_TYPE = "xz"
 
 inherit xfce-panel-plugin features_check
 
-REQUIRED_DISTRO_FEATURES = "pulseaudio ${@bb.utils.contains_any('DISTRO_FEATURES', 'opengl vulkan', 'x11', '', d)}"
+REQUIRED_DISTRO_FEATURES = "pulseaudio"
 
 DEPENDS += "dbus-glib pulseaudio"
 
Signature · 1 line
2.34.1
#3 lore raw

PATCH 4/7 xfce4-panel: Remove x11 from REQUIRED_DISTRO_FEATURES

In reply to Changqing Li

Dependency on libwnck3 is moved into PACKAGECONFIG, so we can remove x11 from REQUIRED_DISTRO_FEATURES, set ANY_OF_DISTRO_FEATURES

---
 .../recipes-xfce/xfce4-panel/xfce4-panel_4.21.1.bb   | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
meta-xfce/recipes-xfce/xfce4-panel/xfce4-panel_4.21.1.bb +7 -5
index b3cf4b2559..00c9352dec 100644
@@ -3,9 +3,7 @@ HOMEPAGE = "https://docs.xfce.org/xfce/xfce4-panel/start"
 SECTION = "x11"
 LICENSE = "GPL-2.0-or-later"
 LIC_FILES_CHKSUM = "file://COPYING;md5=26a8bd75d8f8498bdbbe64a27791d4ee"
-DEPENDS = "garcon exo gtk+3 cairo virtual/libx11 libxfce4windowing libxml2 \
-           libwnck3 vala-native \
-           "
+DEPENDS = "garcon exo cairo libxml2 vala-native gtk+3 libxfce4windowing"
 
 XFCE_COMPRESS_TYPE = "xz"
 XFCEBASEBUILDCLASS = "meson"
@@ -13,8 +11,6 @@ GTKDOC_MESON_OPTION = "gtk-doc"
 
 inherit xfce gtk-doc gobject-introspection features_check mime-xdg
 
-REQUIRED_DISTRO_FEATURES = "x11"
-
 SRC_URI += " \
     file://0001-windowmenu-do-not-display-desktop-icon-when-no-windo.patch \
     file://0002-use-lxdm-to-replace-dm-tool.patch \
@@ -24,6 +20,12 @@ SRC_URI[sha256sum] = "c940dae515bef4af08a126011d2fd873ce99e815157ba8cef5332195bb
 
 EXTRA_OEMESON += "-Dvala=disabled"
 
+ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
+
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'wayland x11', d)}"
+PACKAGECONFIG[x11] = "-Dx11=enabled, -Dx11=disabled, virtual/libx11 libwnck3 libxext"
+PACKAGECONFIG[wayland] = "-Dwayland=enabled, -Dwayland=disabled, wayland wayland-native wayland-protocols"
+
 python populate_packages:prepend() {
     plugin_dir = d.expand('${libdir}/xfce4/panel/plugins/')
     plugin_name = d.expand('${PN}-plugin-%s')
Signature · 1 line
2.34.1
#4 lore raw

PATCH 5/7 thunar: remove x11 from REQUIRED_DISTRO_FEATURES

In reply to Changqing Li

We add x11 into REQUIRED_DISTRO_FEATURES since xfce4-panel requires it, now, xfce4-panel not require x11, so remove x11 from REQUIRED_DISTRO_FEATURES

---
 meta-xfce/classes/thunar-plugin.bbclass       |  4 +-
 .../shares/thunar-shares-plugin_0.5.0.bb      |  3 +-
 .../0001-Properly-guard-gdkx.h-include.patch  | 37 +++++++++++++++++++
 .../recipes-xfce/thunar/thunar_4.21.5.bb      |  8 ++--
 4 files changed, 44 insertions(+), 8 deletions(-)
 create mode 100644 meta-xfce/recipes-xfce/thunar/files/0001-Properly-guard-gdkx.h-include.patch
meta-xfce/classes/thunar-plugin.bbclass +1 -3
index 82a1be6347..f38996d26e 100644
@@ -1,6 +1,4 @@
-inherit xfce features_check
-
-REQUIRED_DISTRO_FEATURES = "x11"
+inherit xfce
 
 DEPENDS += "thunar"
 
meta-xfce/recipes-thunar-plugins/shares/thunar-shares-plugin_0.5.0.bb +2 -1
index b8a18c2f51..b270ad0838 100644
@@ -5,7 +5,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
 
 inherit thunar-plugin features_check
 
-REQUIRED_DISTRO_FEATURES = "pam x11"
+ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
+REQUIRED_DISTRO_FEATURES = "pam"
 
 SRC_URI[sha256sum] = "34d4d69d413e63837c5083506b4dbf65f1fd2efe17667b1d7ad0699e1e2eb07d"
 
meta-xfce/recipes-xfce/thunar/files/0001-Properly-guard-gdkx.h-include.patch new file +37 -0
new file mode 100644
index 0000000000..9d4afc7167
@@ -0,0 +1,37 @@
+From dd7fbf4540891053a4083228aac2485e6c469199 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ga=C3=ABl=20Bonithon?= <[email protected]>
+Date: Sat, 11 Apr 2026 18:07:05 +0200
+Subject: [PATCH] Properly guard gdkx.h include
+
+Fixes: #1820
+
+Upstream-Status: Backport [https://gitlab.xfce.org/xfce/thunar/-/commit/201f8ca0c3bc7b5e651201526fc3006a130718eb]
+
+Signed-off-by: Changqing Li <[email protected]>
+---
+ thunar/thunar-session-client.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/thunar/thunar-session-client.c b/thunar/thunar-session-client.c
+index c36719c..2832818 100644
+--- a/thunar/thunar-session-client.c
++++ b/thunar/thunar-session-client.c
+@@ -30,6 +30,7 @@
+ 
+ #ifdef ENABLE_LIBSM
+ #include <X11/SM/SMlib.h>
++#include <gdk/gdkx.h>
+ #endif
+ 
+ #include "thunar/thunar-application.h"
+@@ -38,7 +39,6 @@
+ #include "thunar/thunar-private.h"
+ #include "thunar/thunar-session-client.h"
+ 
+-#include <gdk/gdkx.h>
+ #include <glib/gstdio.h>
+ 
+ 
+-- 
+2.34.1
+
meta-xfce/recipes-xfce/thunar/thunar_4.21.5.bb +4 -4
index 32d4c39aa5..d8e9edfc25 100644
@@ -9,15 +9,15 @@ XFCE_COMPRESS_TYPE = "xz"
 XFCEBASEBUILDCLASS = "meson"
 GTKDOC_MESON_OPTION = "gtk-doc"
 
-inherit xfce gobject-introspection features_check mime-xdg perlnative gtk-doc
-
-REQUIRED_DISTRO_FEATURES = "x11"
+inherit xfce gobject-introspection mime-xdg perlnative gtk-doc
 
 SRC_URI[sha256sum] = "eddbd4bab29c73718734e0bfcf650ceea8b4fcc8cb2cbb0b24fe22b286a2be00"
 
+SRC_URI += "file://0001-Properly-guard-gdkx.h-include.patch"
+
 PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}"
 PACKAGECONFIG[pcre] = "-Dpcre2=enabled,-Dpcre2=disabled,libpcre2"
-PACKAGECONFIG[x11] = "-Dx11=enabled -Dsession-management=enabled,-Dx11=disabled,libsm startup-notification"
+PACKAGECONFIG[x11] = "-Dx11=enabled -Dsession-management=enabled,-Dx11=disabled,libsm startup-notification virtual/libx11"
 
 FILES:${PN} += " \
     ${libdir}/thunarx-3/* \
Signature · 1 line
2.34.1
#5 lore raw

PATCH 6/7 libxfce4ui: add wayland PACKAGECONFIG

In reply to Changqing Li

Add wayland PACKAGECONFIG and add wayland and x11 dependency explicitly

---
 meta-xfce/recipes-xfce/libxfce4ui/libxfce4ui_4.21.7.bb | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
meta-xfce/recipes-xfce/libxfce4ui/libxfce4ui_4.21.7.bb +4 -5
index e672eae540..9c86da48e6 100644
@@ -3,7 +3,7 @@ HOMEPAGE = "https://docs.xfce.org/xfce/libxfce4ui/start"
 SECTION = "x11/libs"
 LICENSE = "LGPL-2.0-or-later"
 LIC_FILES_CHKSUM = "file://COPYING;md5=4cf66a4984120007c9881cc871cf49db"
-DEPENDS = "intltool-native perl-native gtk+3 libxfce4util xfce4-dev-tools xfconf"
+DEPENDS = "intltool-native perl-native gtk+3 libxfce4util xfce4-dev-tools xfconf gdk-pixbuf"
 
 XFCE_COMPRESS_TYPE = "xz"
 XFCEBASEBUILDCLASS = "meson"
@@ -26,7 +26,6 @@ SRC_URI[sha256sum] = "a72a7af39cf183819bcfb61b1747d425261e966ccb172b2fc28f1494f5
 
 EXTRA_OEMESON = "-Dvala=disabled -Dvendor-info=${DISTRO}"
 
-PACKAGECONFIG ??= " \
-       ${@bb.utils.contains('DISTRO_FEATURES', 'x11','x11', "", d)} \
-"
-PACKAGECONFIG[x11] = "-Dstartup-notification=enabled,-Dstartup-notification=disabled,libepoxy libice libsm startup-notification"
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'wayland x11', d)}"
+PACKAGECONFIG[x11] = "-Dsession-management=enabled -Dstartup-notification=enabled,-Dsession-management=disabled -Dstartup-notification=disabled,libepoxy libice libsm startup-notification"
+PACKAGECONFIG[wayland] = "-Dwayland=enabled, -Dwayland=disabled,"
Signature · 1 line
2.34.1
#6 lore raw

PATCH 7/7 parole: fix do_compile failure

In reply to Changqing Li

Fix build failure:
/build/tmp/work/x86-64-v3-poky-linux/parole/4.18.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-ld: parole-conf.o: undefined reference to symbol 'xfce_rc_close' /build/tmp/work/x86-64-v3-poky-linux/parole/4.18.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-ld: /build/tmp/work/x86-64-v3-poky-linux/parole/4.18.2/recipe-sysroot/usr/lib/libxfce4util.so.7: error adding symbols: DSO missing from command line

---
 ...0001-Makefile.am-fix-compile-failure.patch | 31 +++++++++++++++++++
 .../parole/parole_4.18.2.bb                   |  3 +-
 2 files changed, 33 insertions(+), 1 deletion(-)
 create mode 100644 meta-xfce/recipes-multimedia/parole/files/0001-Makefile.am-fix-compile-failure.patch
meta-xfce/recipes-multimedia/parole/files/0001-Makefile.am-fix-compile-failure.patch new file +31 -0
new file mode 100644
index 0000000000..f84f6e5388
@@ -0,0 +1,31 @@
+From 34ff86795396c320a9e19641d9d226190b7fdfc6 Mon Sep 17 00:00:00 2001
+From: Changqing Li <[email protected]>
+Date: Sun, 12 Apr 2026 19:30:23 +0800
+Subject: [PATCH] Makefile.am: fix compile failure
+
+Fix build failure:
+/build/tmp/work/x86-64-v3-poky-linux/parole/4.18.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-ld: parole-conf.o: undefined reference to symbol 'xfce_rc_close'
+/build/tmp/work/x86-64-v3-poky-linux/parole/4.18.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-ld: /build/tmp/work/x86-64-v3-poky-linux/parole/4.18.2/recipe-sysroot/usr/lib/libxfce4util.so.7: error adding symbols: DSO missing from command line
+
+Upstream-Status: Submitted [https://gitlab.xfce.org/apps/parole/-/issues/146]
+
+Signed-off-by: Changqing Li <[email protected]>
+---
+ src/Makefile.am | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 920b708..244c14c 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -90,6 +90,7 @@ parole_LDADD =						   	\
+ 	$(GMODULE_LIBS)				\
+ 	$(DBUS_GLIB_LIBS)                       \
+ 	$(LIBXFCE4UI_LIBS)                     \
++	$(LIBXFCE4UTIL_LIBS)                \
+ 	$(XFCONF_LIBS)                     \
+ 	$(GST_VIDEO_LIBS)			\
+ 	$(TAGLIBC_LIBS)				\
+-- 
+2.34.1
+
meta-xfce/recipes-multimedia/parole/parole_4.18.2.bb +2 -1
index 7787196fdd..1d2c858a2d 100644
@@ -11,11 +11,12 @@ DEPENDS += " \
     libxfce4util \
     libxfce4ui \
     xfconf \
-    \
     gstreamer1.0-plugins-base \
     taglib \
 "
 
+SRC_URI += "file://0001-Makefile.am-fix-compile-failure.patch"
+
 SRC_URI[sha256sum] = "6625288b760d38a15c295051ecf66c556fcad21dd1516d6d661c2a582421ee0e"
 
 RDEPENDS:${PN} += "gstreamer1.0-plugins-good"
Signature · 1 line
2.34.1