All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Nate Karstens" <nate.karstens@garmin.com>
To: <openembedded-core@lists.openembedded.org>
Cc: Nate Karstens <nate.karstens@garmin.com>
Subject: [OE-core][PATCH] openssl: Do not create /etc/ssl/certs
Date: Tue, 3 Nov 2020 07:44:11 -0600	[thread overview]
Message-ID: <20201103134411.118217-2-nate.karstens@garmin.com> (raw)
In-Reply-To: <20201103134411.118217-1-nate.karstens@garmin.com>

The openssl package previously created an empty folder for
CA certificates at /etc/ssl/certs. Other packages, like
ca-certificates, would then populate this folder.

Certain systems need more flexibility with how this folder
is created and populated (e.g., a symlink is needed). To
accommodate this, the openssl recipe no longer creates the
empty folder. Instead, the folder will only be created by
packages that populate it.

Signed-off-by: Nate Karstens <nate.karstens@garmin.com>
---
 meta/recipes-connectivity/openssl/openssl_1.1.1h.bb | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/meta/recipes-connectivity/openssl/openssl_1.1.1h.bb b/meta/recipes-connectivity/openssl/openssl_1.1.1h.bb
index eb11fe3960..5723d19dbf 100644
--- a/meta/recipes-connectivity/openssl/openssl_1.1.1h.bb
+++ b/meta/recipes-connectivity/openssl/openssl_1.1.1h.bb
@@ -134,14 +134,12 @@ do_install () {
 	# Create SSL structure for packages such as ca-certificates which
 	# contain hard-coded paths to /etc/ssl. Debian does the same.
 	install -d ${D}${sysconfdir}/ssl
-	mv ${D}${libdir}/ssl-1.1/certs \
-	   ${D}${libdir}/ssl-1.1/private \
+	mv ${D}${libdir}/ssl-1.1/private \
 	   ${D}${libdir}/ssl-1.1/openssl.cnf \
 	   ${D}${sysconfdir}/ssl/
 
 	# Although absolute symlinks would be OK for the target, they become
 	# invalid if native or nativesdk are relocated from sstate.
-	ln -sf ${@oe.path.relative('${libdir}/ssl-1.1', '${sysconfdir}/ssl/certs')} ${D}${libdir}/ssl-1.1/certs
 	ln -sf ${@oe.path.relative('${libdir}/ssl-1.1', '${sysconfdir}/ssl/private')} ${D}${libdir}/ssl-1.1/private
 	ln -sf ${@oe.path.relative('${libdir}/ssl-1.1', '${sysconfdir}/ssl/openssl.cnf')} ${D}${libdir}/ssl-1.1/openssl.cnf
 }
-- 
2.28.0


  reply	other threads:[~2020-11-03 13:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-03 13:44 openssl: Do not create /etc/ssl/certs nate.karstens
2020-11-03 13:44 ` Nate Karstens [this message]
2020-11-03 13:47   ` [OE-core][PATCH] " Nate Karstens
2020-11-03 16:00   ` Richard Purdie
2020-11-06  6:55     ` Nate Karstens

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201103134411.118217-2-nate.karstens@garmin.com \
    --to=nate.karstens@garmin.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.