]> code.ossystems Code Review - openembedded-core.git/commitdiff
perl: Correct perl path for ptest
authorHe Zhe <zhe.he@windriver.com>
Wed, 24 Aug 2016 07:08:16 +0000 (15:08 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 25 Aug 2016 22:02:46 +0000 (23:02 +0100)
Substitute /usr/local with ${bindir}

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/perl/perl-ptest.inc

index bf6fde64a07fa94ee80bc26e616b3be22e84f08e..d136c5c0e4e5b1d488d1dff303e95d57e827200d 100644 (file)
@@ -5,6 +5,7 @@ SRC_URI += "file://run-ptest \
 
 do_install_ptest () {
        mkdir -p ${D}${PTEST_PATH}
+       sed -e "s:\/usr\/local:${bindir}:g" -i cpan/version/t/*
        sed -e "s:\/opt:\/usr:" -i Porting/add-package.pl
        sed -e "s:\/local\/gnu\/:\/:" -i hints/cxux.sh
        tar -c --exclude=\*.o --exclude=libperl.so --exclude=Makefile --exclude=makefile --exclude=hostperl \