From 78470802b058e15034d67b43207391693d1a54b2 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Wed, 3 Apr 2024 17:36:36 +0200 Subject: [PATCH] package/freeswitch: 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 freeswitch's libcrypt dependency this broke the freeswitch build using glibc version 2.39. To fix this select the libxcrypt dependency to freeswitch when using a glibc toolchain and add the dependency if selected. Signed-off-by: Bernd Kuhls Signed-off-by: Yann E. MORIN --- package/freeswitch/Config.in | 1 + package/freeswitch/freeswitch.mk | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/package/freeswitch/Config.in b/package/freeswitch/Config.in index 1ab624c33c..80d18e064d 100644 --- a/package/freeswitch/Config.in +++ b/package/freeswitch/Config.in @@ -7,6 +7,7 @@ config BR2_PACKAGE_FREESWITCH depends on BR2_USE_WCHAR # uses wchar_t select BR2_PACKAGE_FFMPEG_SWSCALE if BR2_PACKAGE_FFMPEG select BR2_PACKAGE_LIBCURL + select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC select BR2_PACKAGE_JPEG # src/mod/applications/mod_cv/mod_cv.cpp includes # highgui.h, imgproc.hpp & objdetect.hpp diff --git a/package/freeswitch/freeswitch.mk b/package/freeswitch/freeswitch.mk index 5b9dc49c9b..6160fe5fcb 100644 --- a/package/freeswitch/freeswitch.mk +++ b/package/freeswitch/freeswitch.mk @@ -229,6 +229,10 @@ FREESWITCH_DEPENDENCIES += libpng FREESWITCH_ENABLED_MODULES += formats/mod_png endif +ifeq ($(BR2_PACKAGE_LIBXCRYPT),y) +FREESWITCH_DEPENDENCIES += libxcrypt +endif + ifeq ($(BR2_PACKAGE_LIBYAML),y) FREESWITCH_DEPENDENCIES += libyaml FREESWITCH_ENABLED_MODULES += languages/mod_yaml