[Buildroot] [git commit branch/2025.02.x] package/ecryptfs-utils: ssl support needs engines support in openssl
Thomas Perale
thomas.perale at mind.be
Thu Sep 11 15:15:03 UTC 2025
commit: https://git.buildroot.net/buildroot/commit/?id=2b21f3fb354030ec4161f5bc1b87b115dbfeece2
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2025.02.x
Fixes https://autobuild.buildroot.net/results/f32ae62961aac7e8344f4be109040e7de2eb415e/
The openssl logic in ecryptfs uses the openssl engines API, which is always
available in libressl, but only available in libopenssl when
BR2_PACKAGE_LIBOPENSSL_ENGINES is enabled, leading to build failures when it
is not:
ecryptfs_key_mod_openssl.c: In function 'ecryptfs_openssl_read_key':
ecryptfs_key_mod_openssl.c:305:9: error: implicit declaration of function 'ENGINE_load_builtin_engines' [-Wimplicit-function-declaration]
305 | ENGINE_load_builtin_engines();
Fix it by only passing --enable-openssl if libressl or (libopenssl + engines
support) is enabled.
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
(cherry picked from commit 2f309a6e0f969c2baf9e5c1598c80aba0049742d)
Signed-off-by: Thomas Perale <thomas.perale at mind.be>
---
package/ecryptfs-utils/ecryptfs-utils.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/ecryptfs-utils/ecryptfs-utils.mk b/package/ecryptfs-utils/ecryptfs-utils.mk
index 6eb3add98b..03e7f3e34f 100644
--- a/package/ecryptfs-utils/ecryptfs-utils.mk
+++ b/package/ecryptfs-utils/ecryptfs-utils.mk
@@ -32,7 +32,7 @@ else
ECRYPTFS_UTILS_CONF_OPTS += --disable-pam
endif
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ifeq ($(BR2_PACKAGE_LIBRESSL)$(BR2_PACKAGE_LIBOPENSSL_ENGINES),y)
ECRYPTFS_UTILS_CONF_OPTS += --enable-openssl
ECRYPTFS_UTILS_DEPENDENCIES += openssl
More information about the buildroot
mailing list