Bug#1128399: openssh: do not link against libcrypt on GNU/Hurd

Samuel Thibault <[email protected]> Thu, 19 Feb 2026 10:03:44 +0100
Newsgroups gmane.linux.debian.devel.ssh
Organization I am not organized
Message-ID <aZbR8KQ4tKZC2lmd__32884.0551593871$1771494341$gmane$org@end>
Source: openssh
Version: 1:10.2p1-4
Severity: important
Tags: patch

Hello,

openssh is currently made by debian/rules to link against libcrypt to
get res_query(), but:

- res_query() used to be in libresolv, not libcrypt
- ./configure already checks for res_query being in libresolv
- res_query() was moved to libc in GNU/Hurd like on GNU/Linux
- libcrypt is not provided by libc any more since recently, thus the
FTBFS that appeared recently.

so could you apply the attached patch to drop the tweak, fixing the
build?

Thanks,
Samuel

-- System Information:
Debian Release: forky/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'proposed-updates'), (500, 'oldstable-debug'), (500, 'oldoldstable'), (500, 'buildd-unstable'), (500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental-debug'), (1, 'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, arm64

Kernel: Linux 6.19.0 (SMP w/22 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled