Skip to contentSkip to conversation

python3-dbusmock: only recommend python3-pygobject

PATCH New [email protected] 1 participant 1 message Jun 20, 2023

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 python3-dbusmock: only recommend python3-pygobject

From: Ross Burton <[email protected]>

dbusmock doesn't actually hard-depend on pygobject, some of the templates use it but it isn't mandatory.

Change the RDEPENDS to RRECOMMENDS, and only recommend if g-i is enabled.

---
 meta/recipes-devtools/python/python3-dbusmock_0.29.0.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-devtools/python/python3-dbusmock_0.29.0.bb +2 -1
index 32a43e00b99..64e0ae88113 100644
@@ -13,9 +13,10 @@ DEPENDS += "python3-setuptools-scm-native"
 
 RDEPENDS:${PN} += "\
     ${PYTHON_PN}-dbus \
-    ${PYTHON_PN}-pygobject \
     ${PYTHON_PN}-unittest \
     ${PYTHON_PN}-xml \
     "
 
+RRECOMMENDS:${PN} = "${@bb.utils.contains('DISTRO_FEATURES', 'gobject-introspection-data', '${MLPREFIX}${PYTHON_PN}-pygobject', '', d)}"
+
 BBCLASSEXTEND = "native"
Signature · 1 line
2.34.1