@@ -8,7 +8,7 @@ SRC_URI[sha256sum] = "221b65e1c2e48de9fd11bf7e8c165adaf91648f49a11f390d086a49838
PYPI_PACKAGE = "python-dbusmock"
-inherit pypi python_setuptools_build_meta
+inherit pypi python_setuptools_build_meta gobject-introspection-data
DEPENDS += "python3-setuptools-scm-native"
CVE_PRODUCT = "python-dbusmock_project:python-dbusmock"
@@ -19,6 +19,6 @@ RDEPENDS:${PN} += "\
python3-xml \
"
-RRECOMMENDS:${PN} = "${@bb.utils.contains('DISTRO_FEATURES', 'gobject-introspection-data', '${MLPREFIX}python3-pygobject', '', d)}"
+RRECOMMENDS:${PN} = "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '${MLPREFIX}python3-pygobject', '', d)}"
BBCLASSEXTEND = "native"
python3-pygobject is skipped on target unless GI_DATA_ENABLED, which also needs qemu-usermode in MACHINE_FEATURES, so the DISTRO_FEATURES check left world without a provider on e5500/e6500 machines. Use GI_DATA_ENABLED, as glib's ptest does. Checked with bitbake -S none world for p5040ds, t4240rdb and t2080rdb-64b. Signed-off-by: Luciano Dittgen <luciano.dittgen@ossystems.com.br> --- meta/recipes-devtools/python/python3-dbusmock_0.38.1.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)