Revert "gnutls: drop wchar dependency"
authorBaruch Siach <baruch@tkos.co.il>
Fri, 29 Jun 2018 10:44:04 +0000 (13:44 +0300)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 30 Jun 2018 16:41:41 +0000 (18:41 +0200)
This reverts commit 694cdb9273433e8a1278e2e3bb2a7fe2004aa813.

Just like commit 68c3f5257d94 (Revert "gnutls: make it non-wchar
friendly") before. It turns out that gnulib expects some other library
to provide a wctomb() implementation. So when the C library does not
provide one it is left as undefined symbol in libgnutls.so.

Add a comment to reduce the chance of repeating the same mistake again.

Fixes:
http://autobuild.buildroot.net/results/86f/86f08276fcb0cc557ab3cc5f57229b2c0c6ac2d7/
http://autobuild.buildroot.net/results/7c4/7c4bcb839f0ad5bc0496b4115ff391a3b312581a/
http://autobuild.buildroot.net/results/1c3/1c353f542c49bbe5520266c0ebb6a58589032453/

Reported-by: Matt Weber <matthew.weber@rockwellcollins.com>
Cc: Matt Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/gnutls/Config.in
package/libmicrohttpd/Config.in
package/libsoup/Config.in
package/taskd/Config.in
package/vpnc/Config.in

index 61b4b239ff82d17f416d7ef54062a51cc98e644b..7e8dcc1e4f8b3166dd8cf00c6bf9800aa4af813d 100644 (file)
@@ -2,6 +2,9 @@ config BR2_PACKAGE_GNUTLS
        bool "gnutls"
        # https://gitlab.com/gnutls/gnutls/issues/203
        depends on !BR2_STATIC_LIBS
+       # gnulib requires a library that implements wctomb().
+       # This is noticed only when linking with libgnutls.so.
+       depends on BR2_USE_WCHAR
        select BR2_PACKAGE_LIBTASN1
        select BR2_PACKAGE_NETTLE
        select BR2_PACKAGE_PCRE
@@ -23,5 +26,5 @@ config BR2_PACKAGE_GNUTLS_TOOLS
 
 endif
 
-comment "gnutls needs a toolchain w/ dynamic library"
-       depends on BR2_STATIC_LIBS
+comment "gnutls needs a toolchain w/ wchar, dynamic library"
+       depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS
index f3386a63f27247719ddcd8fb3c710425e595a056..7f3c9bb8fda073bc9c8f433c9bd2c04183e6677d 100644 (file)
@@ -12,12 +12,13 @@ if BR2_PACKAGE_LIBMICROHTTPD
 config BR2_PACKAGE_LIBMICROHTTPD_SSL
        bool "https support"
        depends on !BR2_STATIC_LIBS # gnutls
+       depends on BR2_USE_WCHAR
        select BR2_PACKAGE_GNUTLS
        help
          Enable HTTPS (SSL) support.
 
-comment "libmicrohttpd https support needs a toolchain w/ dynamic library"
-       depends on BR2_STATIC_LIBS
+comment "libmicrohttpd https support needs a toolchain w/ wchar, dynamic library"
+       depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS
 
 endif
 
index f5833229139a7fbc4a155dc5910128c8673bc3e4..236d3c428a83a4454326e30ed1d60de0cf8bd656 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
        depends on BR2_TOOLCHAIN_HAS_THREADS # glib2
        depends on BR2_USE_MMU # glib2
        select BR2_PACKAGE_LIBXML2
index c068b347242b32eb48c51d82fc4f2aa1dcac89e5..19d123fb5910c1e166f5c3b6e79e9afcec46dd38 100644 (file)
@@ -1,7 +1,7 @@
 config BR2_PACKAGE_TASKD
        bool "taskd"
        depends on !BR2_STATIC_LIBS # gnutls
-       depends on BR2_USE_WCHAR
+       depends on BR2_USE_WCHAR # gnutls
        depends on BR2_USE_MMU # fork()
        depends on BR2_INSTALL_LIBSTDCPP
        select BR2_PACKAGE_GNUTLS
index b988ba342bef6f321914db55428cf9db137e3b61..6455b0d87abe356ead6622fff90690756965594f 100644 (file)
@@ -3,6 +3,7 @@ config BR2_PACKAGE_VPNC
        depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS # libgcrypt
        depends on !BR2_STATIC_LIBS # gnutls
        depends on BR2_USE_MMU # fork()
+       depends on BR2_USE_WCHAR # gnutls
        select BR2_PACKAGE_LIBGCRYPT
        select BR2_PACKAGE_LIBGPG_ERROR
        select BR2_PACKAGE_GNUTLS
@@ -15,6 +16,6 @@ config BR2_PACKAGE_VPNC
 
          http://www.unix-ag.uni-kl.de/~massar/vpnc
 
-comment "vpnc needs a toolchain w/ dynamic library"
+comment "vpnc needs a toolchain w/ wchar, dynamic library"
        depends on BR2_USE_MMU
-       depends on BR2_STATIC_LIBS
+       depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS