From: Zhenbo Gao <zhenbo.gao@windriver.com>
To: <richard.purdie@linuxfoundation.org>,
<openembedded-core@lists.openembedded.org>,
<zhenbo.gao@windriver.com>
Subject: [PATCH] perl: correct the path of perl used by ptest
Date: Wed, 31 Aug 2016 13:37:58 +0800 [thread overview]
Message-ID: <1472621878-5147-1-git-send-email-zhenbo.gao@windriver.com> (raw)
some files from perl-ptest depends on perl, which is located at /usr/bin/
Signed-off-by: Zhenbo Gao <zhenbo.gao@windriver.com>
---
meta/recipes-devtools/perl/perl-ptest.inc | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/meta/recipes-devtools/perl/perl-ptest.inc b/meta/recipes-devtools/perl/perl-ptest.inc
index d136c5c..94e40e6 100644
--- a/meta/recipes-devtools/perl/perl-ptest.inc
+++ b/meta/recipes-devtools/perl/perl-ptest.inc
@@ -24,6 +24,12 @@ do_install_ptest () {
ln -sf ${bindir}/perl ${D}${PTEST_PATH}/t/perl
+ # perl is located at /usr/bin/
+ p='^#![/.]*perl'
+ files=`grep -E ${p} ${D} -nr | grep -v -E 'Binary|win32' | cut -d ':' -f 1`
+ for f in ${files}; do
+ sed -i -e "s:${p}:#! ${USRBINPATH}/perl:g" ${f}
+ done
}
python populate_packages_prepend() {
--
1.9.1
next reply other threads:[~2016-08-31 5:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-31 5:37 Zhenbo Gao [this message]
2016-08-31 14:42 ` [PATCH] perl: correct the path of perl used by ptest Bill Randle
2016-09-09 9:34 ` zhenbo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1472621878-5147-1-git-send-email-zhenbo.gao@windriver.com \
--to=zhenbo.gao@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=richard.purdie@linuxfoundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox