From 7233016f25e29ab6fdc692a5fc00fe7cdb751ef7 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Fri, 17 May 2024 22:53:15 +0200 Subject: [PATCH] package/mokutil: select libxcrypt if needed Fix the following build failure raised since the addition of the package in commit 2e6e121496bfcbe09c018558be13733077b6df9b: mokutil.c:45:10: fatal error: crypt.h: No such file or directory 45 | #include | ^~~~~~~~~ Fixes: 2e6e121496bfcbe09c018558be13733077b6df9b - http://autobuild.buildroot.org/results/59e470ad6bf7f48314cd26ed4163c095e4c803ab Signed-off-by: Fabrice Fontaine Signed-off-by: Peter Korsgaard --- package/mokutil/Config.in | 1 + package/mokutil/mokutil.mk | 1 + 2 files changed, 2 insertions(+) diff --git a/package/mokutil/Config.in b/package/mokutil/Config.in index 3f0c760f7d..dd02078b4e 100644 --- a/package/mokutil/Config.in +++ b/package/mokutil/Config.in @@ -12,6 +12,7 @@ config BR2_PACKAGE_MOKUTIL depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12 # efivar select BR2_PACKAGE_EFIVAR select BR2_PACKAGE_KEYUTILS + select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC select BR2_PACKAGE_OPENSSL help mokutil is a tool to import or delete the machines owner diff --git a/package/mokutil/mokutil.mk b/package/mokutil/mokutil.mk index 6e83d9f138..f176fa5bee 100644 --- a/package/mokutil/mokutil.mk +++ b/package/mokutil/mokutil.mk @@ -14,6 +14,7 @@ MOKUTIL_DEPENDENCIES = \ efivar \ host-pkgconf \ keyutils \ + $(if $(BR2_PACKAGE_LIBXCRYPT),libxcrypt) \ openssl $(eval $(autotools-package))