From e71036045b9b0d9b2c1bd3a2d17f57187ffdde9d Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Wed, 1 Jan 2025 23:37:24 +0100 Subject: [PATCH] package/c-icap: memcached code needs The memcached code of c-icap needs , which is no longer provided by glibc since glibc 2.39. So add some logic to add a dependency on libxcrypt when needed. Fixes: http://autobuild.buildroot.net/results/63b04f86bb8794b79d206659a883acef96dfebf0/ Signed-off-by: Thomas Petazzoni Signed-off-by: Julien Olivain --- package/c-icap/Config.in | 3 +++ package/c-icap/c-icap.mk | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package/c-icap/Config.in b/package/c-icap/Config.in index 8f7963c26a..3c1325ee39 100644 --- a/package/c-icap/Config.in +++ b/package/c-icap/Config.in @@ -3,6 +3,9 @@ config BR2_PACKAGE_C_ICAP depends on !BR2_STATIC_LIBS depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_USE_MMU # fork() + # the libmemcached code uses + select BR2_PACKAGE_LIBXCRYPT if \ + BR2_PACKAGE_LIBMEMCACHED && BR2_TOOLCHAIN_USES_GLIBC help c-icap is an implementation of an ICAP server. It can be used with HTTP proxies that support the ICAP protocol to diff --git a/package/c-icap/c-icap.mk b/package/c-icap/c-icap.mk index 36ef1c8b12..4ece4c4b26 100644 --- a/package/c-icap/c-icap.mk +++ b/package/c-icap/c-icap.mk @@ -43,7 +43,7 @@ endif ifeq ($(BR2_PACKAGE_LIBMEMCACHED),y) C_ICAP_CONF_OPTS += --with-memcached -C_ICAP_DEPENDENCIES += libmemcached +C_ICAP_DEPENDENCIES += libmemcached $(if $(BR2_PACKAGE_LIBXCRYPT),libxcrypt) else C_ICAP_CONF_OPTS += --without-memcached endif