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

Chris Larson clarson at kergoth.com
Fri Jul 27 14:44:22 UTC 2012


On Fri, Jul 27, 2012 at 6:10 AM, Ahsan, Noor <Noor_Ahsan at mentor.com> wrote:
> From: Noor Ahsan <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>

I think this is a better fix:

-PACKAGES += "${PN}-bash-completion ${PN}-tests-dbg ${PN}-tests"
+PACKAGES += "${PN}-bash-completion ${@base_contains('PACKAGECONFIG',
'tests', '${PN}-tests-dbg ${PN}-tests', '', d}"

Due to this:

PACKAGECONFIG ??= ""
PACKAGECONFIG[tests] = "--enable-tests,,,"
-- 
Christopher Larson




More information about the Openembedded-core mailing list