python-pygobject: skip the package if gobject-introspection is disabled
PATCH 1/1 python-pygobject: skip the package if gobject-introspection is disabled
This package simply produced obscure errors if gobject-introspection is disabled, so refuse to build in that situation.
Signed-off-by Ross Burton <[email protected]>
--- meta/recipes-devtools/python/python3-pygobject_3.26.1.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
meta/recipes-devtools/python/python3-pygobject_3.26.1.bb +5 -1
@@ -17,7 +17,6 @@ SRC_URI[sha256sum] = "f5577b9b9c70cabb9a60d81b855d488b767c66f867432e7fb64aa7269b S = "${WORKDIR}/${SRCNAME}-${PV}" - PACKAGECONFIG ??= "${@bb.utils.contains_any('DISTRO_FEATURES', [ 'directfb', 'wayland', 'x11' ], 'cairo', '', d)}" # python3-pycairo is checked on configuration -> DEPENDS
@@ -28,3 +27,8 @@ RDEPENDS_${PN} += "python3-setuptools python3-importlib" BBCLASSEXTEND = "native" PACKAGECONFIG_class-native = "" + +python () { + if d.getVar("GI_DATA_ENABLED") != "True": + raise bb.parse.SkipPackage("gobject-introspection won't work, disabling recipe") +}
Signature · 1 line
2.11.0