Skip to contentSkip to conversation

glib-2.0: RDEPEND on dbusmock only when GI_DATA_ENABLED is True

PATCH New Anuj Mittal 1 participant 1 message Nov 20, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 glib-2.0: RDEPEND on dbusmock only when GI_DATA_ENABLED is True

python3-dbusmock depends on pygobject unconditionally and it's not going to work if g-i is disabled.

---
 meta/recipes-core/glib-2.0/glib.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/glib-2.0/glib.inc +1 -1
index a0055d81b0..e48b5cb67b 100644
@@ -170,7 +170,7 @@ RDEPENDS_${PN}-ptest += "\
             ${PN}-locale-th \
             python3-core \
             python3-modules \
-            python3-dbusmock \
+            ${@bb.utils.contains('GI_DATA_ENABLED', 'True', 'python3-dbusmock', '', d)} \
             ${PN}-codegen \
            "
 
Signature · 1 line
2.28.0