[oe-commits] Ross Burton : glib-2.0: add explicit build dependency on DBus when ptest is enabled

git at git.openembedded.org git at git.openembedded.org
Fri Jan 17 11:44:53 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: 0150e86a7609579cf26f5ef5c6c69b521340218e
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=0150e86a7609579cf26f5ef5c6c69b521340218e

Author: Ross Burton <ross.burton at intel.com>
Date:   Fri Jan 17 11:09:32 2014 +0000

glib-2.0: add explicit build dependency on DBus when ptest is enabled

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 at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-core/glib-2.0/glib.inc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-core/glib-2.0/glib.inc b/meta/recipes-core/glib-2.0/glib.inc
index 7b471e7..33d30c1 100644
--- a/meta/recipes-core/glib-2.0/glib.inc
+++ b/meta/recipes-core/glib-2.0/glib.inc
@@ -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.*"



More information about the Openembedded-commits mailing list