From 166b05b54585bd67ed7920152462f6fe7778f3c4 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Sun, 7 Apr 2024 16:29:59 +0200 Subject: [PATCH] package/shadow: add libxcrypt optional dependency Fix the following build failure raised since bump of glibc to version 2.39 in commit b5680f53d60acf8ff6010082f873438a39bd5d97: configure: error: crypt() not found Fixes: b5680f53d60acf8ff6010082f873438a39bd5d97 - http://autobuild.buildroot.org/results/cd97aa4ee49c3052b762deccb5aa28cd23c54f5f Signed-off-by: Fabrice Fontaine Signed-off-by: Yann E. MORIN --- package/shadow/Config.in | 1 + package/shadow/shadow.mk | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/package/shadow/Config.in b/package/shadow/Config.in index b08b06457b..987605c7fa 100644 --- a/package/shadow/Config.in +++ b/package/shadow/Config.in @@ -3,6 +3,7 @@ menuconfig BR2_PACKAGE_SHADOW depends on !BR2_STATIC_LIBS depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_14 depends on !BR2_TOOLCHAIN_USES_UCLIBC # reallocarray, explicit_bzero + select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC help Utilities to deal with user accounts. diff --git a/package/shadow/shadow.mk b/package/shadow/shadow.mk index 2092903b2d..491f271330 100644 --- a/package/shadow/shadow.mk +++ b/package/shadow/shadow.mk @@ -88,6 +88,10 @@ else SHADOW_CONF_OPTS += --without-selinux endif +ifeq ($(BR2_PACKAGE_LIBXCRYPT),y) +SHADOW_DEPENDENCIES += libxcrypt +endif + # linux-pam is also used without account-tools-setuid enabled ifeq ($(BR2_PACKAGE_LINUX_PAM),y) SHADOW_CONF_OPTS += --with-libpam