[8/9] test-installation: skip libnsl

Message ID 20260919100444.2316950-9-xry111@xry111.site (mailing list archive)
State Superseded
Delegated to: Adhemerval Zanella Netto
Headers
Series Make test-installation.pl work |

Checks

Context Check Description
redhat-pt-bot/TryBot-apply_patch success Patch applied to master at the time it was sent
linaro-tcwg-bot/tcwg_glibc_build--master-aarch64 success Build passed
linaro-tcwg-bot/tcwg_glibc_build--master-arm success Build passed
linaro-tcwg-bot/tcwg_glibc_check--master-aarch64 success Test passed
linaro-tcwg-bot/tcwg_glibc_check--master-arm success Test passed

Commit Message

Xi Ruoyao Sept. 19, 2026, 10:04 a.m. UTC
  We only provides an old SONAME for backward compatibility, so -lnsl will
either fail or end up linking against libnsl.so.3 from a different
package.

Signed-off-by: Xi Ruoyao <xry111@xry111.site>
---
 scripts/test-installation.pl | 2 ++
 1 file changed, 2 insertions(+)
  

Comments

Adhemerval Zanella Sept. 24, 2026, 4:41 p.m. UTC | #1
On 19/09/26 07:04, Xi Ruoyao wrote:
> We only provides an old SONAME for backward compatibility, so -lnsl will

s/provides/provide/

> either fail or end up linking against libnsl.so.3 from a different
> package.
> 
> Signed-off-by: Xi Ruoyao <xry111@xry111.site>
> ---
>  scripts/test-installation.pl | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/scripts/test-installation.pl b/scripts/test-installation.pl
> index 09081f22e7..cce7691a92 100755
> --- a/scripts/test-installation.pl
> +++ b/scripts/test-installation.pl
> @@ -124,6 +124,8 @@ while (<SOVERSIONS>) {
>        "gcc_s", "unwind",
>        # are dummy SONAMEs for compatibility, unavailable for -l
>        "nss_dns", "nss_files",
> +      # conflicts with the libnsl package
> +      "nsl",
>        # are empty static libraries, unavailable for ldd to find
>        "dl", "rt", "pthread", "util",
>      );

LGTM with those changes.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
  

Patch

diff --git a/scripts/test-installation.pl b/scripts/test-installation.pl
index 09081f22e7..cce7691a92 100755
--- a/scripts/test-installation.pl
+++ b/scripts/test-installation.pl
@@ -124,6 +124,8 @@  while (<SOVERSIONS>) {
       "gcc_s", "unwind",
       # are dummy SONAMEs for compatibility, unavailable for -l
       "nss_dns", "nss_files",
+      # conflicts with the libnsl package
+      "nsl",
       # are empty static libraries, unavailable for ldd to find
       "dl", "rt", "pthread", "util",
     );