[OE-core] [PATCH] openssl: fix ptest case `test_symbol_presence' failed

Hongxu Jia hongxu.jia at windriver.com
Sun Sep 30 06:39:34 UTC 2018


The case in ptest use `nm -Pg libcrypto.so.1.1' to check symbol presence,
hence we need to inhibit package split and package debug split.

The binutils provides `nm', hence add it to ptest runtime depends.
(Without `nm', the test_symbol_presence will be skipped, that's the
reason why ptest passed on a small image, and failed on a full image)

Signed-off-by: Hongxu Jia <hongxu.jia at windriver.com>
---
 meta/recipes-connectivity/openssl/openssl_1.1.1.bb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/meta/recipes-connectivity/openssl/openssl_1.1.1.bb b/meta/recipes-connectivity/openssl/openssl_1.1.1.bb
index 73bcb27..673b0f9 100644
--- a/meta/recipes-connectivity/openssl/openssl_1.1.1.bb
+++ b/meta/recipes-connectivity/openssl/openssl_1.1.1.bb
@@ -151,6 +151,12 @@ do_install_ptest () {
 	cp -r * ${D}${PTEST_PATH}
 }
 
+# The ptest case uses `nm -Pg libcrypto.so.1.1' to check symbol presence
+INHIBIT_PACKAGE_STRIP = "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', '1', '0', d)}"
+INHIBIT_PACKAGE_DEBUG_SPLIT = "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', '1', '0', d)}"
+# The binutils provides `nm'
+RDEPENDS_${PN}-ptest += "binutils"
+
 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
-- 
2.7.4




More information about the Openembedded-core mailing list