• Bug#1065163: ypserv: FTBFS: missing build-dep on libnsl-dev

    From Aurelien Jarno@21:1/5 to All on Fri Mar 1 11:40:02 2024
    Source: ypserv
    Version: 4.2-1.1
    Severity: serious
    Tags: ftbfs
    Justification: fails to build from source (but built successfully in the past) User: debian-glibc@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 ypserv to FTBFS in
    sid with:

    | gcc -DHAVE_CONFIG_H -D_REENTRANT=1 -DCONFDIR=\"/etc\" -DYPMAPDIR=\"/var/yp\" -DUSE_SD_NOTIFY=1 -I. -I.. -I.. -I.. -I. -Wdate-time -D_FORTIFY_SOURCE=2 -fpie -I/usr/include/tirpc -Werror -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-
    strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-error=format-truncation= -Wno-error=format-overflow= -W -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith -
    Wreturn-type -Wstrict-prototypes -c -o securenets.o securenets.c
    | In file included from ypproc_match_2.c:22:
    | yp.h:10:10: fatal error: rpcsvc/yp_prot.h: No such file or directory
    | 10 | #include <rpcsvc/yp_prot.h>
    | | ^~~~~~~~~~~~~~~~~~
    | compilation terminated.
    | gmake[3]: *** [Makefile:615: ypproc_match_2.o] Error 1
    | gmake[3]: *** Waiting for unfinished jobs....
    | gmake[3]: Leaving directory '/<<PKGBUILDDIR>>/lib'
    | gmake[2]: *** [Makefile:395: all-recursive] Error 1
    | gmake[2]: Leaving directory '/<<PKGBUILDDIR>>'
    | make[1]: *** [Makefile:336: all] Error 2
    | make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    | dh_auto_build: error: make -j3 returned exit code 2
    | make: *** [debian/rules:28: 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.

    Regards
    Aurelien

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)