]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
package/boost: boost needs wchar
authorJörg Krause <joerg.krause@embedded.rocks>
Fri, 24 Jul 2015 08:14:53 +0000 (10:14 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 26 Jul 2015 13:24:20 +0000 (15:24 +0200)
The most modules of boost needs a toolchain with wchar. To ease maintenance
we make the entire boost package depend on wchar.

Also add a reverse dependency to libftdipp1 and yaml-cpp.

Fixes:
http://autobuild.buildroot.net/results/49f/49f5c0521fc90fbd4673ad233ff679be007d2953/
http://autobuild.buildroot.net/results/12f/12f544c97e3451fb2a72025ebc62292957e47070/
http://autobuild.buildroot.net/results/ef6/ef6c897ea7547e8ed5f019e8ce4473f0998f2c16/
http://autobuild.buildroot.net/results/7a0/7a0ab069c505696a7887ba5c561b76b233ce59d5/

and more.

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/boost/Config.in
package/libftdi1/Config.in
package/yaml-cpp/Config.in

index 68004b6cc1b06abecfe897b149ad96d6e4769ca7..ac701524f91b5b64368f0f4101d7ac5597860845 100644 (file)
@@ -1,5 +1,5 @@
-comment "boost needs a toolchain w/ C++, threads"
-       depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
+comment "boost needs a toolchain w/ C++, threads, wchar"
+       depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR
 
 config BR2_PACKAGE_BOOST_ARCH_SUPPORTS
        bool
@@ -14,6 +14,7 @@ config BR2_PACKAGE_BOOST
        # that unfortunately doesn't work. Until someone fixes that,
        # let's depend on threads.
        depends on BR2_TOOLCHAIN_HAS_THREADS
+       depends on BR2_USE_WCHAR
        help
          A general purpose C++ library
 
@@ -77,10 +78,6 @@ config BR2_PACKAGE_BOOST_EXCEPTION
 
 config BR2_PACKAGE_BOOST_FILESYSTEM
        bool "boost-filesystem"
-       depends on BR2_USE_WCHAR
-
-comment "boost-filesystem needs a toolchain w/ wchar"
-       depends on !BR2_USE_WCHAR
 
 config BR2_PACKAGE_BOOST_GRAPH
        bool "boost-graph"
@@ -94,12 +91,8 @@ config BR2_PACKAGE_BOOST_IOSTREAMS
        select BR2_PACKAGE_ZLIB
 
 config BR2_PACKAGE_BOOST_LOCALE
-       depends on BR2_USE_WCHAR
        bool "boost-locale"
 
-comment "boost-locale needs a toolchain w/ wchar"
-       depends on !BR2_USE_WCHAR
-
 config BR2_PACKAGE_BOOST_LOG
        bool "boost-log"
        depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
index 4a490a54eb5a08db29ad3747068219a43506a7b1..61d4c1cf202df5f632a227f9acbac7f25ac595ca 100644 (file)
@@ -15,11 +15,12 @@ config BR2_PACKAGE_LIBFTDI1_LIBFTDIPP1
        depends on BR2_INSTALL_LIBSTDCPP # boost
        depends on BR2_TOOLCHAIN_HAS_THREADS # boost
        depends on BR2_PACKAGE_BOOST_ARCH_SUPPORTS
+       depends on BR2_USE_WCHAR # boost
        help
          C++ bindings for libftdi
 
-comment "libftdipp1 needs a toolchain w/ C++"
-       depends on !BR2_INSTALL_LIBSTDCPP
+comment "libftdipp1 needs a toolchain w/ C++, wchar"
+       depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR
        depends on BR2_PACKAGE_BOOST_ARCH_SUPPORTS
 
 config BR2_PACKAGE_LIBFTDI1_PYTHON_BINDINGS
index 9e00b3df4957d6c081ddf8d6ff0c3b6c43a6c3dc..3cfb955a5f74d8cf9d27708d01269519c3213a7f 100644 (file)
@@ -3,6 +3,7 @@ config BR2_PACKAGE_YAML_CPP
        depends on BR2_INSTALL_LIBSTDCPP
        depends on BR2_TOOLCHAIN_HAS_THREADS # boost
        depends on BR2_PACKAGE_BOOST_ARCH_SUPPORTS
+       depends on BR2_USE_WCHAR # boost
        select BR2_PACKAGE_BOOST
        help
          yaml-cpp is a YAML parser and emitter in C++ matching
@@ -10,6 +11,6 @@ config BR2_PACKAGE_YAML_CPP
 
          https://code.google.com/p/yaml-cpp/
 
-comment "yaml-cpp needs a toolchain w/ C++, threads"
+comment "yaml-cpp needs a toolchain w/ C++, threads, wchar"
        depends on BR2_PACKAGE_BOOST_ARCH_SUPPORTS
-       depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
+       depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR