Skip to contentSkip to conversation

msgraph: Add opengl to REQUIRED_DISTRO_FEATURES

PATCH New [email protected] 1 participant 1 message Apr 29, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 msgraph: Add opengl to REQUIRED_DISTRO_FEATURES

From: Mingli Yu <[email protected]>

Fixes the below yocto compliance issue:
ERROR: Nothing PROVIDES 'rest' (but /build/layers/meta-openembedded/meta-gnome/recipes-gnome/msgraph/msgraph_0.2.1.bb DEPENDS on or otherwise requires it) rest was skipped: missing required distro feature 'opengl' (not in DISTRO_FEATURES)
ERROR: Required build target 'meta-world-pkgdata' has no buildable providers.
Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'msgraph', 'rest']

---
 meta-gnome/recipes-gnome/msgraph/msgraph_0.2.1.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-gnome/recipes-gnome/msgraph/msgraph_0.2.1.bb +2 -1
index 4c11a8d13..9b4a8a035 100644
@@ -2,7 +2,8 @@ SUMMARY = "libmsgraph is a GLib-based library for accessing online serive APIs u
 LICENSE = "LGPL-3.0-only"
 LIC_FILES_CHKSUM = "file://COPYING;md5=3000208d539ec061b899bce1d9ce9404"
 
-inherit gnomebase gobject-introspection gi-docgen
+inherit gnomebase gobject-introspection gi-docgen features_check
+REQUIRED_DISTRO_FEATURES = "opengl"
 
 SRC_URI[archive.sha256sum] = "e0e59eaa8ae3e0a48ec0a6c2fed0470856a709248e9212b6a1d037de5792ecbb"
 
Signature · 1 line
2.25.1