[Buildroot] [PATCH 1/1] package/openssh: needs libxcrypt with glibc
Bernd Kuhls
bernd at kuhls.net
Sun Oct 26 09:32:50 UTC 2025
In contrast to the comment in configure.ac
https://github.com/openssh/openssh-portable/blob/V_10_2_P1/configure.ac#L3621
"# Check for crypt() in libcrypt. If we have it, we only need it for
sshd."
libcrypt is also needed when the server build is not enabled.
Fixes:
https://autobuild.buildroot.net/results/9b2/9b2333e40bd4727bcbe23c1949a6b78c59b1dfee/
The oldest build error to be found on the autobuilders dates back to Sep
2024 in version 9.7p1 so a backport should be considered:
https://autobuild.buildroot.net/results/642/6421d8536ea0940e666ac44ddbdbd8afa95ac856/
Signed-off-by: Bernd Kuhls <bernd at kuhls.net>
---
package/openssh/Config.in | 2 +-
package/openssh/openssh.mk | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/package/openssh/Config.in b/package/openssh/Config.in
index 25843447a7..2f9b5fe7ec 100644
--- a/package/openssh/Config.in
+++ b/package/openssh/Config.in
@@ -1,6 +1,7 @@
config BR2_PACKAGE_OPENSSH
bool "openssh"
depends on BR2_USE_MMU # fork()
+ select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC
select BR2_PACKAGE_OPENSSL
select BR2_PACKAGE_ZLIB
help
@@ -22,7 +23,6 @@ config BR2_PACKAGE_OPENSSH_CLIENT
config BR2_PACKAGE_OPENSSH_SERVER
bool "server"
default y
- select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC
help
Server programs: sshd, sftp-server
diff --git a/package/openssh/openssh.mk b/package/openssh/openssh.mk
index bcbfc39755..2f800d5eb2 100644
--- a/package/openssh/openssh.mk
+++ b/package/openssh/openssh.mk
@@ -46,7 +46,7 @@ endif
OPENSSH_DEPENDENCIES = host-pkgconf zlib openssl
# crypt() in libcrypt only required for sshd.
-ifeq ($(BR2_PACKAGE_OPENSSH_SERVER)$(BR2_PACKAGE_LIBXCRYPT),yy)
+ifeq ($(BR2_PACKAGE_LIBXCRYPT),y)
OPENSSH_DEPENDENCIES += libxcrypt
endif
--
2.47.3
More information about the buildroot
mailing list