* [PATCH v2] openssl: use nonarch_libdir for openssldir
@ 2026-09-02 10:00 jaeyoon.jung
2026-09-03 7:13 ` [OE-core] " Mathieu Dubois-Briand
0 siblings, 1 reply; 2+ messages in thread
From: jaeyoon.jung @ 2026-09-02 10:00 UTC (permalink / raw)
To: openembedded-core; +Cc: Jaeyoon Jung
From: Jaeyoon Jung <jaeyoon.jung@lge.com>
Set openssldir to ${nonarch_libdir}/ssl-3 instead of ${libdir}/ssl-3
as the contents of this directory do not vary between non-multilib and
multilib builds.
Signed-off-by: Jaeyoon Jung <jaeyoon.jung@lge.com>
---
.../openssl/openssl_3.5.8.bb | 30 +++++++++----------
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/meta/recipes-connectivity/openssl/openssl_3.5.8.bb b/meta/recipes-connectivity/openssl/openssl_3.5.8.bb
index 71446e62e3..7e9f32770a 100644
--- a/meta/recipes-connectivity/openssl/openssl_3.5.8.bb
+++ b/meta/recipes-connectivity/openssl/openssl_3.5.8.bb
@@ -153,7 +153,7 @@ do_configure () {
PERLEXTERNAL="$(realpath ${S}/external/perl/Text-Template-*/lib)"
test -d "$PERLEXTERNAL" || bberror "PERLEXTERNAL '$PERLEXTERNAL' not found!"
HASHBANGPERL="/usr/bin/env perl" PERL=perl PERL5LIB="$PERLEXTERNAL" \
- perl ${S}/Configure ${EXTRA_OECONF} ${PACKAGECONFIG_CONFARGS} ${DEPRECATED_CRYPTO_FLAGS} --prefix=${prefix} --openssldir=${libdir}/ssl-3 --libdir=${baselib} $target
+ perl ${S}/Configure ${EXTRA_OECONF} ${PACKAGECONFIG_CONFARGS} ${DEPRECATED_CRYPTO_FLAGS} --prefix=${prefix} --openssldir=${nonarch_libdir}/ssl-3 --libdir=${baselib} $target
perl ${B}/configdata.pm --dump
}
@@ -175,20 +175,20 @@ 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-3/certs \
- ${D}${libdir}/ssl-3/private \
- ${D}${libdir}/ssl-3/openssl.cnf \
+ mv ${D}${nonarch_libdir}/ssl-3/certs \
+ ${D}${nonarch_libdir}/ssl-3/private \
+ ${D}${nonarch_libdir}/ssl-3/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-3', '${sysconfdir}/ssl/certs')} ${D}${libdir}/ssl-3/certs
- ln -sf ${@oe.path.relative('${libdir}/ssl-3', '${sysconfdir}/ssl/private')} ${D}${libdir}/ssl-3/private
- ln -sf ${@oe.path.relative('${libdir}/ssl-3', '${sysconfdir}/ssl/openssl.cnf')} ${D}${libdir}/ssl-3/openssl.cnf
+ ln -sf ${@oe.path.relative('${nonarch_libdir}/ssl-3', '${sysconfdir}/ssl/certs')} ${D}${nonarch_libdir}/ssl-3/certs
+ ln -sf ${@oe.path.relative('${nonarch_libdir}/ssl-3', '${sysconfdir}/ssl/private')} ${D}${nonarch_libdir}/ssl-3/private
+ ln -sf ${@oe.path.relative('${nonarch_libdir}/ssl-3', '${sysconfdir}/ssl/openssl.cnf')} ${D}${nonarch_libdir}/ssl-3/openssl.cnf
# Generate fipsmodule.cnf in pkg_postinst_ontarget
if ${@bb.utils.contains('PACKAGECONFIG', 'fips', 'true', 'false', d)}; then
- rm -f ${D}${libdir}/ssl-3/fipsmodule.cnf
+ rm -f ${D}${nonarch_libdir}/ssl-3/fipsmodule.cnf
fi
}
@@ -201,9 +201,9 @@ do_install:append:class-target () {
do_install:append:class-native () {
create_wrapper ${D}${bindir}/openssl \
- OPENSSL_CONF=\${OPENSSL_CONF:-${libdir}/ssl-3/openssl.cnf} \
- SSL_CERT_DIR=\${SSL_CERT_DIR:-${libdir}/ssl-3/certs} \
- SSL_CERT_FILE=\${SSL_CERT_FILE:-${libdir}/ssl-3/cert.pem} \
+ OPENSSL_CONF=\${OPENSSL_CONF:-${nonarch_libdir}/ssl-3/openssl.cnf} \
+ SSL_CERT_DIR=\${SSL_CERT_DIR:-${nonarch_libdir}/ssl-3/certs} \
+ SSL_CERT_FILE=\${SSL_CERT_FILE:-${nonarch_libdir}/ssl-3/cert.pem} \
OPENSSL_ENGINES=\${OPENSSL_ENGINES:-${libdir}/engines-3} \
OPENSSL_MODULES=\${OPENSSL_MODULES:-${libdir}/ossl-modules}
@@ -261,7 +261,7 @@ do_install_ptest() {
pkg_postinst_ontarget:${PN}-ossl-module-fips () {
if test -f ${libdir}/ossl-modules/fips.so; then
- ${bindir}/openssl fipsinstall -out ${libdir}/ssl-3/fipsmodule.cnf -module ${libdir}/ossl-modules/fips.so
+ ${bindir}/openssl fipsinstall -out ${nonarch_libdir}/ssl-3/fipsmodule.cnf -module ${libdir}/ossl-modules/fips.so
fi
}
@@ -275,15 +275,15 @@ PACKAGES =+ "libcrypto libssl openssl-conf ${PN}-engines ${PN}-misc ${PN}-ossl-m
FILES:libcrypto = "${libdir}/libcrypto${SOLIBS}"
FILES:libssl = "${libdir}/libssl${SOLIBS}"
FILES:openssl-conf = "${sysconfdir}/ssl/openssl.cnf* \
- ${libdir}/ssl-3/openssl.cnf* \
+ ${nonarch_libdir}/ssl-3/openssl.cnf* \
"
FILES:${PN}-engines = "${libdir}/engines-3"
# ${prefix} comes from what we pass into --prefix at configure time (which is used for INSTALLTOP)
FILES:${PN}-engines:append:mingw32:class-nativesdk = " ${prefix}${libdir}/engines-3"
-FILES:${PN}-misc = "${libdir}/ssl-3/misc ${bindir}/c_rehash"
+FILES:${PN}-misc = "${nonarch_libdir}/ssl-3/misc ${bindir}/c_rehash"
FILES:${PN}-ossl-module-legacy = "${libdir}/ossl-modules/legacy.so"
FILES:${PN}-ossl-module-fips = "${libdir}/ossl-modules/fips.so"
-FILES:${PN} =+ "${libdir}/ssl-3/* ${libdir}/ossl-modules/"
+FILES:${PN} =+ "${nonarch_libdir}/ssl-3/* ${libdir}/ossl-modules/"
FILES:${PN}:append:class-nativesdk = " ${SDKPATHNATIVE}/environment-setup.d/openssl.sh"
CONFFILES:openssl-conf = "${sysconfdir}/ssl/openssl.cnf"
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [OE-core] [PATCH v2] openssl: use nonarch_libdir for openssldir
2026-09-02 10:00 [PATCH v2] openssl: use nonarch_libdir for openssldir jaeyoon.jung
@ 2026-09-03 7:13 ` Mathieu Dubois-Briand
0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Dubois-Briand @ 2026-09-03 7:13 UTC (permalink / raw)
To: jaeyoon.jung, openembedded-core
On Wed Sep 2, 2026 at 12:00 PM CEST, Jaeyoon Jung (LGE) via lists.openembedded.org wrote:
> From: Jaeyoon Jung <jaeyoon.jung@lge.com>
>
> Set openssldir to ${nonarch_libdir}/ssl-3 instead of ${libdir}/ssl-3
> as the contents of this directory do not vary between non-multilib and
> multilib builds.
>
> Signed-off-by: Jaeyoon Jung <jaeyoon.jung@lge.com>
> ---
Hi Jaeyoon,
Thanks for the new version. It is conflicting with 4.0 upgrade of
openssl, can you rebase on today master branch and send a new version if
it's still needed?
Thanks,
Mathieu
--
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-09-03 7:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-02 10:00 [PATCH v2] openssl: use nonarch_libdir for openssldir jaeyoon.jung
2026-09-03 7:13 ` [OE-core] " Mathieu Dubois-Briand
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.