diff mbox series

[meta-oe] wxwidgets: add back the possibility to add packageconfig opengl for native

Message ID 20250914234053.3908005-1-joaohf@gmail.com
State Under Review
Headers show
Series [meta-oe] wxwidgets: add back the possibility to add packageconfig opengl for native | expand

Commit Message

João Henrique Ferreira de Freitas Sept. 14, 2025, 11:40 p.m. UTC
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(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-extended/wxwidgets/wxwidgets_3.2.8.bb b/meta-oe/recipes-extended/wxwidgets/wxwidgets_3.2.8.bb
index 8d1090a171..fcb30b41b0 100644
--- a/meta-oe/recipes-extended/wxwidgets/wxwidgets_3.2.8.bb
+++ b/meta-oe/recipes-extended/wxwidgets/wxwidgets_3.2.8.bb
@@ -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"