openssl10 in warrior
Hello,
How do you set the version of openssl back to openssl10? There is no PROVIDES
openssl in openssl10 so I can't set PREFERRED_PROVIDER_openssl. If I change my
DEPENDS in the my recipe to openssl10-native eventually another native recipe that
depends on openssl tries to populate a library to sysroot and fails because its already
there.
Thanks.
Quoted 10 lines · Jonathan Richardson
How do you set the version of openssl back to openssl10? There is no PROVIDES
openssl in openssl10 so I can't setPREFERRED_PROVIDER_openssl. If I change my
DEPENDS in the my recipe to openssl10-native eventually another native recipe that
depends on openssl tries to populate a library to sysroot and fails because its already
there.
Before asking how, you should explain why. What is your need for it?
Openssl 1.0 is no longer supported by upstream at the end of 2019, so Yocto project no longer provides that version as the default or preferred one. The recipe has been removed altogether in the master branch. Openssl is a critical security component with a history of major vulnerabilities, so we don't want to endorse extending the lifespan of a version that no longer gets any kind of fixes from upstream.
Alex
Quoted 11 lines · Jonathan Richardson
Hello,
How do you set the version of openssl back to openssl10? There is no PROVIDES
openssl in openssl10 so I can't setPREFERRED_PROVIDER_openssl. If I change my
DEPENDS in the my recipe to openssl10-native eventually another native recipe that
depends on openssl tries to populate a library to sysroot and fails because its already
there.
Hi,
it never worked with both openssl versions being pulled into the same RSS (which is quite common for bigger components like qtbase).
If you really need to use openssl10 and have components which require it, then you can temporary rename openssl10 recipe as openssl in our layer to overlay 1.1 version from oe-core and use this openssl-1.0 everywhere (there aren't many packages which would be compatible with openssl-1.1 and incompatible with openssl-1.0 - from the layers I have included in my world build I know about these:
PNBLACKLIST[wvstreams] ?= "not compatible with openssl-1.0 since https://github.com/apenwarr/wvstreams/commit/5506a74e1b033776ad441b4554716cdcfa88fe03 which was backported to meta-oe and later reverted in upstream" PNBLACKLIST[wvdial] ?= "depends on blacklisted wvstreams"
PNBLACKLIST[python3-m2crypto] ?= "not compatible with openssl-1.0"
PNBLACKLIST[python-m2crypto] ?= "not compatible with openssl-1.0"
PNBLACKLIST[rtmpdump] ?= "not compatible with openssl-1.0"
PNBLACKLIST[libtorrent] ?= "not compatible with openssl-1.0"
PNBLACKLIST[freeradius] ?= "not compatible with openssl-1.0"
PNBLACKLIST[rtorrent] ?= "depends on blacklisted libtorrent"
PNBLACKLIST[openlmi-tools] ?= "depends on blacklisted python-m2crypto"
PNBLACKLIST[python-pywbem] ?= "depends on blacklisted python-m2crypto"
and in all these cases it's simple to revert them to older from which was compatible with openssl-1.0 before big bang.
But this work around should be only temporary and you should really try to get rid of openssl10 soon.
Cheers,
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
-----Original Message-----
From: Martin Jansa [mailto:[email protected]]
Sent: Tuesday, June 18, 2019 2:30 PM
To: Jonathan Richardson
Cc: [email protected]
Subject: Re: [poky] openssl10 in warrior
Quoted 8 lines · Jonathan Richardson
Hello,
How do you set the version of openssl back to openssl10? There is no PROVIDES openssl in openssl10 so I can't set
PREFERRED_PROVIDER_openssl. If I change my DEPENDS in the my recipe to openssl10-native eventually another native recipe that depends on openssl tries to populate a library to sysroot and fails because its already there.
Hi,
it never worked with both openssl versions being pulled into the same RSS (which is quite common for bigger components like qtbase).
If you really need to use openssl10 and have components which require it, then you can temporary rename openssl10 recipe as openssl in our layer to overlay 1.1 version from oe-core and use this openssl-1.0 everywhere (there aren't many packages which would be compatible with openssl-1.1 and incompatible with openssl-1.0 - from the layers I have included in my world build I know about these:
PNBLACKLIST[wvstreams] ?= "not compatible with openssl-1.0 since
https://github.com/apenwarr/wvstreams/commit/5506a74e1b033776ad441b4554716cdcfa88fe03 which was backported to meta-oe and later reverted in upstream"
PNBLACKLIST[wvdial] ?= "depends on blacklisted wvstreams" PNBLACKLIST[python3-m2crypto] ?= "not compatible with openssl-1.0" PNBLACKLIST[python-m2crypto] ?= "not compatible with openssl-1.0" PNBLACKLIST[rtmpdump] ?= "not compatible with openssl-1.0" PNBLACKLIST[libtorrent] ?= "not compatible with openssl-1.0" PNBLACKLIST[freeradius] ?= "not compatible with openssl-1.0" PNBLACKLIST[rtorrent] ?= "depends on blacklisted libtorrent" PNBLACKLIST[openlmi-tools] ?= "depends on blacklisted python-m2crypto" PNBLACKLIST[python-pywbem] ?= "depends on blacklisted python-m2crypto"
and in all these cases it's simple to revert them to older from which was compatible with openssl-1.0 before big bang.
But this work around should be only temporary and you should really try to get rid of openssl10 soon.
Cheers,
Signature · 9 lines
Martin 'JaMa' Jansa jabber: [email protected] Ok thanks Martin/Alex. I'm aware of eol coming up. It's just a matter of getting all projects upgraded and leaving one behind (that doesn't yet compile on 1.1) rather than advancing none of them. I thought if there was a simple way to move forward then that would be best. But it sounds like it's better to just get it upgraded.