[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openembedded-core
Subject:    Re: [OE-core][PATCH] openssl: extract legacy provider module to a separate package
From:       "Christopher Larson" <kergoth () gmail ! com>
Date:       2022-04-29 23:33:00
Message-ID: CABcZANmywE3Wp8e5ufiJ84=j-T+41E4zmP4SXBF+oR69NiRZWg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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.

On Fri, Apr 29, 2022 at 11:17 AM Steve Sakoman <sakoman@gmail.com> wrote:

> On Fri, Apr 29, 2022 at 2:27 AM Peter Marko <peter.marko@siemens.com>
> wrote:
> >
> > 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
>
> > > -----Original Message-----
> > > From: Marko, Peter <Peter.Marko@siemens.com>
> > > Sent: Tuesday, April 19, 2022 13:21
> > > To: openembedded-core@lists.openembedded.org
> > > Cc: Marko, Peter <Peter.Marko@siemens.com>
> > > Subject: [OE-core][PATCH] 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.
> > >
> > > Signed-off-by: Peter Marko <peter.marko@siemens.com>
> > > ---
> > >  meta/recipes-connectivity/openssl/openssl_3.0.2.bb | 5 +++--
> > >  1 file changed, 3 insertions(+), 2 deletions(-)
> > >
> > > diff --git a/meta/recipes-connectivity/openssl/openssl_3.0.2.bb
> b/meta/recipes-connectivity/openssl/openssl_3.0.2.bb
> > > index ff2a22c6c3..a809666aa7 100644
> > > --- a/meta/recipes-connectivity/openssl/openssl_3.0.2.bb
> > > +++ b/meta/recipes-connectivity/openssl/openssl_3.0.2.bb
> > > @@ -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
> >
> >
> >
> >
>
> 
>
>

-- 
Christopher Larson
chris_larson@mentor.com, chris.larson@siemens.com, kergoth@gmail.com
Principal Software Engineer, Embedded Linux Solutions, Siemens Digital
Industries Software

[Attachment #5 (text/html)]

<div dir="ltr">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.</div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 29, 2022 at 11:17 \
AM Steve Sakoman &lt;<a href="mailto:sakoman@gmail.com">sakoman@gmail.com</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, Apr 29, 2022 \
at 2:27 AM Peter Marko &lt;<a href="mailto:peter.marko@siemens.com" \
target="_blank">peter.marko@siemens.com</a>&gt; wrote:<br> &gt;<br>
&gt; This is important for seamless migration of applications to openssl3.<br>
&gt; In particular poco from meta-oe needs this as packageconfig cannot add rdepends \
to a sub-package.<br> &gt; Could this be picked to kirkstone or do I need to send it \
as new patch?<br> <br>
No need to send a patch, I&#39;ll cherry-pick it in my next patch set.<br>
<br>
Thanks,<br>
<br>
Steve<br>
<br>
&gt; &gt; -----Original Message-----<br>
&gt; &gt; From: Marko, Peter &lt;<a href="mailto:Peter.Marko@siemens.com" \
target="_blank">Peter.Marko@siemens.com</a>&gt;<br> &gt; &gt; Sent: Tuesday, April \
19, 2022 13:21<br> &gt; &gt; To: <a \
href="mailto:openembedded-core@lists.openembedded.org" \
target="_blank">openembedded-core@lists.openembedded.org</a><br> &gt; &gt; Cc: Marko, \
Peter &lt;<a href="mailto:Peter.Marko@siemens.com" \
target="_blank">Peter.Marko@siemens.com</a>&gt;<br> &gt; &gt; Subject: \
[OE-core][PATCH] openssl: extract legacy provider module to a separate package<br> \
&gt; &gt;<br> &gt; &gt; This module contains legacy cipher suites from libcrypto.<br>
&gt; &gt; We should not need to include base package because we want<br>
&gt; &gt;     to use this part of libcrypto.<br>
&gt; &gt;<br>
&gt; &gt; Signed-off-by: Peter Marko &lt;<a href="mailto:peter.marko@siemens.com" \
target="_blank">peter.marko@siemens.com</a>&gt;<br> &gt; &gt; ---<br>
&gt; &gt;   meta/recipes-connectivity/openssl/<a href="http://openssl_3.0.2.bb" \
rel="noreferrer" target="_blank">openssl_3.0.2.bb</a> | 5 +++--<br> &gt; &gt;   1 \
file changed, 3 insertions(+), 2 deletions(-)<br> &gt; &gt;<br>
&gt; &gt; diff --git a/meta/recipes-connectivity/openssl/<a \
href="http://openssl_3.0.2.bb" rel="noreferrer" target="_blank">openssl_3.0.2.bb</a> \
b/meta/recipes-connectivity/openssl/<a href="http://openssl_3.0.2.bb" \
rel="noreferrer" target="_blank">openssl_3.0.2.bb</a><br> &gt; &gt; index \
ff2a22c6c3..a809666aa7 100644<br> &gt; &gt; --- \
a/meta/recipes-connectivity/openssl/<a href="http://openssl_3.0.2.bb" \
rel="noreferrer" target="_blank">openssl_3.0.2.bb</a><br> &gt; &gt; +++ \
b/meta/recipes-connectivity/openssl/<a href="http://openssl_3.0.2.bb" \
rel="noreferrer" target="_blank">openssl_3.0.2.bb</a><br> &gt; &gt; @@ -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.<br> &gt; &gt;<br>
&gt; &gt; -PACKAGES =+ &quot;libcrypto libssl openssl-conf ${PN}-engines \
${PN}-misc&quot;<br> &gt; &gt; +PACKAGES =+ &quot;libcrypto libssl openssl-conf \
${PN}-engines ${PN}-misc ${PN}-ossl-module-legacy&quot;<br> &gt; &gt;<br>
&gt; &gt;   FILES:libcrypto = &quot;${libdir}/libcrypto${SOLIBS}&quot;<br>
&gt; &gt;   FILES:libssl = &quot;${libdir}/libssl${SOLIBS}&quot;<br>
&gt; &gt; @@ -235,12 +235,13 @@ FILES:${PN}-engines = \
&quot;${libdir}/engines-3&quot;<br> &gt; &gt;   # ${prefix} comes from what we pass \
into --prefix at configure time (which is used for INSTALLTOP)   \
FILES:${PN}-engines:append:mingw32:class-nativesdk = &quot; \
${prefix}${libdir}/engines-3&quot;<br> &gt; &gt;   FILES:${PN}-misc = \
&quot;${libdir}/ssl-3/misc ${bindir}/c_rehash&quot;<br> &gt; &gt; \
+FILES:${PN}-ossl-module-legacy = &quot;${libdir}/ossl-modules/legacy.so&quot;<br> \
&gt; &gt;   FILES:${PN} =+ &quot;${libdir}/ssl-3/* ${libdir}/ossl-modules/&quot;<br> \
&gt; &gt;   FILES:${PN}:append:class-nativesdk = &quot; \
${SDKPATHNATIVE}/environment-setup.d/openssl.sh&quot;<br> &gt; &gt;<br>
&gt; &gt;   CONFFILES:openssl-conf = &quot;${sysconfdir}/ssl/openssl.cnf&quot;<br>
&gt; &gt;<br>
&gt; &gt; -RRECOMMENDS:libcrypto += &quot;openssl-conf&quot;<br>
&gt; &gt; +RRECOMMENDS:libcrypto += &quot;openssl-conf \
${PN}-ossl-module-legacy&quot;<br> &gt; &gt;   RDEPENDS:${PN}-misc = \
&quot;perl&quot;<br> &gt; &gt;   RDEPENDS:${PN}-ptest += &quot;openssl-bin perl \
perl-modules bash sed&quot;<br> &gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; 2.30.2<br>
&gt;<br>
&gt;<br>
&gt; <br>
&gt;<br>
<br>
<br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" \
class="gmail_signature"><div dir="ltr"><div dir="ltr"><font \
color="#333333">Christopher Larson<br><a>chris_larson@mentor.com</a>,  \
<a>chris.larson@siemens.com</a>,  <a>kergoth@gmail.com</a><br>Principal Software \
Engineer,  Embedded Linux Solutions,  Siemens Digital Industries \
Software</font><br></div></div></div>



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#165061): https://lists.openembedded.org/g/openembedded-core/message/165061
Mute This Topic: https://lists.openembedded.org/mt/90559122/4454766
Group Owner: openembedded-core+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [openembedded-core@marc.info]
-=-=-=-=-=-=-=-=-=-=-=-



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic