package/polkit: add libxcrypt optional dependency

Fix the following build failure raised since bump of glibc to version
2.39 in commit b5680f53d6:

../output-1/build/polkit-123/meson.build:267:18: ERROR: C shared or static library 'crypt' not found

Fixes: b5680f53d6
 - http://autobuild.buildroot.org/results/59926191d274b25e32e6bbd708f5aadb346d3171

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Fabrice Fontaine 2024-04-07 15:46:32 +02:00 committed by Yann E. MORIN
parent 102b0ae459
commit 55f3df2dbe
2 changed files with 5 additions and 0 deletions

View File

@ -10,6 +10,7 @@ config BR2_PACKAGE_POLKIT
select BR2_PACKAGE_DUKTAPE
select BR2_PACKAGE_EXPAT
select BR2_PACKAGE_LIBGLIB2
select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC
help
PolicyKit is a toolkit for defining and handling
authorizations. It is used for allowing unprivileged

View File

@ -30,6 +30,10 @@ else
POLKIT_CONF_OPTS += -Dintrospection=false
endif
ifeq ($(BR2_PACKAGE_LIBXCRYPT),y)
POLKIT_DEPENDENCIES += libxcrypt
endif
ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
POLKIT_DEPENDENCIES += linux-pam
POLKIT_CONF_OPTS += -Dauthfw=pam