openssl: extract legacy provider module to a separate package
PATCH 1/1 openssl: extract legacy provider module to a separate package
This module contains legacy cipher suites from libcrypto. We should not need to include base package because we want
to use this part of libcrypto.
--- meta/recipes-connectivity/openssl/openssl_3.0.2.bb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
meta/recipes-connectivity/openssl/openssl_3.0.2.bb +3 -2
@@ -224,7 +224,7 @@ do_install_ptest () { # file to be installed for both the openssl-bin package and the libcrypto # package since the openssl-bin package depends on the libcrypto package. -PACKAGES =+ "libcrypto libssl openssl-conf ${PN}-engines ${PN}-misc" +PACKAGES =+ "libcrypto libssl openssl-conf ${PN}-engines ${PN}-misc ${PN}-ossl-module-legacy" FILES:libcrypto = "${libdir}/libcrypto${SOLIBS}" FILES:libssl = "${libdir}/libssl${SOLIBS}"
@@ -235,12 +235,13 @@ 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}-ossl-module-legacy = "${libdir}/ossl-modules/legacy.so" FILES:${PN} =+ "${libdir}/ssl-3/* ${libdir}/ossl-modules/" FILES:${PN}:append:class-nativesdk = " ${SDKPATHNATIVE}/environment-setup.d/openssl.sh" CONFFILES:openssl-conf = "${sysconfdir}/ssl/openssl.cnf" -RRECOMMENDS:libcrypto += "openssl-conf" +RRECOMMENDS:libcrypto += "openssl-conf ${PN}-ossl-module-legacy" RDEPENDS:${PN}-misc = "perl" RDEPENDS:${PN}-ptest += "openssl-bin perl perl-modules bash sed"
Signature · 1 line
2.30.2
This is important for seamless migration of applications to openssl3.
In particular poco from meta-oe needs this as packageconfig cannot add rdepends to a sub-package. Could this be picked to kirkstone or do I need to send it as new patch?
Thanks,
Peter
Quoted 43 lines
-----Original Message-----
From: Marko, Peter <[email protected]>
Sent: Tuesday, April 19, 2022 13:21
To: [email protected]
Cc: Marko, Peter <[email protected]>
Subject: [OE-core][PATCH] openssl: extract legacy provider module to a separate packageThis module contains legacy cipher suites from libcrypto. We should not need to include base package because we want
to use this part of libcrypto.Signed-off-by Peter Marko <[email protected]>--- meta/recipes-connectivity/openssl/openssl_3.0.2.bb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)meta/recipes-connectivity/openssl/openssl_3.0.2.bb +3
-3@@ -224,7 +224,7 @@ do_install_ptest () { # file to be installed for both the openssl-bin package and the libcrypto # package since the openssl-bin package depends on the libcrypto package. -PACKAGES =+ "libcrypto libssl openssl-conf ${PN}-engines ${PN}-misc" +PACKAGES =+ "libcrypto libssl openssl-conf ${PN}-engines ${PN}-misc ${PN}-ossl-module-legacy" FILES:libcrypto = "${libdir}/libcrypto${SOLIBS}" FILES:libssl = "${libdir}/libssl${SOLIBS}"@@ -235,12 +235,13 @@ 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}-ossl-module-legacy = "${libdir}/ossl-modules/legacy.so" FILES:${PN} =+ "${libdir}/ssl-3/* ${libdir}/ossl-modules/" FILES:${PN}:append:class-nativesdk = " ${SDKPATHNATIVE}/environment-setup.d/openssl.sh" CONFFILES:openssl-conf = "${sysconfdir}/ssl/openssl.cnf" -RRECOMMENDS:libcrypto += "openssl-conf" +RRECOMMENDS:libcrypto += "openssl-conf ${PN}-ossl-module-legacy" RDEPENDS:${PN}-misc = "perl" RDEPENDS:${PN}-ptest += "openssl-bin perl perl-modules bash sed" --2.30.2
Quoted 4 lines · Peter Marko
This is important for seamless migration of applications to openssl3.
In particular poco from meta-oe needs this as packageconfig cannot add rdepends to a sub-package. Could this be picked to kirkstone or do I need to send it as new patch?
No need to send a patch, I'll cherry-pick it in my next patch set.
Thanks,
Steve
Quoted 53 lines
Quoted 42 lines
-----Original Message-----
From: Marko, Peter <[email protected]>
Sent: Tuesday, April 19, 2022 13:21
To: [email protected]
Cc: Marko, Peter <[email protected]>
Subject: [OE-core][PATCH] openssl: extract legacy provider module to a separate packageThis module contains legacy cipher suites from libcrypto. We should not need to include base package because we want
to use this part of libcrypto.Signed-off-by Peter Marko <[email protected]>--- meta/recipes-connectivity/openssl/openssl_3.0.2.bb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)meta/recipes-connectivity/openssl/openssl_3.0.2.bb +3
-3@@ -224,7 +224,7 @@ do_install_ptest () { # file to be installed for both the openssl-bin package and the libcrypto # package since the openssl-bin package depends on the libcrypto package. -PACKAGES =+ "libcrypto libssl openssl-conf ${PN}-engines ${PN}-misc" +PACKAGES =+ "libcrypto libssl openssl-conf ${PN}-engines ${PN}-misc ${PN}-ossl-module-legacy" FILES:libcrypto = "${libdir}/libcrypto${SOLIBS}" FILES:libssl = "${libdir}/libssl${SOLIBS}"@@ -235,12 +235,13 @@ 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}-ossl-module-legacy = "${libdir}/ossl-modules/legacy.so" FILES:${PN} =+ "${libdir}/ssl-3/* ${libdir}/ossl-modules/" FILES:${PN}:append:class-nativesdk = " ${SDKPATHNATIVE}/environment-setup.d/openssl.sh" CONFFILES:openssl-conf = "${sysconfdir}/ssl/openssl.cnf" -RRECOMMENDS:libcrypto += "openssl-conf" +RRECOMMENDS:libcrypto += "openssl-conf ${PN}-ossl-module-legacy" RDEPENDS:${PN}-misc = "perl" RDEPENDS:${PN}-ptest += "openssl-bin perl perl-modules bash sed" --Quoted 1 line
2.30.2
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#165009): https://lists.openembedded.org/g/openembedded-core/message/165009
Mute This Topic: https://lists.openembedded.org/mt/90559122/3617601
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Just to clarify, you can certainly make rdepends of a subpackage depend on a packageconfig, you just use inline python to do it. There are a number of examples of this sort of conditional in oe-core.
Quoted 82 lines · Steve Sakoman
Quoted 3 lines · Peter Marko
This is important for seamless migration of applications to openssl3. In particular poco from meta-oe needs this as packageconfig cannot add
rdepends to a sub-package.
Quoted 1 line
Could this be picked to kirkstone or do I need to send it as new patch?
No need to send a patch, I'll cherry-pick it in my next patch set.
Thanks,
Steve
Quoted 6 lines
Quoted 6 lines
-----Original Message-----
From: Marko, Peter <[email protected]>
Sent: Tuesday, April 19, 2022 13:21
To: [email protected]
Cc: Marko, Peter <[email protected]>
Subject: [OE-core][PATCH] openssl: extract legacy provider module to aseparate package
Quoted 11 lines
Review
Quoted 11 lines
This module contains legacy cipher suites from libcrypto. We should not need to include base package because we want
to use this part of libcrypto.Signed-off-by Peter Marko <[email protected]>--- meta/recipes-connectivity/openssl/openssl_3.0.2.bb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)(quoted diff) +0
-0b/meta/recipes-connectivity/openssl/openssl_3.0.2.bb
Quoted 4 lines
meta/recipes-connectivity/openssl/openssl_3.0.2.bb do_install_ptest () { # file to be installed for
Quoted 4 lines
index
ff2a22c6c3..a809666aa7100644meta/recipes-connectivity/openssl/openssl_3.0.2.bb +0
-0@@ -224,7 +224,7 @@ do_install_ptest () { # file to be installed forboth the openssl-bin package and the libcrypto # package since the openssl-bin package depends on the libcrypto package.
Quoted 3 lines
meta/recipes-connectivity/openssl/openssl_3.0.2.bb do_install_ptest () { # file to be installed for · line 224
Quoted 3 lines
meta/recipes-connectivity/openssl/openssl_3.0.2.bb +1
-1-PACKAGES =+ "libcrypto libssl openssl-conf ${PN}-engines ${PN}-misc" +PACKAGES =+ "libcrypto libssl openssl-conf ${PN}-engines ${PN}-misc${PN}-ossl-module-legacy"
Quoted 5 lines
meta/recipes-connectivity/openssl/openssl_3.0.2.bb FILES:${PN}-engines = "${libdir}/engines-3" · line 235
Quoted 5 lines
meta/recipes-connectivity/openssl/openssl_3.0.2.bb +0
-0FILES:libcrypto = "${libdir}/libcrypto${SOLIBS}" FILES:libssl = "${libdir}/libssl${SOLIBS}"@@ -235,12 +235,13 @@ 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"
Quoted 4 lines
meta/recipes-connectivity/openssl/openssl_3.0.2.bb FILES:${PN}-engines = "${libdir}/engines-3"
Quoted 4 lines
meta/recipes-connectivity/openssl/openssl_3.0.2.bb +1
-0FILES:${PN}-misc = "${libdir}/ssl-3/misc ${bindir}/c_rehash" +FILES:${PN}-ossl-module-legacy = "${libdir}/ossl-modules/legacy.so" FILES:${PN} =+ "${libdir}/ssl-3/* ${libdir}/ossl-modules/" FILES:${PN}:append:class-nativesdk = "
${SDKPATHNATIVE}/environment-setup.d/openssl.sh"Quoted 14 lines
Quoted 10 lines
meta/recipes-connectivity/openssl/openssl_3.0.2.bb +1
-2CONFFILES:openssl-conf = "${sysconfdir}/ssl/openssl.cnf" -RRECOMMENDS:libcrypto += "openssl-conf" +RRECOMMENDS:libcrypto += "openssl-conf ${PN}-ossl-module-legacy" RDEPENDS:${PN}-misc = "perl" RDEPENDS:${PN}-ptest += "openssl-bin perl perl-modules bash sed" --2.30.2
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#165054):
https://lists.openembedded.org/g/openembedded-core/message/165054
Mute This Topic: https://lists.openembedded.org/mt/90559122/3617123
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 4 lines
Christopher Larson [email protected], [email protected], [email protected] Principal Software Engineer, Embedded Linux Solutions, Siemens Digital Industries Software