[Buildroot] [git commit branch/2021.05.x] package/libressl: fix openssldir setting to match openssl

Peter Korsgaard peter at korsgaard.com
Thu Jun 24 07:15:26 UTC 2021


commit: https://git.buildroot.net/buildroot/commit/?id=19171c133497b94193d6ce9b15d4bdb8a2b16849
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2021.05.x

libressl defaults to $prefix/etc/ssl for its "openssldir" setting, E.G.
the location where configuration files and certificates are searched:

openssl version -d
OPENSSLDIR: "/usr/etc/ssl"

Change it to /etc/ssl so it matches openssl and the expectations of packages
dealing with certificates (ca-certificates, libcurl, p11-kit)

Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
(cherry picked from commit b0f0b4c4bc2fd1dd12c54ad555614f354d1b98dc)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/libressl/libressl.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/libressl/libressl.mk b/package/libressl/libressl.mk
index ad345ba3f0..d09df8f40f 100644
--- a/package/libressl/libressl.mk
+++ b/package/libressl/libressl.mk
@@ -10,6 +10,7 @@ LIBRESSL_LICENSE = ISC (new additions), OpenSSL or SSLeay (original OpenSSL code
 LIBRESSL_LICENSE_FILES = COPYING
 LIBRESSL_CPE_ID_VENDOR = openbsd
 LIBRESSL_INSTALL_STAGING = YES
+LIBRESSL_CONF_OPTS = -DOPENSSLDIR="/etc/ssl"
 
 ifeq ($(BR2_PACKAGE_LIBRESSL_BIN),)
 define LIBRESSL_REMOVE_BIN


More information about the buildroot mailing list