]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
openssl: fix the reference to native perl in ptests
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>
Mon, 10 Apr 2017 19:16:51 +0000 (22:16 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 11 Apr 2017 17:09:20 +0000 (18:09 +0100)
This was causing a couple of ptest failures.

[YOCTO #10840]

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-connectivity/openssl/openssl.inc

index 481a444560501e4672f447ff03e37f0f527941d4..c721d8c570da8591e7a24505f04acadac3eb7fee 100644 (file)
@@ -205,6 +205,10 @@ do_install () {
 
 do_install_ptest () {
        cp -r -L Makefile.org Makefile test ${D}${PTEST_PATH}
+
+        # Replace the path to native perl with the path to target perl
+        sed -i 's,^PERL=.*,PERL=${bindir}/perl,' ${D}${PTEST_PATH}/Makefile
+
        cp Configure config e_os.h ${D}${PTEST_PATH}
        cp -r -L include ${D}${PTEST_PATH}
        ln -sf ${libdir}/libcrypto.a ${D}${PTEST_PATH}