Skip to contentSkip to conversation

openssl: move c_rehash pkg to avoid perl dep

PATCH In review Brad Bishop 2 participants 2 messages Jan 14, 2019 – Feb 27, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 openssl: move c_rehash pkg to avoid perl dep

Perl and its dependencies have a decent footprint impact. On my xz compressed filesystem:

634880: /usr/lib/libperl.so.5.24.4

Put c_rehash in the openssl-misc package so the dependency can be avoided where it isn't needed.

Change-Id Iae9bccabfb1c8cfa1401ca6785abc39713d3fdf0
---
 meta/recipes-connectivity/openssl/openssl_1.1.1a.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
meta/recipes-connectivity/openssl/openssl_1.1.1a.bb +1 -2
index 5c4e69cfb7..7d26654921 100644
@@ -190,14 +190,13 @@ FILES_libcrypto = "${libdir}/libcrypto${SOLIBS}"
 FILES_libssl = "${libdir}/libssl${SOLIBS}"
 FILES_openssl-conf = "${sysconfdir}/ssl/openssl.cnf"
 FILES_${PN}-engines = "${libdir}/engines-1.1"
-FILES_${PN}-misc = "${libdir}/ssl-1.1/misc"
+FILES_${PN}-misc = "${libdir}/ssl-1.1/misc ${bindir}/c_rehash"
 FILES_${PN} =+ "${libdir}/ssl-1.1/*"
 FILES_${PN}_append_class-nativesdk = " ${SDKPATHNATIVE}/environment-setup.d/openssl.sh"
 
 CONFFILES_openssl-conf = "${sysconfdir}/ssl/openssl.cnf"
 
 RRECOMMENDS_libcrypto += "openssl-conf"
-RDEPENDS_${PN}-bin = "perl"
 RDEPENDS_${PN}-misc = "perl"
 RDEPENDS_${PN}-ptest += "openssl-bin perl perl-modules bash python"
 
Signature · 1 line
2.20.1
#1 lore raw
Quoted 37 lines

-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Brad Bishop
Sent: den 14 januari 2019 23:05
To: [email protected]
Subject: [OE-core] [OE-Core][PATCH] openssl: move c_rehash pkg to avoid perl dep

Perl and its dependencies have a decent footprint impact. On my xz compressed filesystem:

634880: /usr/lib/libperl.so.5.24.4

Put c_rehash in the openssl-misc package so the dependency can be avoided where it isn't needed.

Change-Id Iae9bccabfb1c8cfa1401ca6785abc39713d3fdf0
---
 meta/recipes-connectivity/openssl/openssl_1.1.1a.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
meta/recipes-connectivity/openssl/openssl_1.1.1a.bb +1 -1
index 5c4e69cfb7..7d26654921 100644
@@ -190,14 +190,13 @@ FILES_libcrypto = "${libdir}/libcrypto${SOLIBS}"
 FILES_libssl = "${libdir}/libssl${SOLIBS}"
 FILES_openssl-conf = "${sysconfdir}/ssl/openssl.cnf"
 FILES_${PN}-engines = "${libdir}/engines-1.1"
-FILES_${PN}-misc = "${libdir}/ssl-1.1/misc"
+FILES_${PN}-misc = "${libdir}/ssl-1.1/misc ${bindir}/c_rehash"
 FILES_${PN} =+ "${libdir}/ssl-1.1/*"
 FILES_${PN}_append_class-nativesdk = " ${SDKPATHNATIVE}/environment-

setup.d/openssl.sh"

Quoted 6 lines

CONFFILES_openssl-conf = "${sysconfdir}/ssl/openssl.cnf"

RRECOMMENDS_libcrypto += "openssl-conf"
-RDEPENDS_${PN}-bin = "perl"
RDEPENDS_${PN}-misc = "perl"
RDEPENDS_${PN}-ptest += "openssl-bin perl perl-modules bash python"

There is a line at the end of the recipe, which was recently added, that says:

MULTILIB_SCRIPTS = "${PN}-bin:${bindir}/c_rehash"

I believe it should now be changed to:

MULTILIB_SCRIPTS = "${PN}-misc:${bindir}/c_rehash"

Quoted 2 lines

--
2.20.1

//Peter