Skip to contentSkip to conversation

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

PATCH Superseded Ross Burton 1 participant 1 message Jan 17, 2014

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 meta/recipes-core/glib-2.0/glib.inc |    2 ++
 1 file changed, 2 insertions(+)
meta/recipes-core/glib-2.0/glib.inc +2 -0
index 7b471e7..fe94767 100644
@@ -16,8 +16,10 @@ SECTION = "libs"
 BBCLASSEXTEND = "native nativesdk"
 
 DEPENDS = "glib-2.0-native virtual/libiconv libffi zlib"
+DEPENDS += "${@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.*"
Signature · 1 line
1.7.10.4