transmission: fix compliance checking

'''
ERROR: Nothing PROVIDES 'gtk4' (but meta-openembedded/meta-oe/recipes-connectivity/transmission/transmission_4.0.6.bb DEPENDS on or otherwise requires it)
gtk4 was skipped: missing required distro feature 'opengl' (not in DISTRO_FEATURES)
ERROR: Required build target 'meta-world-pkgdata' has no buildable providers
'''

Add opengl to DISTRO_FEATURES contain condition

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Hongxu Jia 2024-10-16 11:36:40 +08:00 committed by Khem Raj
parent 061f5c7f82
commit 8a89e58534
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -21,7 +21,7 @@ inherit cmake gettext update-rc.d pkgconfig systemd mime-xdg
LDFLAGS:append:riscv32 = " -latomic"
PACKAGECONFIG = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'gtk', '', d)} \
PACKAGECONFIG = "${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'gtk', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd','',d)}"
PACKAGECONFIG[gtk] = "-DENABLE_GTK=ON,-DENABLE_GTK=OFF,gtk4 gtkmm4,"