diff mbox series

gstreamer1.0-python: Skip when GI data is not available

Message ID 20261001195345.487817-1-luciano.dittgen@ossystems.com.br
State New
Headers show
Series gstreamer1.0-python: Skip when GI data is not available | expand

Commit Message

Luciano Dittgen Oct. 1, 2026, 7:53 p.m. UTC
python3-pygobject skips itself unless GI_DATA_ENABLED, which also needs
qemu-usermode in MACHINE_FEATURES, so on e5500/e6500 machines world has
no provider for this recipe's DEPENDS. Skip on the same condition.
Checked with bitbake -k -S none world for an e5500 machine; task
signatures are unchanged where GI data is available.

Signed-off-by: Luciano Dittgen <luciano.dittgen@ossystems.com.br>
---
 .../gstreamer/gstreamer1.0-python_1.28.7.bb              | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-python_1.28.7.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0-python_1.28.7.bb
index 1b17accd41..a33bc0f057 100644
--- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-python_1.28.7.bb
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-python_1.28.7.bb
@@ -23,8 +23,15 @@  EXTRA_OEMESON += "\
     -Dlibpython-dir=${libdir} \
 "
 
-inherit meson pkgconfig setuptools3-base upstream-version-is-even features_check
+inherit meson pkgconfig setuptools3-base upstream-version-is-even features_check gobject-introspection-data
 
 FILES:${PN} += "${libdir}/gstreamer-1.0"
 
 REQUIRED_DISTRO_FEATURES = "gobject-introspection-data"
+
+# python3-pygobject is skipped without GI data, which also depends on
+# qemu-usermode in MACHINE_FEATURES, so skip along with it.
+python() {
+    if not bb.utils.to_boolean(d.getVar("GI_DATA_ENABLED")):
+        raise bb.parse.SkipRecipe("GI not available")
+}