mirror of
https://github.com/godotengine/buildroot.git
synced 2026-01-02 21:48:20 +03:00
This patch allows building samba4 with uClibc again after rpc support
was removed from uClibc. Building with musl is still broken:
The first error
../nsswitch/wins.c: In function ‘_nss_wins_gethostbyname_r’:
../nsswitch/wins.c:272:15: error: ‘NETDB_INTERNAL’ undeclared (first use in this function)
*h_errnop = NETDB_INTERNAL;
^~~~~~~~~~~~~~
../nsswitch/wins.c:272:15: note: each undeclared identifier is reported only once for each function it appears in
../nsswitch/wins.c:349:14: error: ‘NETDB_SUCCESS’ undeclared (first use in this function)
*h_errnop = NETDB_SUCCESS;
^~~~~~~~~~~~~
could be solved by applying
https://git.alpinelinux.org/cgit/aports/tree/main/samba/netdb-defines.patch
but then the build fails at
../ctdb/tests/src/test_mutex_raw.c: In function ‘main’:
../ctdb/tests/src/test_mutex_raw.c:170:28: error: ‘pthread_mutex_t {aka struct <anonymous>}’ has no member named ‘__data’
printf("pid=%u\n", mutex->__data.__owner);
^~
Therefore we disable musl support until a fix can be found.
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
[Thomas:
- instead of setting SAMBA4_CONF_ENV within the libtirpc condition,
introduce SAMBA4_CFLAGS and SAMBA4_LDFLAGS variables and use them
- add missing dependency on host-pkgconf, needed because we call
pkg-config to get the flags from libtirpc]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
50 lines
1.5 KiB
Plaintext
50 lines
1.5 KiB
Plaintext
comment "samba4 needs a uClibc or glibc toolchain w/ wchar, dynamic library, NPTL"
|
|
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
|
depends on !BR2_USE_WCHAR || BR2_TOOLCHAIN_USES_MUSL \
|
|
|| BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
|
depends on BR2_USE_MMU
|
|
|
|
config BR2_PACKAGE_SAMBA4
|
|
bool "samba4"
|
|
depends on BR2_USE_MMU # fork()
|
|
depends on BR2_USE_WCHAR # python
|
|
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # python -> libffi
|
|
depends on !BR2_STATIC_LIBS # python, gnutls
|
|
depends on !BR2_nios2 # binary too large, relocations don't fit
|
|
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
|
depends on !BR2_TOOLCHAIN_USES_MUSL
|
|
select BR2_PACKAGE_E2FSPROGS
|
|
select BR2_PACKAGE_LIBTIRPC if !BR2_TOOLCHAIN_HAS_NATIVE_RPC
|
|
select BR2_PACKAGE_POPT
|
|
select BR2_PACKAGE_PYTHON
|
|
select BR2_PACKAGE_ZLIB
|
|
help
|
|
Provides secure, stable and fast file and print services
|
|
for all clients using the SMB/CIFS protocol, such as all
|
|
versions of DOS, Windows, OS/2, Linux and many others.
|
|
|
|
http://www.samba.org/
|
|
|
|
if BR2_PACKAGE_SAMBA4
|
|
|
|
config BR2_PACKAGE_SAMBA4_AD_DC
|
|
bool "AD DC"
|
|
select BR2_PACKAGE_GNUTLS
|
|
help
|
|
Enable Active Directory Domain Controller functionality.
|
|
|
|
config BR2_PACKAGE_SAMBA4_ADS
|
|
bool "ADS"
|
|
select BR2_PACKAGE_OPENLDAP
|
|
help
|
|
Enable Active Directory member Server functionality.
|
|
|
|
config BR2_PACKAGE_SAMBA4_SMBTORTURE
|
|
bool "smbtorture"
|
|
help
|
|
Install the smbtorture test suite.
|
|
It's normally used for validation and stress testing.
|
|
Approximately +5 MB of stripped uncompressed target space.
|
|
|
|
endif
|