[Buildroot] [PATCH 5/8] samba4: remove dependency on specific C libraries

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Jan 26 09:58:57 UTC 2016


Romain,

On Tue, 26 Jan 2016 00:06:14 +0100, Romain Naour wrote:

> Le 18/01/2016 21:24, Thomas Petazzoni a écrit :
> > samba4 relies on the $ORIGIN feature of the dynamic linker, which used
> > to not be implemented in old uClibc versions. However:
> > 
> >  - this feature is supported by glibc
> >  - this feature is supported by uClibc-ng, which is the only uClibc
> >    version we are going to support
> >  - this feature is supported by musl
> > 
> > Consequently, we can completely remove the dependency of samba4 on
> > certain C libraries. This means that samba4 can now be built against
> > the musl C library.
> 
> I'm not able to select samba4 with a musl toolchain.
> Samba4 needs BR2_TOOLCHAIN_HAS_NATIVE_RPC which is not selected/detected with
> internal/external toolchains.
> 
> So, no samba4 with musl for the moment ;-)

Indeed. Enabling on musl was solely based on the fact that musl has
support for $ORIGIN since version 0.9.13:

0.9.13 release notes

new features:
- iconv support for EUC-KR and Big5 (including HKSCS) encodings
- field widths (POSIX 2008 feature) in strftime
- recursive rpath and $ORIGIN support in dynamic linker
[...]

What the patch means is that there is a priori no reason to have samba4
depend on uclibc-ng || glibc due to $ORIGIN support: now all of glibc,
uclibc and musl have this functionality.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


More information about the buildroot mailing list