package/wvstreams: disable for musl toolchains
authorRomain Naour <romain.naour@openwide.fr>
Sat, 8 Aug 2015 10:57:02 +0000 (12:57 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 9 Aug 2015 09:24:32 +0000 (11:24 +0200)
The project seems not maintained anymore since there
is no commit since 2011:
https://github.com/wlach/wvstreams

After fixing the first build issue by adding a missing limit.h header...
xplc/modulemgr.cc:90:14: error: ‘PATH_MAX’ was not declared in this scope
   char fname[PATH_MAX];

and fixing a basename() conflict between the gnu and posix version,
the build fail due to missing __libc_stack_end.

wvtask.cc:(.test+0xb08): undefined reference to `__libc_stack_end'

There is a configure test for __libc_stack_end support but it
doesn't work properly with a musl toolchain.

Since we already have several fixes for uClibc, let's mark wvstreams
as not available for musl toolchains, until someone interested
enough fixes it.

[Thomas: replace uClibc-ng by just uClibc in the Config.in comments.]

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/wvdial/Config.in
package/wvstreams/Config.in

index 5d415b1c798e2fa6680f3f1ccfa588f07d1338ca..d5458700f2c216a476280db89698e5c960b65295 100644 (file)
@@ -3,12 +3,13 @@ config BR2_PACKAGE_WVDIAL
        depends on BR2_INSTALL_LIBSTDCPP
        depends on BR2_USE_MMU # wvstreams
        depends on !BR2_STATIC_LIBS # wvstreams
+       depends on !BR2_TOOLCHAIN_USES_MUSL # wvstreams
        select BR2_PACKAGE_WVSTREAMS
        help
          wvdial is an intelligent Point-to-Point Protocol dialer
 
          http://wvdial.googlecode.com/
 
-comment "wvdial needs a toolchain w/ C++, dynamic library"
+comment "wvdial needs a (e)glibc or uClibc toolchain w/ C++, dynamic library"
        depends on BR2_USE_MMU
-       depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS
+       depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_MUSL
index 0cbe60aff6dff818aa562704e16b4e7e9a81c960..e2edd6d25782babe0601018c97405a8c0197bc73 100644 (file)
@@ -3,6 +3,8 @@ config BR2_PACKAGE_WVSTREAMS
        depends on BR2_INSTALL_LIBSTDCPP
        depends on !BR2_STATIC_LIBS
        depends on BR2_USE_MMU # fork()
+       # musl not supported and no upstream activity since 2011.
+       depends on !BR2_TOOLCHAIN_USES_MUSL
        select BR2_PACKAGE_OPENSSL
        select BR2_PACKAGE_ZLIB
        help
@@ -10,6 +12,6 @@ config BR2_PACKAGE_WVSTREAMS
 
          http://wvstreams.googlecode.com/
 
-comment "wvstreams needs a toolchain w/ C++, dynamic library"
+comment "wvstreams needs a (e)glibc or uClibc toolchain w/ C++, dynamic library"
        depends on BR2_USE_MMU
-       depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS
+       depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_MUSL