autofs: disable for musl
PATCH 1/1 autofs: disable for musl
autofs requires nsswitch which musl libc does not implement. Commit 873040371b14 (autofs: allow to use libtirpc) removed the BR2_TOOLCHAIN_HAS_NATIVE_RPC dependency, making autofs available for musl. Disable musl explicitly.
Fixes:
http://autobuild.buildroot.net/results/a54/a549b62fbf03474ffd8586869637d083de275091/
http://autobuild.buildroot.net/results/b32/b3276b2cbd1e1c260f8df4c3945f51ddc09d492f/
http://autobuild.buildroot.net/results/10b/10b5c5b13971214d0439b715f1a46c78a5249309/
--- package/autofs/Config.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
package/autofs/Config.in +4 -2
@@ -3,6 +3,7 @@ config BR2_PACKAGE_AUTOFS depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL depends on BR2_USE_MMU depends on !BR2_STATIC_LIBS # dlfcn + depends on !BR2_TOOLCHAIN_USES_MUSL # nsswitch select BR2_PACKAGE_LIBTIRPC if !BR2_TOOLCHAIN_HAS_NATIVE_RPC help Autofs controls the operation of the automount daemons. The
@@ -15,6 +16,7 @@ config BR2_PACKAGE_AUTOFS http://www.linuxfromscratch.org/blfs/view/svn/general/autofs.html -comment "autofs needs a toolchain w/ NPTL and dynamic library" +comment "autofs needs a glibc or uClibc toolchain w/ NPTL and dynamic library" depends on BR2_USE_MMU - depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS + depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS \ + || BR2_TOOLCHAIN_USES_MUSL
Signature · 1 line
2.16.1
PATCH 1/1 autofs: disable for musl
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Baruch" == Baruch Siach <[email protected]> writes:
autofs requires nsswitch which musl libc does not implement. Commit
873040371b14(autofs: allow to use libtirpc) removed theBR2_TOOLCHAIN_HAS_NATIVE_RPCdependency, making autofs available for musl. Disable musl explicitly.
Quoted 8 lines
Fixes:
http://autobuild.buildroot.net/results/a54/a549b62fbf03474ffd8586869637d083de275091/
http://autobuild.buildroot.net/results/b32/b3276b2cbd1e1c260f8df4c3945f51ddc09d492f/
http://autobuild.buildroot.net/results/10b/10b5c5b13971214d0439b715f1a46c78a5249309/Cc Waldemar Brodkorb <[email protected]>Cc Jonathan Ben Avraham <[email protected]>Signed-off-by Baruch Siach <[email protected]>
Committed to next, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/1 autofs: disable for musl
In reply to Baruch SiachHi,
oh, that is bad.
Why it isn't failing for uClibc-ng?
Or will it fail when running on the target?
best regards
Waldemar
Quoted 44 lines · Baruch Siach
autofs requires nsswitch which musl libc does not implement. Commit
873040371b14(autofs: allow to use libtirpc) removed theBR2_TOOLCHAIN_HAS_NATIVE_RPCdependency, making autofs available for musl. Disable musl explicitly.Fixes:
http://autobuild.buildroot.net/results/a54/a549b62fbf03474ffd8586869637d083de275091/
http://autobuild.buildroot.net/results/b32/b3276b2cbd1e1c260f8df4c3945f51ddc09d492f/
http://autobuild.buildroot.net/results/10b/10b5c5b13971214d0439b715f1a46c78a5249309/Cc Waldemar Brodkorb <[email protected]>Cc Jonathan Ben Avraham <[email protected]>Signed-off-by Baruch Siach <[email protected]>---
package/autofs/Config.in | 6 ++++--1 file changed, 4 insertions(+), 2 deletions(-)package/autofs/Config.in +4
-2@@ -3,6 +3,7 @@ config BR2_PACKAGE_AUTOFS depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL depends on BR2_USE_MMU depends on !BR2_STATIC_LIBS # dlfcn + depends on !BR2_TOOLCHAIN_USES_MUSL # nsswitch select BR2_PACKAGE_LIBTIRPC if !BR2_TOOLCHAIN_HAS_NATIVE_RPC help Autofs controls the operation of the automount daemons. The@@ -15,6 +16,7 @@ config BR2_PACKAGE_AUTOFS http://www.linuxfromscratch.org/blfs/view/svn/general/autofs.html -comment "autofs needs a toolchain w/ NPTL and dynamic library" +comment "autofs needs a glibc or uClibc toolchain w/ NPTL and dynamic library" depends on BR2_USE_MMU - depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS + depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS \ + || BR2_TOOLCHAIN_USES_MUSLSignature · 1 line
2.16.1
PATCH 1/1 autofs: disable for musl
Hi Waldemar,
Quoted 2 lines · Waldemar Brodkorb
oh, that is bad.
Why it isn't failing for uClibc-ng?
Because uClibc-ng provides the _PATH_NSSWITCH_CONF macro.
Quoted 1 line
Or will it fail when running on the target?
I don't know, I have not tested. Looking through the code I see that autofs parses the content of nsswitch.conf. But I could not figure out how this information is used.
Maybe the correct fix is to provide a local _PATH_NSSWITCH_CONF definition for musl?
baruch
Quoted 41 lines
Quoted 41 lines · Baruch Siach
autofs requires nsswitch which musl libc does not implement. Commit
873040371b14(autofs: allow to use libtirpc) removed theBR2_TOOLCHAIN_HAS_NATIVE_RPCdependency, making autofs available for musl. Disable musl explicitly.Fixes:
http://autobuild.buildroot.net/results/a54/a549b62fbf03474ffd8586869637d083de275091/
http://autobuild.buildroot.net/results/b32/b3276b2cbd1e1c260f8df4c3945f51ddc09d492f/
http://autobuild.buildroot.net/results/10b/10b5c5b13971214d0439b715f1a46c78a5249309/Cc Waldemar Brodkorb <[email protected]>Cc Jonathan Ben Avraham <[email protected]>Signed-off-by Baruch Siach <[email protected]>---
package/autofs/Config.in | 6 ++++--1 file changed, 4 insertions(+), 2 deletions(-)package/autofs/Config.in +4
-2@@ -3,6 +3,7 @@ config BR2_PACKAGE_AUTOFS depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL depends on BR2_USE_MMU depends on !BR2_STATIC_LIBS # dlfcn + depends on !BR2_TOOLCHAIN_USES_MUSL # nsswitch select BR2_PACKAGE_LIBTIRPC if !BR2_TOOLCHAIN_HAS_NATIVE_RPC help Autofs controls the operation of the automount daemons. The@@ -15,6 +16,7 @@ config BR2_PACKAGE_AUTOFS http://www.linuxfromscratch.org/blfs/view/svn/general/autofs.html -comment "autofs needs a toolchain w/ NPTL and dynamic library" +comment "autofs needs a glibc or uClibc toolchain w/ NPTL and dynamic library" depends on BR2_USE_MMU - depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS + depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS \ + || BR2_TOOLCHAIN_USES_MUSL
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -