package/spice: don't enable GUI if dependencies not met
authorYann E. MORIN <yann.morin.1998@free.fr>
Tue, 25 Dec 2012 08:11:29 +0000 (08:11 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 26 Dec 2012 22:52:26 +0000 (23:52 +0100)
The spice GUI selects unconditionally selects cegui06, but cegui06 requires
threads and C++, so spice GUI must also depend on threads and C++.

Fixes:
    http://autobuild.buildroot.net/results/37f8ee90bb4348db97daef83493005c42a193b91/

Merry X-Mas! ;-)

[Peter: add SPICE_CLIENT dependency]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/spice/Config.in

index 1b264e7e216290af8a18bfeb9ede92efd4ea5b2a..0c2c7a643aa7eaf10c01afef2e1d71a1ee322cfe 100644 (file)
@@ -35,8 +35,14 @@ config BR2_PACKAGE_SPICE_CLIENT
        select BR2_PACKAGE_XLIB_LIBXFIXES
        select BR2_PACKAGE_XLIB_LIBXRANDR
 
+comment "GUI requires a toolchain with threads and C++"
+       depends on BR2_PACKAGE_SPICE_CLIENT
+       depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP
+
 config BR2_PACKAGE_SPICE_GUI
        bool "Enable GUI"
+       depends on BR2_TOOLCHAIN_HAS_THREADS    # cegui06
+       depends on BR2_INSTALL_LIBSTDCPP        # cegui06
        depends on BR2_PACKAGE_SPICE_CLIENT
        select BR2_PACKAGE_CEGUI06
        help