Skip to contentSkip to conversation

wxwidgets: enable webkit only with x11 or waylnad

PATCH New [email protected] 1 participant 1 message Jul 14, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wxwidgets: enable webkit only with x11 or waylnad

From: Martin Jansa <[email protected]>

* otherwise webkit enabled by default in 7c3dccab64f2c1733169d6fcba56eeb139a05b45 will conflict with no_gui PACKAGECONFIG which is enabled in DISTROs without x11 and wayland
* fixes:
ERROR: meta-oe/meta-oe/recipes-extended/wxwidgets/wxwidgets_3.2.8.bb:
wxwidgets: PACKAGECONFIG[webkit] Conflict package config 'no_gui' set in PACKAGECONFIG.

---
 meta-oe/recipes-extended/wxwidgets/wxwidgets_3.2.8.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-extended/wxwidgets/wxwidgets_3.2.8.bb +1 -1
index ce45d366c0..4a531f30ae 100644
@@ -46,7 +46,7 @@ EXTRA_OECMAKE:append:class-target = ' -DEGREP="/bin/grep -E"'
 PACKAGECONFIG ?= "${@bb.utils.contains_any('DISTRO_FEATURES', 'x11 wayland', 'gtk', 'no_gui', d)} \
     ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'opengl', '', d)} \
 "
-PACKAGECONFIG:append:class-target = " mediactrl webkit"
+PACKAGECONFIG:append:class-target = " mediactrl ${@bb.utils.contains_any('DISTRO_FEATURES', 'x11 wayland', 'webkit', '', d)}"
 
 PACKAGECONFIG:remove:class-native = "opengl"