From f387594730a7a5048d5d6079935af4abab60e384 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Wed, 3 Apr 2024 17:36:37 +0200 Subject: [PATCH] package/leafnode2: add optional dependency to libxcrypt When glibc was bumped to version 2.39 in commit b5680f53d60acf8ff6010082f873438a39bd5d97 it removed the deprecated libcrypt support. As glibc's libcrypt was providing leafnode2's libcrypt dependency this broke the leafnode2 build using glibc version 2.39. To fix this select the libxcrypt dependency to leafnode2 when using a glibc toolchain and add the dependency if selected. Fixes: http://autobuild.buildroot.net/results/08f86ce128623105087cda0c5b32a1d0d0cfa166/ Signed-off-by: Bernd Kuhls Signed-off-by: Yann E. MORIN --- package/leafnode2/Config.in | 1 + package/leafnode2/leafnode2.mk | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/package/leafnode2/Config.in b/package/leafnode2/Config.in index 3700b6fb80..df9b246946 100644 --- a/package/leafnode2/Config.in +++ b/package/leafnode2/Config.in @@ -1,6 +1,7 @@ config BR2_PACKAGE_LEAFNODE2 bool "leafnode2" depends on BR2_USE_MMU # fork() + select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC select BR2_PACKAGE_PCRE help Leafnode-2 is a store-and-forward NNTP (or Usenet) proxy diff --git a/package/leafnode2/leafnode2.mk b/package/leafnode2/leafnode2.mk index 3ed2e20266..cba6b1f72a 100644 --- a/package/leafnode2/leafnode2.mk +++ b/package/leafnode2/leafnode2.mk @@ -14,6 +14,10 @@ LEAFNODE2_AUTORECONF = YES LEAFNODE2_CONF_ENV = \ PCRECONFIG="$(STAGING_DIR)/usr/bin/pcre-config" +ifeq ($(BR2_PACKAGE_LIBXCRYPT),y) +LEAFNODE2_DEPENDENCIES += libxcrypt +endif + # --enable-runas-user use 'news' as default but the configure stop # if news doesn't exist on the build host. # Use 'root' while cross-compiling