]> code.ossystems Code Review - openembedded-core.git/commitdiff
glib-2.0: add explicit build dependency on DBus when ptest is enabled
authorRoss Burton <ross.burton@intel.com>
Fri, 17 Jan 2014 11:09:32 +0000 (11:09 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 17 Jan 2014 11:23:07 +0000 (11:23 +0000)
If the tests are enabled then configure will check for the presence DBus.  It's
generally present through the runtime dependencies so this often succeeds but as
it isn't a build dependency it's possible for DBus to be present at configure
time but removed at compile time, resulting in build failures.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/glib-2.0/glib.inc

index 7b471e7fa95601884b1f4ae26845c169fecd3158..33d30c110f4a751e0331b4b3b9bfa66b0e162fc5 100644 (file)
@@ -16,8 +16,10 @@ SECTION = "libs"
 BBCLASSEXTEND = "native nativesdk"
 
 DEPENDS = "glib-2.0-native virtual/libiconv libffi zlib"
+DEPENDS_append_class-target = "${@base_contains('DISTRO_FEATURES', 'ptest', ' dbus', '', d)}"
 DEPENDS_class-native = "pkgconfig-native gettext-native libffi-native"
 DEPENDS_class-nativesdk = "nativesdk-libtool nativesdk-libffi nativesdk-zlib ${BPN}-native"
+
 PACKAGES =+ "${PN}-utils ${PN}-bash-completion ${PN}-codegen"
 
 LEAD_SONAME = "libglib-2.0.*"