diff mbox series

[meta-xfce,08/14] libxfce4ui: check opengl DISTRO_FEATURES

Message ID 20221110084655.1714051-8-mingli.yu@windriver.com
State New
Headers show
Series [meta-gnome,01/14] gnome-calculator: add opengl to REQUIRED_DISTRO_FEATURES | expand

Commit Message

Yu, Mingli Nov. 10, 2022, 8:46 a.m. UTC
From: Mingli Yu <mingli.yu@windriver.com>

Check opengl DISTRO_FEATURES to determine enable x11 in PACKAGECONFIG
or not as it make libxfce4ui depend on libepoxy when x11 enabled in
PACKAGECONFIG part.

Fixes:
  ERROR: Nothing PROVIDES 'libepoxy' (but /build/layers/meta-openembedded/meta-xfce/recipes-xfce/libxfce4ui/libxfce4ui_4.16.1.bb DEPENDS on or otherwise requires it)
  libepoxy was skipped: missing required distro feature 'opengl' (not in DISTRO_FEATURES)
  ERROR: Required build target 'meta-world-pkgdata' has no buildable providers.
  Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'xfce4-calculator-plugin', 'libxfce4ui', 'libepoxy']

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
---
 meta-xfce/recipes-xfce/libxfce4ui/libxfce4ui_4.16.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-xfce/recipes-xfce/libxfce4ui/libxfce4ui_4.16.1.bb b/meta-xfce/recipes-xfce/libxfce4ui/libxfce4ui_4.16.1.bb
index bb45ee6f4..692c79f3c 100644
--- a/meta-xfce/recipes-xfce/libxfce4ui/libxfce4ui_4.16.1.bb
+++ b/meta-xfce/recipes-xfce/libxfce4ui/libxfce4ui_4.16.1.bb
@@ -18,7 +18,7 @@  EXTRA_OECONF += "--with-vendor-info=${DISTRO}"
 EXTRA_OECONF += "--disable-vala"
 
 PACKAGECONFIG ??= " \
-       ${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} \
+       ${@bb.utils.contains('DISTRO_FEATURES', 'opengl','x11', "", d)} \
 "
 PACKAGECONFIG[gladeui2] = "--enable-gladeui2,--disable-gladeui2,glade"
 PACKAGECONFIG[x11] = "--enable-startup-notification,--disable-startup-notification,libepoxy libice libsm startup-notification"