On Wed, Jan 21, 2026 at 05:50:21PM +0100, Emanuele Rocca wrote:
> Source: yp-tools
> Version: 4.2.3-5
> Severity: serious
> Tags: ftbfs
> Justification: fails to build from source (but built successfully in the past)
> 
> Hi,
> 
> yp-tools currently fails to build from source on amd64 and arm64 (and probably
> other architectures) with the following error:
> 
> gcc -DHAVE_CONFIG_H -I. -I..  -I../lib -I. -I.. 
> -DLOCALEDIR=\"/usr/share/locale\" -Wdate-time -D_FORTIFY_SOURCE=2 -Wall 
> -I/usr/include/t
> irpc  -I/usr/include/tirpc  -g -O2 -Werror=implicit-function-declaration 
> -ffile-prefix-map=/build/reproducible-path/yp-tools-4.2.3=. -fs
> tack-protector-strong -fstack-clash-protection -Wformat 
> -Werror=format-security -fcf-protection -c -o yptest.o yptest.c
> yppasswd.c:28:10: fatal error: crypt.h: No such file or directory
>    28 | #include <crypt.h>
>       |          ^~~~~~~~~
> compilation terminated.

I guess this is because libc6-dev has finally dropped its
compatibility dependency on libcrypt-dev, which now has to be added to
build-depends when appropriate. This was already reported here:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1106908

but for some reason the fix did not work, or maybe it was not applied.

Trivial (but untested) patch attached.

Thanks.
--- a/debian/control
+++ b/debian/control
@@ -6,6 +6,7 @@ Build-Depends: debhelper-compat (=13)
   ,libtirpc-dev
   ,dh-exec
   ,libnsl-dev
+  ,libcrypt-dev
 Standards-Version: 4.7.2
 Section: libs
 Homepage: http://www.linux-nis.org/

Reply via email to