diff mbox series

package/libressl: fix openssldir setting to match openssl

Message ID 20210616160507.11223-1-peter@korsgaard.com
State Accepted
Headers show
Series package/libressl: fix openssldir setting to match openssl | expand

Commit Message

Peter Korsgaard June 16, 2021, 4:05 p.m. UTC
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@korsgaard.com>
---
 package/libressl/libressl.mk | 1 +
 1 file changed, 1 insertion(+)

Comments

Peter Korsgaard June 23, 2021, 6:55 a.m. UTC | #1
>>>>> "Peter" == Peter Korsgaard <peter@korsgaard.com> writes:

 > 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@korsgaard.com>

Committed, thanks.
Peter Korsgaard June 24, 2021, 7:15 a.m. UTC | #2
>>>>> "Peter" == Peter Korsgaard <peter@korsgaard.com> writes:

 > 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@korsgaard.com>

Committed to 2021.02.x and 2021.05.x, thanks.
diff mbox series

Patch

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