diff mbox series

[meta-oe] packagegroup-meta-oe: only add clinfo if DISTRO_FEATURES has opencl

Message ID 20250926210719.636314-1-yoann.congal@smile.fr
State Under Review
Headers show
Series [meta-oe] packagegroup-meta-oe: only add clinfo if DISTRO_FEATURES has opencl | expand

Commit Message

Yoann Congal Sept. 26, 2025, 9:07 p.m. UTC
From: Yoann Congal <yoann.congal@smile.fr>

Since commit f65ae714d885 ("opencl: make use of the 'opencl'
DISTRO_FEATURE"), clinfo has a feature check on "opencl". Only add it to
its meta-oe package groups if the opencl is in DISTRO_FEATURES.

Fixes this warning (as seen on AB[0]):
stdio: WARNING: Nothing RPROVIDES 'clinfo' (but [...]/packagegroup-meta-oe.bb RDEPENDS on or otherwise requires it)

[0]: https://autobuilder.yoctoproject.org/valkyrie/#/builders/82/builds/453/steps/12/logs/warnings

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
---
 meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
index 8bc74b2f4c..eee4e096a9 100644
--- a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
+++ b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
@@ -712,7 +712,7 @@  RDEPENDS:packagegroup-meta-oe-support = "\
     c-ares \
     ccid \
     ckermit \
-    clinfo \
+    ${@bb.utils.contains("DISTRO_FEATURES", "opencl", "clinfo", "", d)} \
     cmark \
     ${@bb.utils.contains("DISTRO_FEATURES", "polkit gobject-introspection-data", "colord", "", d)} \
     consolation \