[OE-core] [PATCH] dbus-glib: Conditionaly adds dbus-x11 to RDEPENDS_${PN}-tests

Ahsan, Noor Noor_Ahsan at mentor.com
Fri Jul 27 13:10:04 UTC 2012


From: Noor Ahsan <noor_ahsan at mentor.com<mailto:noor_ahsan at mentor.com>>

*  Build was hitting an error "Nothing RPROVIDES 'dbus-x11'". dbus-glib RDEPENDS on it and
dbus was providing dbus-x11 when x11 was present in DISTRO FEATURES. So conditionally
added dbus-x11 to RDEPENDS_${PN}-tests in dbus-glib recipe.
* Verified on qemuppc.

Signed-off-by: Noor Ahsan <noor_ahsan at mentor.com>
---
meta/recipes-core/dbus/dbus-glib.inc |    2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/dbus/dbus-glib.inc b/meta/recipes-core/dbus/dbus-glib.inc
index a8e6d42..9cfe796 100644
--- a/meta/recipes-core/dbus/dbus-glib.inc
+++ b/meta/recipes-core/dbus/dbus-glib.inc
@@ -35,7 +35,7 @@ FILES_${PN}-bash-completion = "${sysconfdir}/bash_completion.d/dbus-bash-complet
FILES_${PN}-dev += "${libdir}/dbus-1.0/include ${bindir}/dbus-glib-tool"
FILES_${PN}-dev += "${bindir}/dbus-binding-tool"
-RDEPENDS_${PN}-tests += "dbus-x11"
+RDEPENDS_${PN}-tests += "${@base_contains('DISTRO_FEATURES', 'x11', 'dbus-x11', '', d)}"
FILES_${PN}-tests = "${datadir}/${PN}/tests"
FILES_${PN}-tests-dbg = "${datadir}/${PN}/tests/.debug/* \
                          ${datadir}/${PN}/tests/core/.debug/* \
--
1.7.10.4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20120727/ea3db19f/attachment-0002.html>


More information about the Openembedded-core mailing list