[Buildroot] [git commit] package/policycoreutils: add libxcrypt optional dependency
Yann E. MORIN
yann.morin.1998 at free.fr
Sun Apr 7 15:34:15 UTC 2024
commit: https://git.buildroot.net/buildroot/commit/?id=8dd367b82cb4eb9f974c3fd683de79f01be85c80
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Fix the following build failure raised since bump of glibc to version
2.39 in commit b5680f53d60acf8ff6010082f873438a39bd5d97:
/home/autobuild/autobuild/instance-15/output-1/per-package/policycoreutils/host/bin/../lib/gcc/powerpc-buildroot-linux-gnu/12.3.0/../../../../powerpc-buildroot-linux-gnu/bin/ld: cannot find -lcrypt: No such file or directory
Fixes: b5680f53d60acf8ff6010082f873438a39bd5d97
- http://autobuild.buildroot.org/results/74c9775e5da7846b8dcff10e3966789458592450
Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
---
package/policycoreutils/Config.in | 1 +
package/policycoreutils/policycoreutils.mk | 4 ++++
2 files changed, 5 insertions(+)
diff --git a/package/policycoreutils/Config.in b/package/policycoreutils/Config.in
index 3201c8fede..499aaf531d 100644
--- a/package/policycoreutils/Config.in
+++ b/package/policycoreutils/Config.in
@@ -11,6 +11,7 @@ config BR2_PACKAGE_POLICYCOREUTILS
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 # libsemanage -> libselinux -> libsepol
select BR2_PACKAGE_LIBSEMANAGE
select BR2_PACKAGE_LIBCAP_NG
+ select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC
help
Policycoreutils is a collection of policy utilities
(originally the "core" set of utilities needed to use
diff --git a/package/policycoreutils/policycoreutils.mk b/package/policycoreutils/policycoreutils.mk
index 0e639760fa..3152fb6b67 100644
--- a/package/policycoreutils/policycoreutils.mk
+++ b/package/policycoreutils/policycoreutils.mk
@@ -13,6 +13,10 @@ POLICYCOREUTILS_CPE_ID_VENDOR = selinuxproject
POLICYCOREUTILS_DEPENDENCIES = libsemanage libcap-ng $(TARGET_NLS_DEPENDENCIES)
POLICYCOREUTILS_MAKE_OPTS = $(TARGET_CONFIGURE_OPTS) LDLIBS=$(TARGET_NLS_LIBS)
+ifeq ($(BR2_PACKAGE_LIBXCRYPT),y)
+POLICYCOREUTILS_DEPENDENCIES += libxcrypt
+endif
+
ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
POLICYCOREUTILS_DEPENDENCIES += linux-pam
POLICYCOREUTILS_MAKE_OPTS += NAMESPACE_PRIV=y
More information about the buildroot
mailing list