diff mbox series

[meta-gnome,2/4] sysprof: require opengl distro feature when gtk4 is dependend on

Message ID 20241108035143.2214659-2-Qi.Chen@windriver.com
State New
Headers show
Series [meta-gnome,1/4] libspelling: require opengl distro feature | expand

Commit Message

ChenQi Nov. 8, 2024, 3:51 a.m. UTC
From: Chen Qi <Qi.Chen@windriver.com>

gkt4 has 'opengl' in its REQUIRED_DISTRO_FEATURES, so when it is
depended upon by sysprof, 'opengl' distro feature should also be
required.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 meta-gnome/recipes-gnome/sysprof/sysprof_3.48.0.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-gnome/recipes-gnome/sysprof/sysprof_3.48.0.bb b/meta-gnome/recipes-gnome/sysprof/sysprof_3.48.0.bb
index fccca1d8f..a02bd0c91 100644
--- a/meta-gnome/recipes-gnome/sysprof/sysprof_3.48.0.bb
+++ b/meta-gnome/recipes-gnome/sysprof/sysprof_3.48.0.bb
@@ -4,7 +4,7 @@  LICENSE = "GPL-3.0-or-later"
 LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
                     file://src/sysprof/sysprof-application.c;endline=17;md5=a3de8df3b0f8876dd01e1388d2d4b607"
 
-inherit gnomebase gnome-help gettext systemd upstream-version-is-even gsettings mime mime-xdg
+inherit gnomebase gnome-help gettext systemd upstream-version-is-even gsettings mime mime-xdg features_check
 
 DEPENDS += " \
     glib-2.0-native \
@@ -20,6 +20,9 @@  SRC_URI += "file://0001-meson-Check-for-libunwind-instead-of-libunwind-gener.pat
             "
 SRC_URI[archive.sha256sum] = "07d9081a66cf2fb52753f48ff2b85ada75c60ff1bc1af1bd14d8aeb627972168"
 
+# reason: gtk4 requires opengl distro feature
+REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('PACKAGECONFIG', 'gtk', 'opengl', '', d)}"
+
 PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'polkit', 'sysprofd', '', d)} \
                   ${@bb.utils.contains_any('DISTRO_FEATURES', '${GTK3DISTROFEATURES}', 'gtk', '', d)} \
                   agent \