qt5connectivity: propagate bluez-utils dependencies
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>
Mon, 20 Oct 2014 15:52:56 +0000 (16:52 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 22 Oct 2014 20:53:34 +0000 (22:53 +0200)
qt5connectivity selects the bluez-utils package but the dependencies are
not fully propagated so someone could do a static build, then select the
qt5connectivity package causing bluez-utils being auto-selected, which
is disabled for static builds, and then obtain a build failure like this
one:

checking for dlopen in -ldl... no
configure: error: dynamic linking loader is required

Fixes:
http://autobuild.buildroot.net/results/96d/96d8297be0b731da138b1e2aafb851061aee3c40/

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/qt5/qt5connectivity/Config.in

index c9f36ef04cd6d79fa23fc118e50d31e0f9f116b5..20778dc2f396ffecb97c5cd49568d1fb0358d0a8 100644 (file)
@@ -5,6 +5,9 @@ config BR2_PACKAGE_QT5CONNECTIVITY
        select BR2_PACKAGE_QT5BASE_CONCURRENT
        select BR2_PACKAGE_QT5BASE_DBUS
        depends on !BR2_avr32 # bluez_utils
+       depends on !BR2_PREFER_STATIC_LIB # bluez_utils
+       depends on BR2_USE_WCHAR # bluez_utils
+       depends on BR2_TOOLCHAIN_HAS_THREADS # bluez_utils
        depends on BR2_USE_MMU # bluez_utils
        help
          Qt is a cross-platform application and UI framework for
@@ -13,3 +16,7 @@ config BR2_PACKAGE_QT5CONNECTIVITY
          This package corresponds to the qt5connectivity module.
 
          http://qt-project.org
+
+comment "qt5connectivity needs a toolchain w/ wchar, threads, dynamic library"
+       depends on !BR2_avr32 && BR2_USE_MMU
+       depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || BR2_PREFER_STATIC_LIB