Skip to contentSkip to conversation

libwnck3: add x11 to REQUIRED_DISTRO_FEATURES

PATCH New Changqing Li 1 participant 8 messages Mar 11

lore
Share & tools
lore
#0 lore raw

PATCH 1/8 libwnck3: add x11 to REQUIRED_DISTRO_FEATURES

Refer [1], but when DISTRO_FEATURES only container wayland, but not x11, do_configure will failed with error:
| ../sources/libwnck-43.2/meson.build:55:8: ERROR: Dependency "x11" not found, tried pkgconfig | ERROR: meson setup failed
Besides, refer the following source code, seems libwnck3 only support x11.
libwnck/util.c:248: g_warning ("libwnck is designed to work in X11 only, no valid display found");

[1] https://git.openembedded.org/meta-openembedded/commit/?id=abdb05b6b4b31ff40c4219336b7096db014284f1

---
 meta-gnome/recipes-gnome/libwnck/libwnck3_43.2.bb | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
meta-gnome/recipes-gnome/libwnck/libwnck3_43.2.bb +1 -3
index 4342325f11..ba139cf5cc 100644
@@ -23,6 +23,4 @@ SRC_URI += "file://ef0e40d59c32d7ebeb94d242436e3144cefc174a.patch;patch=1 \
             file://0001-Fix-build-issue-caused-by-OE-core-changes-to-startup.patch;patch=1"
 SRC_URI[archive.sha256sum] = "55a7444ec1fbb95c086d40967388f231b5c0bbc8cffaa086bf9290ae449e51d5"
 
-# gtk+3 and libepoxy need to be built with x11 PACKAGECONFIG.
-# cairo would at least needed to be built with xlib.
-ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
+REQUIRED_DISTRO_FEATURES = "x11"
Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/8 gimp: add x11 to REQUIRED_DISTRO_FEATURES

When DISTRO_FEATURES only contains wayland, but not x11, world build
will report:
ERROR: Nothing PROVIDES 'libxmu' (but /build/layers/meta-openembedded/meta-gnome/recipes-gimp/gimp/gimp_3.0.8.bb DEPENDS on or otherwise requires it) libxmu was skipped: using DISTRO 'poky', which is missing required DISTRO_FEATURES: 'x11'

---
 meta-gnome/recipes-gimp/gimp/gimp_3.0.8.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-gnome/recipes-gimp/gimp/gimp_3.0.8.bb +2 -0
index 5cbb94055a..1c7f634b65 100644
@@ -48,6 +48,8 @@ LDFLAGS:append:libc-musl = " -lexecinfo"
 
 inherit meson gtk-icon-cache mime-xdg pkgconfig gettext gobject-introspection vala bash-completion
 
+REQUIRED_DISTRO_FEATURES = "x11"
+
 GIR_MESON_OPTION = 'can-crosscompile-gir'
 VALA_MESON_OPTION = "vala"
 VALA_MESON_ENABLE_FLAG = "enabled"
Signature · 1 line
2.34.1
#2 lore raw

PATCH 3/8 xfce4-pulseaudio-plugin: require x11 distro feature

In reply to Changqing Li

When DISTRO_FEATURES contains pulseaudio, but not x11, world build will
report error:
pavucontrol was skipped: using DISTRO 'poky', which is missing required DISTRO_FEATURES: 'x11' Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'xfce4-pulseaudio-plugin', 'pavucontrol']

Refer [1], conditionally add x11 to REQUIRED_DISTRO_FEATURES

[1] https://git.openembedded.org/meta-openembedded/commit/?id=3a57e5274540a2b4b6d6a1d9808d0c9783f250a7

---
 .../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 2fa76351a4..4f823c67b5 100644
@@ -7,7 +7,7 @@ XFCE_COMPRESS_TYPE = "xz"
 
 inherit xfce-panel-plugin features_check
 
-REQUIRED_DISTRO_FEATURES = "pulseaudio"
+REQUIRED_DISTRO_FEATURES = "pulseaudio ${@bb.utils.contains_any('DISTRO_FEATURES', 'opengl vulkan', 'x11', '', d)}"
 
 DEPENDS += "dbus-glib pulseaudio"
 
Signature · 1 line
2.34.1
#3 lore raw

PATCH 4/8 xfce4-panel: add x11 to REQUIRED_DISTRO_FEATURES

In reply to Changqing Li

xfce4-panel depends on libwnck3, which only support x11

---
 meta-xfce/recipes-xfce/xfce4-panel/xfce4-panel_4.20.1.bb | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
meta-xfce/recipes-xfce/xfce4-panel/xfce4-panel_4.20.1.bb +1 -3
index 8efa88b9d7..fdfe39014a 100644
@@ -9,9 +9,7 @@ DEPENDS = "garcon exo gtk+3 cairo virtual/libx11 libxfce4windowing libxml2 \
 
 inherit xfce gtk-doc gobject-introspection features_check mime-xdg
 
-# xfce4 depends on libwnck3, gtk+3 and libepoxy need to be built with x11 PACKAGECONFIG.
-# cairo would at least needed to be built with xlib.
-ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
+REQUIRED_DISTRO_FEATURES = "x11"
 
 SRC_URI += " \
     file://0001-windowmenu-do-not-display-desktop-icon-when-no-windo.patch \
Signature · 1 line
2.34.1
#4 lore raw

