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@korsgaard.com>
(cherry picked from commit 2f309a6e0f)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
51 lines
1.5 KiB
Makefile
51 lines
1.5 KiB
Makefile
################################################################################
|
|
#
|
|
# ecryptfs-utils
|
|
#
|
|
################################################################################
|
|
|
|
ECRYPTFS_UTILS_VERSION = 111
|
|
ECRYPTFS_UTILS_SOURCE = ecryptfs-utils_$(ECRYPTFS_UTILS_VERSION).orig.tar.gz
|
|
ECRYPTFS_UTILS_SITE = https://launchpad.net/ecryptfs/trunk/$(ECRYPTFS_UTILS_VERSION)/+download
|
|
ECRYPTFS_UTILS_LICENSE = GPL-2.0+
|
|
ECRYPTFS_UTILS_LICENSE_FILES = COPYING
|
|
ECRYPTFS_UTILS_CPE_ID_VENDOR = ecryptfs
|
|
|
|
ECRYPTFS_UTILS_DEPENDENCIES = host-pkgconf keyutils libnss host-intltool
|
|
ECRYPTFS_UTILS_CONF_OPTS = --disable-pywrap
|
|
|
|
ECRYPTFS_UTILS_CONF_ENV = ac_cv_path_POD2MAN=true
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBGPGME),y)
|
|
ECRYPTFS_UTILS_CONF_OPTS += \
|
|
--enable-gpg \
|
|
--with-gpgme-prefix=$(STAGING_DIR)/usr
|
|
ECRYPTFS_UTILS_DEPENDENCIES += libgpgme
|
|
else
|
|
ECRYPTFS_UTILS_CONF_OPTS += --disable-gpg
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
|
|
ECRYPTFS_UTILS_CONF_OPTS += --enable-pam
|
|
ECRYPTFS_UTILS_DEPENDENCIES += linux-pam
|
|
else
|
|
ECRYPTFS_UTILS_CONF_OPTS += --disable-pam
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBRESSL)$(BR2_PACKAGE_LIBOPENSSL_ENGINES),y)
|
|
ECRYPTFS_UTILS_CONF_OPTS += --enable-openssl
|
|
ECRYPTFS_UTILS_DEPENDENCIES += openssl
|
|
|
|
ifeq ($(BR2_PACKAGE_PKCS11_HELPER),y)
|
|
ECRYPTFS_UTILS_CONF_OPTS += --enable-pkcs11-helper
|
|
ECRYPTFS_UTILS_DEPENDENCIES += pkcs11-helper
|
|
else
|
|
ECRYPTFS_UTILS_CONF_OPTS += --disable-pkcs11-helper
|
|
endif
|
|
|
|
else
|
|
ECRYPTFS_UTILS_CONF_OPTS += --disable-openssl
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|