Skip to contentSkip to conversation

openssl: do not tweak so names, use PRIVATE_LIBS instead

RFC In review Alexander Kanavin 1 participant 2 messages Aug 29, 2018

lore
Share & tools
lore
#0 lore raw

RFC 1/1 openssl: do not tweak so names, use PRIVATE_LIBS instead

The tweaking was not sufficient to prevent package dependency issues, but there is a standard mechanism to do exactly that kind of prevention which I wasn't aware of.

---
 meta/recipes-connectivity/openssl/openssl_1.1.1-pre9.bb | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
meta/recipes-connectivity/openssl/openssl_1.1.1-pre9.bb +2 -6
index 1917c33..3f4e19f 100644
@@ -149,14 +149,10 @@ do_install_append_class-nativesdk () {
 
 do_install_ptest () {
 	cp -r * ${D}${PTEST_PATH}
-
-	# Putting .so files in ptest package will mess up the dependencies of the main openssl package
-	# so we rename them to .so.ptest and patch the test accordingly
-	mv ${D}${PTEST_PATH}/libcrypto.so ${D}${PTEST_PATH}/libcrypto.so.ptest
-	mv ${D}${PTEST_PATH}/libssl.so ${D}${PTEST_PATH}/libssl.so.ptest
-	sed -i 's/$target{shared_extension_simple}/".so.ptest"/' ${D}${PTEST_PATH}/test/recipes/90-test_shlibload.t
 }
 
+PRIVATE_LIBS_${PN}-ptest = "libcrypto.so.1.1 libssl.so.1.1"
+
 # Add the openssl.cnf file to the openssl-conf package. Make the libcrypto
 # package RRECOMMENDS on this package. This will enable the configuration
 # file to be installed for both the openssl-bin package and the libcrypto
Signature · 1 line
2.7.4
#1 lore raw

This is supplementary to yesterdays' openssl 1.1 patchset.

Alex

2018-08-29 16:43 GMT+02:00 Alexander Kanavin <[email protected]>:

Quoted 33 lines

The tweaking was not sufficient to prevent package dependency issues, but there is a standard mechanism to do exactly that kind of prevention which I wasn't aware of.

---
 meta/recipes-connectivity/openssl/openssl_1.1.1-pre9.bb | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
meta/recipes-connectivity/openssl/openssl_1.1.1-pre9.bb +2 -7
index 1917c33..3f4e19f 100644
@@ -149,14 +149,10 @@ do_install_append_class-nativesdk () {
 
 do_install_ptest () {
        cp -r * ${D}${PTEST_PATH}
-
-       # Putting .so files in ptest package will mess up the dependencies of the main openssl package
-       # so we rename them to .so.ptest and patch the test accordingly
-       mv ${D}${PTEST_PATH}/libcrypto.so ${D}${PTEST_PATH}/libcrypto.so.ptest
-       mv ${D}${PTEST_PATH}/libssl.so ${D}${PTEST_PATH}/libssl.so.ptest
-       sed -i 's/$target{shared_extension_simple}/".so.ptest"/' ${D}${PTEST_PATH}/test/recipes/90-test_shlibload.t
 }
 
+PRIVATE_LIBS_${PN}-ptest = "libcrypto.so.1.1 libssl.so.1.1"
+
 # Add the openssl.cnf file to the openssl-conf package. Make the libcrypto
 # package RRECOMMENDS on this package. This will enable the configuration
 # file to be installed for both the openssl-bin package and the libcrypto
--

2.7.4