• Bug#1065158: postfix: FTBFS: missing build-dep on libnsl-dev

    From Aurelien Jarno@21:1/5 to All on Fri Mar 1 11:40:02 2024
    Source: postfix
    Version: 3.8.5-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 postfix to FTBFS in
    sid with:

    | gcc -fPIC -I. -I../../include -DDEBIAN -DHAS_PCRE=2 -DHAS_LDAP -DUSE_LDAP_SASL -DHAS_SQLITE -DMYORIGIN_FROM_FILE -DHAS_CDB -DHAS_LMDB -DHAS_MYSQL -I/usr/include/mysql -DHAS_PGSQL -I/usr/include/postgresql -DHAS_SQLITE -DHAS_SSL -I/usr/include/openssl -
    DUSE_SASL_AUTH -I/usr/include/sasl -DUSE_CYRUS_SASL -DUSE_TLS -DHAS_DEV_URANDOM -DDEF_DAEMON_DIR=\"/usr/lib/postfix/sbin\" -DDEF_HTML_DIR=\"/usr/share/doc/postfix/html\" -DDEF_MANPAGE_DIR=\"/usr/share/man\" -DDEF_README_DIR=\"/usr/share/doc/postfix\" -
    DUSE_DYNAMIC_LIBS -DUSE_DYNAMIC_MAPS -Wmissing-prototypes -Wformat -Wno-comment -fno-common -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-
    protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now -I. -DLINUX6 -c dict_nis.c
    | dict_nis.c:42:10: fatal error: rpcsvc/ypclnt.h: No such file or directory
    | 42 | #include <rpcsvc/ypclnt.h>
    | | ^~~~~~~~~~~~~~~~~
    | compilation terminated.
    | make: *** [Makefile:220: dict_nis.o] Error 1
    | make: *** Waiting for unfinished jobs....
    | make: Leaving directory '/<<PKGBUILDDIR>>/src/util'
    | make[2]: *** [Makefile:114: update] Error 1
    | make[2]: Leaving directory '/<<PKGBUILDDIR>>'
    | dh_auto_build: error: make -j3 "INSTALL=install --strip-program=true" returned exit code 2
    | make[1]: *** [debian/rules:90: override_dh_auto_build] Error 25
    | make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    | make: *** [debian/rules:63: binary] Error 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)
  • From Scott Kitterman@21:1/5 to aurel32@debian.org on Sun Mar 10 01:10:47 2024
    On Fri, 01 Mar 2024 11:33:37 +0100 Aurelien Jarno <aurel32@debian.org> wrote:
    Source: postfix
    Version: 3.8.5-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 postfix to FTBFS in
    sid with:

    | gcc -fPIC -I. -I../../include -DDEBIAN -DHAS_PCRE=2 -DHAS_LDAP -
    DUSE_LDAP_SASL -DHAS_SQLITE -DMYORIGIN_FROM_FILE -DHAS_CDB -DHAS_LMDB - DHAS_MYSQL -I/usr/include/mysql -DHAS_PGSQL -I/usr/include/postgresql - DHAS_SQLITE -DHAS_SSL -I/usr/include/openssl -DUSE_SASL_AUTH -I/usr/include/ sasl -DUSE_CYRUS_SASL -DUSE_TLS -DHAS_DEV_URANDOM -DDEF_DAEMON_DIR=\"/usr/lib/ postfix/sbin\" -DDEF_HTML_DIR=\"/usr/share/doc/postfix/html\" - DDEF_MANPAGE_DIR=\"/usr/share/man\" -DDEF_README_DIR=\"/usr/share/doc/postfix\" -DUSE_DYNAMIC_LIBS -DUSE_DYNAMIC_MAPS -Wmissing-prototypes -Wformat -Wno- comment -fno-common -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -U_FORTIFY_SOURCE - D_FORTIFY_SOURCE=3 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-
    lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat - Werror=format-security -fcf-protection -flto=auto -ffat-lto-objects -Wl,-z,relro
    -Wl,-z,now -I. -DLINUX6 -c dict_nis.c
    | dict_nis.c:42:10: fatal error: rpcsvc/ypclnt.h: No such file or directory
    | 42 | #include <rpcsvc/ypclnt.h>
    | | ^~~~~~~~~~~~~~~~~
    | compilation terminated.
    | make: *** [Makefile:220: dict_nis.o] Error 1
    | make: *** Waiting for unfinished jobs....
    | make: Leaving directory '/<<PKGBUILDDIR>>/src/util'
    | make[2]: *** [Makefile:114: update] Error 1
    | make[2]: Leaving directory '/<<PKGBUILDDIR>>'
    | dh_auto_build: error: make -j3 "INSTALL=install --strip-program=true"
    returned exit code 2
    | make[1]: *** [debian/rules:90: override_dh_auto_build] Error 25
    | make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    | make: *** [debian/rules:63: binary] Error 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.

    This doesn't currently cause a FTBFS in Testing and it's fixed in Unstable, so lowering severity to important.

    Scott K
    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEE53Kb/76FQA/u7iOxeNfe+5rVmvEFAmXtTucACgkQeNfe+5rV mvF0Uw/8DnQC8T0z7EPoAYIk2BVpdliMyCr3j/SYX2+sXSp8z3a4BP2m8ljopJsT Pe8M848DtPuW56edk46Em4mEdFbolMWOldYvc61GtNtPLu+CKdyfnqJMqnj3gzIE pGZxi+wg2ZkM44khjA2EpqkpsvUBWWNRWwAlS6TLxOZiaa/O7l6kMgQrevyPgHP4 jVYUwx5I+O5ueuDpDEvBG56CEOUIntHmqDKCfO4vut06kTY13o3aUdB2dUDXuAS4 gJZR86X/BPqTnCUsnxlcjvbYgsUth8vBIh+y02umLh3sIid86V7vMKFknUy56KG6 FwljCjgX4gUGyBqhX1VGZLr6Be7RBqwgEakd/bYZ1j1jiXWMAxLaHRLe7AhA+FzG UL8zzfHp5ttfJUmVsYuSSVztJ4AIZzGzZvOFN7xaIzWXMjRQESuDbkDzHfBVKfeH MTxVj7tiQRt50sGsaLmxFO1Y8+GRdlr19A3H+z3+7T/JEO5Qaqnd18ZTH4U19RLU 7h0pUM2Apw6rNfoqecQE6d1/Ub8BkX+2hChYC8/WuVnw/I7RrHeU5+vpIotm4N9C PsYpVIJ6vX3s7k/IzOV8eljuesrRdglAWy/qJrF3kNbA4ctQJPfdqKVvxZbEWX6a +DpyQ4wumWPZcxsUTEJ1zTvPuF05xnO90trgYvKxsum0Z6UZRYI=
    =YDNF
    -----END PGP SIGNATURE-----

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