From 21c2a8ef8f91e87e8e1eb2444c9b0ec9f0a84335 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Sun, 7 Apr 2024 16:12:47 +0200 Subject: [PATCH] package/vsftpd: add libxcrypt optional dependency Fix the following build failure raised since bump of glibc to version 2.39 in commit b5680f53d60acf8ff6010082f873438a39bd5d97: /home/autobuild/autobuild/instance-5/output-1/host/lib/gcc/mipsel-buildroot-linux-gnu/12.3.0/../../../../mipsel-buildroot-linux-gnu/bin/ld: cannot find -lcrypt: No such file or directory Fixes: b5680f53d60acf8ff6010082f873438a39bd5d97 - http://autobuild.buildroot.org/results/062dbadf1f2f8e25747f7689974a693163932113 Signed-off-by: Fabrice Fontaine Signed-off-by: Yann E. MORIN --- package/vsftpd/Config.in | 1 + package/vsftpd/vsftpd.mk | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/package/vsftpd/Config.in b/package/vsftpd/Config.in index 464d6f27e3..fb74b14501 100644 --- a/package/vsftpd/Config.in +++ b/package/vsftpd/Config.in @@ -1,6 +1,7 @@ config BR2_PACKAGE_VSFTPD bool "vsftpd" depends on BR2_USE_MMU # fork() + select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC help vsftpd is an ftp daemon written with security in mind. http://vsftpd.beasts.org/ diff --git a/package/vsftpd/vsftpd.mk b/package/vsftpd/vsftpd.mk index 6742843c19..14c1b6be13 100644 --- a/package/vsftpd/vsftpd.mk +++ b/package/vsftpd/vsftpd.mk @@ -35,6 +35,10 @@ VSFTPD_DEPENDENCIES += libcap VSFTPD_LIBS += -lcap endif +ifeq ($(BR2_PACKAGE_LIBXCRYPT),y) +VSFTPD_DEPENDENCIES += libxcrypt +endif + ifeq ($(BR2_PACKAGE_LINUX_PAM),y) VSFTPD_DEPENDENCIES += linux-pam VSFTPD_LIBS += -lpam