1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-10-28 23:34:53 +03:00

Remove --enable-obsolete-nsl configure flag

this means that *always* libnsl is only built as shared library for
backward compatibility and the NSS modules libnss_nis and libnss_nisplus
are not built at all, libnsl's headers aren't installed.

This compatibility is kept only for architectures and ABIs that have
been added in or before version 2.28.

Replacement implementations based on TIRPC, which additionally support
IPv6, are available from <https://github.com/thkukuk/>.

This change does not affect libnss_compat which does not depended
on libnsl since 2.27 and thus can be used without NIS.

libnsl code depends on Sun RPC, e.g. on --enable-obsolete-rpc (installed
libnsl headers use installed Sun RPC headers), which will be removed in
the following commit.
This commit is contained in:
Petr Vorel
2020-07-08 13:06:55 +02:00
committed by Florian Weimer
parent acb527929d
commit ae7a94e5e3
71 changed files with 48 additions and 11162 deletions

View File

@@ -833,13 +833,7 @@ for linking")
# define libnsl_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
# define libnsl_hidden_tls_proto(name, attrs...) \
hidden_tls_proto (name, ##attrs)
# ifdef LINK_OBSOLETE_NSL
/* libnsl_hidden_nolink should only get used in libnsl code. */
# define libnsl_hidden_nolink_def(name, version) libnsl_hidden_def (name)
# else
# define libnsl_hidden_nolink_def(name, version) hidden_nolink (name, libnsl, version)
# endif
# define libnsl_hidden_def(name) hidden_def (name)
# define libnsl_hidden_nolink_def(name, version) hidden_nolink (name, libnsl, version)
# define libnsl_hidden_weak(name) hidden_weak (name)
# define libnsl_hidden_ver(local, name) hidden_ver (local, name)
# define libnsl_hidden_data_def(name) hidden_data_def (name)
@@ -849,7 +843,6 @@ for linking")
#else
# define libnsl_hidden_proto(name, attrs...)
# define libnsl_hidden_tls_proto(name, attrs...)
# define libnsl_hidden_def(name)
# define libnsl_hidden_weak(name)
# define libnsl_hidden_ver(local, name)
# define libnsl_hidden_data_def(name)
@@ -858,52 +851,6 @@ for linking")
# define libnsl_hidden_data_ver(local, name)
#endif
#if IS_IN (libnss_nis)
# define libnss_nis_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
# define libnss_nis_hidden_tls_proto(name, attrs...) \
hidden_tls_proto (name, ##attrs)
# define libnss_nis_hidden_def(name) hidden_def (name)
# define libnss_nis_hidden_weak(name) hidden_weak (name)
# define libnss_nis_hidden_ver(local, name) hidden_ver (local, name)
# define libnss_nis_hidden_data_def(name) hidden_data_def (name)
# define libnss_nis_hidden_tls_def(name) hidden_tls_def (name)
# define libnss_nis_hidden_data_weak(name) hidden_data_weak (name)
# define libnss_nis_hidden_data_ver(local, name) hidden_data_ver (local, name)
#else
# define libnss_nis_hidden_proto(name, attrs...)
# define libnss_nis_hidden_tls_proto(name, attrs...)
# define libnss_nis_hidden_def(name)
# define libnss_nis_hidden_weak(name)
# define libnss_nis_hidden_ver(local, name)
# define libnss_nis_hidden_data_def(name)
# define libnss_nis_hidden_tls_def(name)
# define libnss_nis_hidden_data_weak(name)
# define libnss_nis_hidden_data_ver(local, name)
#endif
#if IS_IN (libnss_nisplus)
# define libnss_nisplus_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
# define libnss_nisplus_hidden_tls_proto(name, attrs...) \
hidden_tls_proto (name, ##attrs)
# define libnss_nisplus_hidden_def(name) hidden_def (name)
# define libnss_nisplus_hidden_weak(name) hidden_weak (name)
# define libnss_nisplus_hidden_ver(local, name) hidden_ver (local, name)
# define libnss_nisplus_hidden_data_def(name) hidden_data_def (name)
# define libnss_nisplus_hidden_tls_def(name) hidden_tls_def (name)
# define libnss_nisplus_hidden_data_weak(name) hidden_data_weak (name)
# define libnss_nisplus_hidden_data_ver(local, name) hidden_data_ver (local, name)
#else
# define libnss_nisplus_hidden_proto(name, attrs...)
# define libnss_nisplus_hidden_tls_proto(name, attrs...)
# define libnss_nisplus_hidden_def(name)
# define libnss_nisplus_hidden_weak(name)
# define libnss_nisplus_hidden_ver(local, name)
# define libnss_nisplus_hidden_data_def(name)
# define libnss_nisplus_hidden_tls_def(name)
# define libnss_nisplus_hidden_data_weak(name)
# define libnss_nisplus_hidden_data_ver(local, name)
#endif
#define libc_hidden_builtin_proto(name, attrs...) libc_hidden_proto (name, ##attrs)
#define libc_hidden_builtin_def(name) libc_hidden_def (name)
#define libc_hidden_builtin_weak(name) libc_hidden_weak (name)