From 8e7450b63d33dc059de0f5352d7b31afe32c17d3 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Sun, 7 Apr 2024 16:25:12 +0200 Subject: [PATCH] package/monit: add libxcrypt optional dependency Fix the following build failure raised since bump of glibc to version 2.39 in commit b5680f53d60acf8ff6010082f873438a39bd5d97: /home/buildroot/autobuild/instance-0/output-1/host/lib/gcc/powerpc-buildroot-linux-gnu/13.2.0/../../../../powerpc-buildroot-linux-gnu/bin/ld: src/util.o: in function `Util_checkCredentials': util.c:(.text+0x32e8): undefined reference to `crypt' Fixes: b5680f53d60acf8ff6010082f873438a39bd5d97 - http://autobuild.buildroot.org/results/12b2c6665280dcb813a58d9b025038bacc3b8d51 Signed-off-by: Fabrice Fontaine Signed-off-by: Yann E. MORIN --- package/monit/Config.in | 1 + package/monit/monit.mk | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/package/monit/Config.in b/package/monit/Config.in index 9f80858f8a..d177fe183c 100644 --- a/package/monit/Config.in +++ b/package/monit/Config.in @@ -2,6 +2,7 @@ config BR2_PACKAGE_MONIT bool "monit" depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_USE_MMU # fork() + select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC help Monit is a free open source utility for managing and monitoring, processes, programs, files, directories and diff --git a/package/monit/monit.mk b/package/monit/monit.mk index c709f903e6..e3a4fac936 100644 --- a/package/monit/monit.mk +++ b/package/monit/monit.mk @@ -25,6 +25,10 @@ MONIT_CONF_OPTS += \ --without-pam \ --with-largefiles +ifeq ($(BR2_PACKAGE_LIBXCRYPT),y) +MONIT_DEPENDENCIES += libxcrypt +endif + ifeq ($(BR2_PACKAGE_OPENSSL),y) MONIT_CONF_ENV += LIBS=`$(PKG_CONFIG_HOST_BINARY) --libs openssl` ifeq ($(BR2_STATIC_LIBS),y)