glibc: install the obsolete libnsl
PATCH 1/1 glibc: install the obsolete libnsl
glibc 2.27 stopped installing libnsl by default. Restore libnsl install to fix packages, like exim, that use that library.
Fixes (exim):
http://autobuild.buildroot.net/results/a19/a19df43be7d27cf8815e1257122d25aa8285d75b/
http://autobuild.buildroot.net/results/8ec/8ecfc42a81efec8485784f945e231eb40a087b5b/
http://autobuild.buildroot.net/results/054/054eb702a9b8c66454970333ef45a0afccb7cc80/
--- package/glibc/glibc.mk | 1 + 1 file changed, 1 insertion(+)
package/glibc/glibc.mk +1 -0
@@ -100,6 +100,7 @@ define GLIBC_CONFIGURE_CMDS --disable-profile \ --without-gd \ --enable-obsolete-rpc \ + --enable-obsolete-nsl \ --enable-kernel=$(call qstrip,$(BR2_TOOLCHAIN_HEADERS_AT_LEAST)) \ --with-headers=$(STAGING_DIR)/usr/include) $(GLIBC_ADD_MISSING_STUB_H)
Signature · 1 line
2.16.1
PATCH 1/1 glibc: install the obsolete libnsl
Hi Baruch,
Quoted 2 lines · Baruch Siach
glibc 2.27 stopped installing libnsl by default. Restore libnsl install to fix packages, like exim, that use that library.
Are you aware of other packages using it?
Quoted 7 lines
Fixes (exim):
http://autobuild.buildroot.net/results/a19/a19df43be7d27cf8815e1257122d25aa8285d75b/
http://autobuild.buildroot.net/results/8ec/8ecfc42a81efec8485784f945e231eb40a087b5b/
http://autobuild.buildroot.net/results/054/054eb702a9b8c66454970333ef45a0afccb7cc80/Cc Waldemar Brodkorb <[email protected]>Signed-off-by Baruch Siach <[email protected]>
[Tested on
http://autobuild.buildroot.net/results/cbbb893a03dd1f6dfd67d1144ead0473938e3283/
]
However the glibc NEWS file says libnsl is deprecated and has been moved to an external library [0]. So it will likely be removed at some point, and thus this is only a temporary solution.
Regards,
Signature · 1 line
Luca
PATCH 1/1 glibc: install the obsolete libnsl
Hi Luca,
Quoted 5 lines · Luca Ceresoli
Quoted 2 lines · Baruch Siach
glibc 2.27 stopped installing libnsl by default. Restore libnsl install to fix packages, like exim, that use that library.
Are you aware of other packages using it?
I'm not aware of any.
Quoted 5 lines
Quoted 8 lines
Quoted 2 lines
Cc Waldemar Brodkorb <[email protected]>Signed-off-by Baruch Siach <[email protected]>[Tested on
http://autobuild.buildroot.net/results/cbbb893a03dd1f6dfd67d1144ead0473938e3283/
]Tested-by Luca Ceresoli <[email protected]>Reviewed-by Luca Ceresoli <[email protected]>
Thanks.
Quoted 3 lines
However the glibc NEWS file says libnsl is deprecated and has been moved to an external library [0]. So it will likely be removed at some point, and thus this is only a temporary solution.
When glibc drops libnsl completely we can patch out the libnsl dependency of exim, like we do when linking with non-glibc libc. Hopefully upstream exim will find a better solution by then.
Quoted 2 lines
baruch
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 -PATCH 1/1 glibc: install the obsolete libnsl
In reply to Baruch SiachQuoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Baruch" == Baruch Siach <[email protected]> writes:
glibc 2.27 stopped installing libnsl by default. Restore libnsl install to fix packages, like exim, that use that library.
Quoted 7 lines
Fixes (exim):
http://autobuild.buildroot.net/results/a19/a19df43be7d27cf8815e1257122d25aa8285d75b/
http://autobuild.buildroot.net/results/8ec/8ecfc42a81efec8485784f945e231eb40a087b5b/
http://autobuild.buildroot.net/results/054/054eb702a9b8c66454970333ef45a0afccb7cc80/Cc Waldemar Brodkorb <[email protected]>Signed-off-by Baruch Siach <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/1 glibc: install the obsolete libnsl
In reply to Baruch SiachHi Baruch, All,
Le 13/03/2018 ? 16:59, Baruch Siach a ?crit?:
Quoted 2 lines
glibc 2.27 stopped installing libnsl by default. Restore libnsl install to fix packages, like exim, that use that library.
Do you know if libnsl can be disabled from exim ?
Is exim is the only remaining program still using/supporting libnsl ?
libnsl from Glibc doesn't build with the upcoming gcc 8, it's not even build tested by Glibc maintainers (build-many-glibcs.py test script) see [1].
Maybe we can provide libnsl from a package that provide an updated version of this library [2]?
Can you have a look?
Best regards,
Romain
[1] http://patchwork.sourceware.org/patch/26437
[2] https://github.com/thkukuk/libnsl.git
Quoted 25 lines
Fixes (exim):
http://autobuild.buildroot.net/results/a19/a19df43be7d27cf8815e1257122d25aa8285d75b/
http://autobuild.buildroot.net/results/8ec/8ecfc42a81efec8485784f945e231eb40a087b5b/
http://autobuild.buildroot.net/results/054/054eb702a9b8c66454970333ef45a0afccb7cc80/Cc Waldemar Brodkorb <[email protected]>Signed-off-by Baruch Siach <[email protected]>--- package/glibc/glibc.mk | 1 + 1 file changed, 1 insertion(+)package/glibc/glibc.mk +1
-0@@ -100,6 +100,7 @@ define GLIBC_CONFIGURE_CMDS --disable-profile \ --without-gd \ --enable-obsolete-rpc \ + --enable-obsolete-nsl \ --enable-kernel=$(call qstrip,$(BR2_TOOLCHAIN_HEADERS_AT_LEAST)) \ --with-headers=$(STAGING_DIR)/usr/include) $(GLIBC_ADD_MISSING_STUB_H)
PATCH 1/1 glibc: install the obsolete libnsl
Hi Romain,
Quoted 5 lines · Romain Naour
Le 13/03/2018 ? 16:59, Baruch Siach a ?crit?:
Quoted 2 lines
glibc 2.27 stopped installing libnsl by default. Restore libnsl install to fix packages, like exim, that use that library.
Do you know if libnsl can be disabled from exim ?
Of course. We already do that for non-glibc targets. See EXIM_REMOVE_LIBNSL_FROM_MAKEFILE in exim.mk.
Quoted 1 line
Is exim is the only remaining program still using/supporting libnsl ?
I don't know.
Quoted 7 lines
libnsl from Glibc doesn't build with the upcoming gcc 8, it's not even build tested by Glibc maintainers (
build-many-glibcs.pytest script) see [1].Maybe we can provide libnsl from a package that provide an updated version of this library [2]?
Can you have a look?
The simplest solution would be to disable libnsl in exim unconditionally, remove libnsl support in glibc, and deal with any other libnsl users as we encounter them.
baruch
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -PATCH 1/1 glibc: install the obsolete libnsl
Hi Baruch,
Le 29/04/2018 ? 06:26, Baruch Siach a ?crit?:
Quoted 19 lines
Hi Romain,
Quoted 5 lines · Romain Naour
Le 13/03/2018 ? 16:59, Baruch Siach a ?crit?:
Quoted 2 lines
glibc 2.27 stopped installing libnsl by default. Restore libnsl install to fix packages, like exim, that use that library.
Do you know if libnsl can be disabled from exim ?
Of course. We already do that for non-glibc targets. See
EXIM_REMOVE_LIBNSL_FROM_MAKEFILEin exim.mk.Quoted 1 line
Is exim is the only remaining program still using/supporting libnsl ?
I don't know.
Quoted 3 lines
libnsl from Glibc doesn't build with the upcoming gcc 8, it's not even build tested by Glibc maintainers (
build-many-glibcs.pytest script) see [1].
Quoted 8 lines
Quoted 4 lines
Maybe we can provide libnsl from a package that provide an updated version of this library [2]?
Can you have a look?
The simplest solution would be to disable libnsl in exim unconditionally, remove libnsl support in glibc, and deal with any other libnsl users as we encounter them.
Ok, let's remove nsl unconditionally from exim and disable the deprecated libnsl from glibc. I'll post a new series doing so.
Btw, Fedora 28 has switched to the external libnsl in order to support IPV6 [1]. Interested people can add a new libnsl package later.
Best regards,
Romain
|1] https://fedoraproject.org/wiki/Changes/NISIPv6
Quoted 3 lines
baruch