PATCH 5/8 libxfce4ui: update REQUIRED_DISTRO_FEATURES

In reply to Changqing Li

Refer [1], when DISTRO_FEATURES contains opengl, but not x11, world
build will report:
ERROR: Nothing PROVIDES 'libice' (but /build/layers/meta-openembedded/meta-xfce/recipes-xfce/libxfce4ui/libxfce4ui_4.20.2.bb DEPENDS on or otherwise requires it) libice was skipped: using DISTRO 'poky', which is missing required DISTRO_FEATURES: 'x11'

[1] https://git.openembedded.org/meta-openembedded/commit/?id=bd206048b6fabe22a67058aaf250a28d00d92135

---
 meta-xfce/recipes-xfce/libxfce4ui/libxfce4ui_4.20.2.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-xfce/recipes-xfce/libxfce4ui/libxfce4ui_4.20.2.bb +2 -1
index d485abc19a..a0be1f6067 100644
@@ -10,6 +10,7 @@ inherit xfce gtk-doc gobject-introspection features_check
 # xfce4 depends on libwnck3. gtk+3 and libepoxy need to be built with x11 PACKAGECONFIG.
 # cairo would at least needed to be built with xlib.
 ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
+REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('DISTRO_FEATURES', 'x11','opengl', "", d)}"
 
 # TODO: Check if 0001-... can go
 SRC_URI += "file://0001-libxfce4kbd-private-xfce4-keyboard-shortcuts.xml-fix.patch"
@@ -19,7 +20,7 @@ EXTRA_OECONF += "--with-vendor-info=${DISTRO}"
 EXTRA_OECONF += "--disable-vala"
 
 PACKAGECONFIG ??= " \
-       ${@bb.utils.contains('DISTRO_FEATURES', 'opengl','x11', "", d)} \
+       ${@bb.utils.contains('DISTRO_FEATURES', 'x11','x11', "", d)} \
 "
 PACKAGECONFIG[gladeui2] = "--enable-gladeui2,--disable-gladeui2,glade"
 PACKAGECONFIG[x11] = "--enable-startup-notification,--disable-startup-notification,libepoxy libice libsm startup-notification"
Signature · 1 line
2.34.1
#5 lore raw

PATCH 6/8 gtk-vnc: add x11 to REQUIRED_DISTRO_FEATURES

In reply to Changqing Li

Fix world build failure:
ERROR: Nothing PROVIDES 'libx11' (but /build/layers/meta-openembedded/meta-gnome/recipes-connectivity/gtk-vnc/gtk-vnc_1.5.0.bb DEPENDS on or otherwise requires it) libx11 was skipped: using DISTRO 'poky', which is missing required DISTRO_FEATURES: 'x11'

---
 meta-gnome/recipes-connectivity/gtk-vnc/gtk-vnc_1.5.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-gnome/recipes-connectivity/gtk-vnc/gtk-vnc_1.5.0.bb +1 -1
index e9cb53c97c..0c095f8be3 100644
@@ -12,7 +12,7 @@ DEPENDS = " \
     zlib \
 "
 
-REQUIRED_DISTRO_FEATURES = "gobject-introspection-data"
+REQUIRED_DISTRO_FEATURES = "gobject-introspection-data x11"
 GIR_MESON_OPTION = ""
 VALA_MESON_OPTION = "with-vala"
 VALA_MESON_ENABLE_FLAG ?= 'enabled'
Signature · 1 line
2.34.1
#6 lore raw

PATCH 7/8 thunar: add x11 to REQUIRED_DISTRO_FEATURES

In reply to Changqing Li

thunar depends on xfce4-panel, xfce4-panel requires x11

---
 meta-xfce/recipes-xfce/thunar/thunar_4.20.7.bb | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
meta-xfce/recipes-xfce/thunar/thunar_4.20.7.bb +1 -3
index a9b04de13e..a03804496b 100644
@@ -7,9 +7,7 @@ DEPENDS = "libxml-parser-perl-native exo gdk-pixbuf libxfce4ui libnotify xfce4-p
 
 inherit xfce gobject-introspection features_check mime-xdg perlnative gtk-doc
 
-# xfce4 depends on libwnck3, gtk+3 and libepoxy need to be built with x11 PACKAGECONFIG.
-# cairo would at least needed to be built with xlib.
-ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
+REQUIRED_DISTRO_FEATURES = "x11"
 
 SRC_URI[sha256sum] = "e0dfbb732c3d7c9174d1c0216dd6177f1d4e9297e623dbced32efd3f3e8682e5"
 
Signature · 1 line
2.34.1
#7 lore raw

PATCH 8/8 thunar-plugin.bbclass: add x11 to REQUIRED_DISTRO_FEATURES

In reply to Changqing Li

thunar requires x11

---
 meta-xfce/classes/thunar-plugin.bbclass | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
meta-xfce/classes/thunar-plugin.bbclass +1 -3
index 39b0304327..82a1be6347 100644
@@ -1,8 +1,6 @@
 inherit xfce features_check
 
-# xfce4 depends on libwnck3, gtk+3 and libepoxy need to be built with x11 PACKAGECONFIG.
-# cairo would at least needed to be built with xlib.
-ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
+REQUIRED_DISTRO_FEATURES = "x11"
 
 DEPENDS += "thunar"
 
Signature · 1 line
2.34.1