Skip to contentSkip to conversation

wxwidgets: Only enable opengl when both x11 and opengl are in DISTRO_FEATURES

PATCH New Robert Yang 1 participant 1 message Apr 8, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wxwidgets: Only enable opengl when both x11 and opengl are in DISTRO_FEATURES

The opengl can't work without x11 since it depends on libglu, and oe-core/meta/recipes-graphics/mesa/libglu_9.0.2.bb requires both x11 and opengl.

---
 meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb +1 -1
index e82143040..a824893a4 100644
@@ -45,7 +45,7 @@ EXTRA_OECMAKE:append:libc-musl = " \
 
 # All toolkit-configs except 'no_gui' require x11 explicitly (see toolkit.cmake)
 PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'gtk', 'no_gui', d)} \
-    ${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)} \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'opengl', '', d)} \
 "
 
 PACKAGECONFIG:remove:class-native = "opengl"
Signature · 1 line
2.17.1