Skip to contentSkip to conversation

wxwidgets: add back the possibility to add packageconfig opengl for native

PATCH New João Henrique Ferreira de Freitas 1 participant 1 message Sep 14, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wxwidgets: add back the possibility to add packageconfig opengl for native

Previous commit (ce604d453c9d119e992bdcd7e0e0a01960b8d2de) removed packageconfig opengl for -native. The removal was done in a way that it is not possible to append or add opengl from a .bbappend wxwidgets recipe [1].

This commit adds back the possibility to add opengl to packageconfig when native, using a weak assignment.

1: https://docs.yoctoproject.org/bitbake/bitbake-user-manual/bitbake-user-manual-metadata.html#removal-override-style-syntax

---
 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 8d1090a171..fcb30b41b0 100644
@@ -52,7 +52,7 @@ PACKAGECONFIG ?= "${@bb.utils.contains_any('DISTRO_FEATURES', 'x11 wayland', 'gt
 "
 PACKAGECONFIG:append:class-target = " mediactrl ${@bb.utils.contains_any('DISTRO_FEATURES', 'x11 wayland', 'webkit', '', d)}"
 
-PACKAGECONFIG:remove:class-native = "opengl"
+PACKAGECONFIG:class-native ?= "${@bb.utils.contains_any('DISTRO_FEATURES', 'x11 wayland', 'gtk', 'no_gui', d)}"
 
 # Note on toolkit-PACKAGECONFIGs: select exactly one of 'no_gui' / 'gtk' / 'qt'
 PACKAGECONFIG[no_gui] = "-DwxUSE_GUI=OFF,,,,,qt gtk opengl"