Revert "gnutls: make it non-wchar friendly"
authorPeter Korsgaard <jacmet@sunsite.dk>
Tue, 5 Feb 2013 10:45:28 +0000 (11:45 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 5 Feb 2013 10:45:28 +0000 (11:45 +0100)
This reverts commit f1b86cef9884894df26ed25efaabe254f8f0754b

While the fix makes gnutls build without wchar, it doesn't actually work as
there's no rpl_wctomb implementation so the .so ends up with an undefined
reference to wctomb:

./host/usr/bin/arm-linux-nm -D staging/usr/lib/libgnutls.so.28|grep wctomb
         U wctomb

Causing linker errors for packages trying to use it:

  CCLD   msmtp
host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libgnutls.so:
undefined reference to `wctomb'
collect2: ld returned 1 exit status

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/connman/Config.in
package/gnutls/Config.in
package/libmicrohttpd/Config.in
package/libsoup/Config.in
package/network-manager/Config.in

index 4c9741b5303ec83e8131099b9a301e2875434faf..93f9ab518f466e6053e8d50f70a6573fa96d90d4 100644 (file)
@@ -5,7 +5,7 @@ config BR2_PACKAGE_CONNMAN
        select BR2_PACKAGE_IPTABLES
        select BR2_PACKAGE_GNUTLS
        depends on !(BR2_UCLIBC_VERSION_0_9_31 || BR2_UCLIBC_VERSION_0_9_32)
-       depends on BR2_USE_WCHAR # libglib2
+       depends on BR2_USE_WCHAR # libglib2 and gnutls
        depends on BR2_INET_IPV6
        depends on BR2_TOOLCHAIN_HAS_THREADS # dbus
        depends on BR2_USE_MMU # dbus
index c2ff4edb912340422e5816001c010cf797942c91..3a34c48b6926f972a1d87fedacc1396c2b07d0d4 100644 (file)
@@ -1,6 +1,7 @@
 config BR2_PACKAGE_GNUTLS
        bool "gnutls"
        select BR2_PACKAGE_NETTLE
+       depends on BR2_USE_WCHAR
        help
          GnuTLS is a secure communications library implementing the SSL
          and TLS protocols and technologies around them.
@@ -9,10 +10,9 @@ config BR2_PACKAGE_GNUTLS
 
 config BR2_PACKAGE_GNUTLS_TOOLS
        bool "install tools"
-       depends on BR2_PACKAGE_GNUTLS
        depends on BR2_USE_WCHAR
        help
          Install GnuTLS command line tools for various cryptographic tasks.
 
-comment "gnutls tools requires a toolchain with WCHAR support"
-       depends on BR2_PACKAGE_GNUTLS && !BR2_USE_WCHAR
+comment "gnutls requires a toolchain with WCHAR support"
+       depends on !BR2_USE_WCHAR
index 4e78a996c8b138481769f568b70f07610be63e10..2e4de0f6a99425806c409b2a15a7951bd5d98885 100644 (file)
@@ -10,6 +10,7 @@ config BR2_PACKAGE_LIBMICROHTTPD
 config BR2_PACKAGE_LIBMICROHTTPD_SSL
        bool "https support"
        depends on BR2_PACKAGE_LIBMICROHTTPD
+       depends on BR2_USE_WCHAR
        select BR2_PACKAGE_GNUTLS
        select BR2_PACKAGE_LIBGCRYPT
        help
@@ -17,3 +18,6 @@ config BR2_PACKAGE_LIBMICROHTTPD_SSL
 
 comment "libmicrohttpd needs a toolchain with thread support"
        depends on !BR2_TOOLCHAIN_HAS_THREADS
+
+comment "libmicrohttpd https support needs a toolchain with wchar support"
+       depends on BR2_PACKAGE_LIBMICROHTTPD && !BR2_USE_WCHAR
index c3b4ceb1811920dcef73283edb6860965b627c94..57b425f283aaefb9975391cdb7d1338062118615 100644 (file)
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_LIBSOUP
        bool "libsoup"
-       depends on BR2_USE_WCHAR # glib2
+       depends on BR2_USE_WCHAR # glib2 and gnutls
        select BR2_PACKAGE_LIBXML2
        select BR2_PACKAGE_LIBGLIB2
        select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT
index 9b8408380bd23c6349f9eb469d54b67f27e087eb..cc33a1dad5ba1e7745911b617e770c74a0ae0add 100644 (file)
@@ -4,7 +4,7 @@ config BR2_PACKAGE_NETWORK_MANAGER
        select BR2_PACKAGE_DBUS
        depends on BR2_INET_IPV6
        depends on BR2_LARGEFILE # acl
-       depends on BR2_USE_WCHAR # libglib2
+       depends on BR2_USE_WCHAR # libglib2 and gnutls
        depends on BR2_TOOLCHAIN_HAS_THREADS # dbus
        depends on BR2_USE_MMU # dbus
        select BR2_PACKAGE_DBUS_GLIB