package/shadow: disable on uclibc
shadow unconditionally uses reallocarray and explicit_bzero
since bump to version 4.14.3 in commit
8a01774d98 and
https://github.com/shadow-maint/shadow/commit/1aa22c14674e14e84efa171614dea2b515d5a223
https://github.com/shadow-maint/shadow/commit/0e0a310acf5111251589116343897a63ebc88e7a
resulting in the following uclibc build failure:
/home/autobuild/autobuild/instance-9/output-1/host/lib/gcc/arc-buildroot-linux-uclibc/13.1.1/../../../../arc-buildroot-linux-uclibc/bin/ld: groups.o: in function `main':
groups.c:(.text.startup+0x20): undefined reference to `reallocarray'
Fixes:
- http://autobuild.buildroot.org/results/98be07d299aa383a447a1f1dd2924a00c1a29a34
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[Peter: add a comment about what functions are missing, reallocf reference]
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
077741623f
commit
8035ea0a71
@@ -2,6 +2,7 @@ menuconfig BR2_PACKAGE_SHADOW
|
||||
bool "shadow"
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_14
|
||||
depends on !BR2_TOOLCHAIN_USES_UCLIBC # reallocarray, explicit_bzero
|
||||
help
|
||||
Utilities to deal with user accounts.
|
||||
|
||||
@@ -55,5 +56,6 @@ config BR2_PACKAGE_SHADOW_YESCRYPT
|
||||
|
||||
endif # BR2_PACKAGE_SHADOW
|
||||
|
||||
comment "shadow needs a toolchain w/ headers >= 4.14, dynamic library"
|
||||
depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_14 || BR2_STATIC_LIBS
|
||||
comment "shadow needs a glibc or musl toolchain w/ headers >= 4.14, dynamic library"
|
||||
depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_14 || \
|
||||
BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_UCLIBC
|
||||
|
||||
Reference in New Issue
Block a user