From 37a9b4baf8f7be5e1f450fce36375bc7e61c6608 Mon Sep 17 00:00:00 2001 From: Zhang Peng Date: Tue, 24 Mar 2026 20:59:25 +0800 Subject: [PATCH] xfwm4: backport patch to add missing libxfce4util build flags When libxfce4ui is upgrade to 4.21.x, pkgconfig sets private flags by default and no longer exposes libxfce4util flags. This causes build failures in xfwm4 settings-dialogs due to missing CFLAGS and LIBS. Backport upstream fix to add LIBXFCE4UTIL_CFLAGS and LIBXFCE4UTIL_LIBS to settings-dialogs/Makefile.am. Signed-off-by: Zhang Peng Signed-off-by: Khem Raj --- ...build-Add-missing-libxfce4util-flags.patch | 59 +++++++++++++++++++ meta-xfce/recipes-xfce/xfwm4/xfwm4_4.20.0.bb | 5 +- 2 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 meta-xfce/recipes-xfce/xfwm4/xfwm4/0001-build-Add-missing-libxfce4util-flags.patch diff --git a/meta-xfce/recipes-xfce/xfwm4/xfwm4/0001-build-Add-missing-libxfce4util-flags.patch b/meta-xfce/recipes-xfce/xfwm4/xfwm4/0001-build-Add-missing-libxfce4util-flags.patch new file mode 100644 index 0000000000..8fe8386f11 --- /dev/null +++ b/meta-xfce/recipes-xfce/xfwm4/xfwm4/0001-build-Add-missing-libxfce4util-flags.patch @@ -0,0 +1,59 @@ +From 6468f80ee9283c03fc18f67361b20c6efdf3df50 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ga=C3=ABl=20Bonithon?= +Date: Mon, 3 Feb 2025 11:09:59 +0100 +Subject: [PATCH] build: Add missing libxfce4util flags +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +This will be necessary when xfwm4 is built against a meson release of +libxfce4ui, which sets private flags by default in pkgconfig (and +therefore no longer exposes libxfce4util flags). + +Signed-off-by: Gaƫl Bonithon + +Upstream-Status: Backport [https://gitlab.xfce.org/xfce/xfwm4/-/commit/6468f80ee9283c03fc18f67361b20c6efdf3df50] + +Signed-off-by: Zhang Peng +--- + settings-dialogs/Makefile.am | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/settings-dialogs/Makefile.am b/settings-dialogs/Makefile.am +index 3a1d2a510..86c6ab9be 100644 +--- a/settings-dialogs/Makefile.am ++++ b/settings-dialogs/Makefile.am +@@ -44,6 +44,7 @@ xfwm4_settings_CFLAGS = \ + $(GLIB_CFLAGS) \ + $(DBUS_GLIB_CFLAGS) \ + $(LIBXFCE4UI_CFLAGS) \ ++ $(LIBXFCE4UTIL_CFLAGS) \ + $(LIBXFCE4KBD_PRIVATE_CFLAGS) \ + $(LIBXFCONF_CFLAGS) \ + -DDATADIR=\"$(datadir)\" \ +@@ -56,6 +57,7 @@ xfwm4_settings_LDADD = \ + $(GLIB_LIBS) \ + $(DBUS_GLIB_LIBS) \ + $(LIBXFCE4UI_LIBS) \ ++ $(LIBXFCE4UTIL_LIBS) \ + $(LIBXFCE4KBD_PRIVATE_LIBS) \ + $(LIBXFCONF_LIBS) + +@@ -70,6 +72,7 @@ xfwm4_tweaks_settings_CFLAGS = \ + $(GLIB_CFLAGS) \ + $(DBUS_GLIB_CFLAGS) \ + $(LIBXFCE4UI_CFLAGS) \ ++ $(LIBXFCE4UTIL_CFLAGS) \ + $(LIBXFCONF_CFLAGS) \ + -DDATADIR=\"$(datadir)\" \ + -DSRCDIR=\"$(top_srcdir)\" \ +@@ -81,6 +84,7 @@ xfwm4_tweaks_settings_LDADD = \ + $(GLIB_LIBS) \ + $(DBUS_GLIB_LIBS) \ + $(LIBXFCE4UI_LIBS) \ ++ $(LIBXFCE4UTIL_LIBS) \ + $(LIBXFCONF_LIBS) + + AM_CPPFLAGS = \ +-- +2.50.0 diff --git a/meta-xfce/recipes-xfce/xfwm4/xfwm4_4.20.0.bb b/meta-xfce/recipes-xfce/xfwm4/xfwm4_4.20.0.bb index ef5a682b77..2c0ac1d39c 100644 --- a/meta-xfce/recipes-xfce/xfwm4/xfwm4_4.20.0.bb +++ b/meta-xfce/recipes-xfce/xfwm4/xfwm4_4.20.0.bb @@ -9,7 +9,10 @@ inherit xfce update-alternatives features_check REQUIRED_DISTRO_FEATURES = "x11" -SRC_URI += "file://xfwm4-fix-incompatible-pointer-type-error.patch" +SRC_URI += " \ + file://xfwm4-fix-incompatible-pointer-type-error.patch \ + file://0001-build-Add-missing-libxfce4util-flags.patch \ + " SRC_URI[sha256sum] = "a58b63e49397aa0d8d1dcf0636be93c8bb5926779aef5165e0852890190dcf06"