Skip to contentSkip to conversation

xfce4-screenshooter: Fix build for wayland systems

PATCH New Khem Raj 1 participant 1 message Jul 3, 2025

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 xfce4-screenshooter: Fix build for wayland systems

Ensure that wayland-scanner is added to dependencies Create protocols directory as well where the .c files generated during build are emitted into.

---
 .../xfce4-screenshooter/xfce4-screenshooter_1.10.6.bb     | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
meta-xfce/recipes-apps/xfce4-screenshooter/xfce4-screenshooter_1.10.6.bb +6 -2
index 8778ff3451..f843b9459e 100644
@@ -9,9 +9,13 @@ inherit xfce-app perlnative
 
 SRC_URI[sha256sum] = "992066cfecfb44a68681340bfd55d524d40410aac3da6ef25c6c6cb2150a5965"
 
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'wayland', d)}"
+PACKAGECONFIG[wayland] = "--enable-wayland, --disable-wayland, wayland-native wayland"
+
+EXTRA_OECONF += "WAYLAND_SCANNER=${STAGING_BINDIR_NATIVE}/wayland-scanner"
+
 do_compile:prepend() {
-    mkdir -p lib
-    mkdir -p src panel-plugin
+    mkdir -p lib src panel-plugin protocols
 }
 
 FILES:${PN} += " \