Suggested way to generate two version of same package in Yocto
Hi Members ,
I want openssl-3.2.x build to use some file from openssl-3.0.8 build So this requires the same build to generate build for both version of openssl .
Is there any preferred way which senior member can suggest or any sample implementation for this
As of now i am looking at an logic where same build had two different recipe in Yocto Rocko (openssl10_1.0.2r.bb openssl_1.1.1b.bb )
https://git.yoctoproject.org/poky/tree/meta/recipes-connectivity/openssl?id=34fa190d957f19f69ede7af68f75e3beef3fc96a
We are working to get the openssl_3.2.2 with openssl_3.0.8 FIPS support.
I have created an recipe and got all work done to have openssl-3.0.8 with Fips on Yocto scrathgap.
Can senior members suggest proper way of doing this
Thanks
Ashish
Hi,
Quoted 4 lines · emailaddress.ashish via lists.yoctoproject.org
Hi Members ,
I want openssl-3.2.x build to use some file from openssl-3.0.8 build So this requires the same build to generate build for both version of openssl .
Don't do this.
Quoted 10 lines
Is there any preferred way which senior member can suggest or� any sample implementation for this
As of now i am looking at an logic where same build had two different recipe in Yocto Rocko (openssl10_1.0.2r.bb openssl_1.1.1b.bb )
https://git.yoctoproject.org/poky/tree/meta/recipes-connectivity/openssl?id=34fa190d957f19f69ede7af68f75e3beef3fc96aWe are working to get the openssl_3.2.2 with openssl_3.0.8 FIPS support.
I have created an recipe and got all work done to have openssl-3.0.8 with Fips on Yocto scrathgap.Can senior members suggest proper way of doing this
First suggestion:
* don't do this, really don't. Build only single version of openssl and convert all users to this version. Really, do this only!
Second workaround:
* if you really, really can't do this, then the two openssl recipes need to be completely
separated: different recipes names, different install binary names and/or paths for all installed files, convert all openssl users to use the 'correct' version etc etc. And of course no openssl upstream recipe will do this by default so it's up to you to change the recipe for this usecase which is very, very hard.
Really, use only single openssl version. The correct things are sometimes the hard things to do, but nothing makes the easier things more correct. Workarounds are often easy only initially and later on will lead to much more work, more workarounds and maintenance chaos.
Cheers,
-Mikko
Thanks Mikko
Will work according to suggestion and update the thread