[Pkg-freeipa-devel] Bug#1065160: slapi-nis: FTBFS: missing build-dep on libnsl-dev

Aurelien Jarno aurel32 at debian.org
Wed Jun 26 16:36:21 BST 2024


Dear maintainer,

On 2024-03-01 11:33, Aurelien Jarno wrote:
> Source: slapi-nis
> Version: 0.60.0-1
> Severity: serious
> Tags: ftbfs
> Justification: fails to build from source (but built successfully in the past)
> User: debian-glibc at lists.debian.org
> Usertags: libnsl-dev
> 
> Dear maintainer,
> 
> Starting with glibc 2.31, support for NIS (libnsl library) has been
> moved to a separate libnsl2 package. In order to allow a smooth
> transition, a libnsl-dev has been added to the libc6-dev package.
> 
> This dependency has been temporarily dropped in the 2.37-15.1 NMU, as
> part of the 64-bit time_t transition. This causes slapi-nis to FTBFS in
> sid with:
> 
> | /bin/bash ../libtool  --tag=CC   --mode=link gcc  -I/usr/include/nss -I/usr/include/nspr  -I/usr/include/tirpc   -DDEFS_NIS_MAIN -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -module -avoid-version -export-symbols-regex '.*_plugin_init' -Wl,-z,relro -o nisserver-plugin-defs nisserver_plugin_defs-defs-nis.o  -lsss_nss_idmap
> | libtool: link: gcc -I/usr/include/nss -I/usr/include/nspr -I/usr/include/tirpc -DPORTMAP_MAIN -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wl,-z -Wl,relro -o portmap portmap-portmap.o  -lnss3 -lnssutil3 -lsmime3 -lssl3 -lplds4 -lplc4 -lnspr4 -ltirpc -lwrap -lnsl -lsss_nss_idmap
> | /usr/bin/ld: cannot find -lnsl: No such file or directory
> | collect2: error: ld returned 1 exit status
> | make[3]: *** [Makefile:717: portmap] Error 1
> | make[3]: *** Waiting for unfinished jobs....
> | libtool: link: gcc -I/usr/include/nss -I/usr/include/nspr -I/usr/include/tirpc -DDEFS_NIS_MAIN -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wl,-z -Wl,relro -o nisserver-plugin-defs nisserver_plugin_defs-defs-nis.o  -lsss_nss_idmap
> | make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
> | make[2]: *** [Makefile:547: all] Error 2
> | make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'
> | make[1]: *** [Makefile:481: all-recursive] Error 1
> | make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> | dh_auto_build: error: make -j3 returned exit code 2
> | make: *** [debian/rules:8: build] Error 25
> | dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
> 
> This could be fixed by adding an explicit Build-Depends on libnsl-dev.
> The glibc change will likely be reverted in the short term, but given
> its a change we want to do for Trixie, this will only lower the severity
> of the bug.

I have just done a NMU to fix this issue. Please find the debdiff
attached.

Regards
Aurelien

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien at aurel32.net                     http://aurel32.net
-------------- next part --------------
diff -Nru slapi-nis-0.60.0/debian/changelog slapi-nis-0.60.0/debian/changelog
--- slapi-nis-0.60.0/debian/changelog	2022-11-21 10:38:23.000000000 +0100
+++ slapi-nis-0.60.0/debian/changelog	2024-06-26 17:18:36.000000000 +0200
@@ -1,3 +1,10 @@
+slapi-nis (0.60.0-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Add libnsl-dev as build-dependency. Closes: #1065160.
+
+ -- Aurelien Jarno <aurel32 at debian.org>  Wed, 26 Jun 2024 17:18:36 +0200
+
 slapi-nis (0.60.0-1) unstable; urgency=medium
 
   * New upstream release.
diff -Nru slapi-nis-0.60.0/debian/control slapi-nis-0.60.0/debian/control
--- slapi-nis-0.60.0/debian/control	2022-11-21 10:16:32.000000000 +0100
+++ slapi-nis-0.60.0/debian/control	2024-06-26 17:18:36.000000000 +0200
@@ -13,6 +13,7 @@
  libsss-nss-idmap-dev,
  libtirpc-dev,
  libwrap0-dev,
+ libnsl-dev,
  pkg-config
 Standards-Version: 4.5.0
 Homepage: https://pagure.io/slapi-nis


More information about the Pkg-freeipa-devel mailing list