From: Anuj Mittal Date: Fri, 20 Nov 2020 06:49:14 +0000 (+0800) Subject: glib-2.0: RDEPEND on dbusmock only when GI_DATA_ENABLED is True X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~9538 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b70627e2818ded74be862ad8650e19bf1fe9bd43;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 --- diff --git a/meta/recipes-core/glib-2.0/glib.inc b/meta/recipes-core/glib-2.0/glib.inc index 06f4ae137e0..71777bc459f 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 \ "