From b70627e2818ded74be862ad8650e19bf1fe9bd43 Mon Sep 17 00:00:00 2001 From: Anuj Mittal Date: Fri, 20 Nov 2020 14:49:14 +0800 Subject: 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. Signed-off-by: Anuj Mittal Signed-off-by: Richard Purdie --- meta/recipes-core/glib-2.0/glib.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-core/glib-2.0/glib.inc b/meta/recipes-core/glib-2.0/glib.inc index 06f4ae137e..71777bc459 100644 --- a/meta/recipes-core/glib-2.0/glib.inc +++ b/meta/recipes-core/glib-2.0/glib.inc @@ -166,7 +166,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 \ " -- cgit 1.2.3-korg