aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/cpan.bbclass
diff options
context:
space:
mode:
authorTom Rini <tom_rini@mentor.com>2011-07-18 09:02:18 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-21 10:46:31 +0100
commit682a213dc732074985bf86f508305fc6eafe18d9 (patch)
tree909de89eb6f3f60203c3b3a68a5530d515f3fed3 /meta/classes/cpan.bbclass
parent48c1e10f53894e666283aac086e61444d2c1ed69 (diff)
downloadopenembedded-core-contrib-682a213dc732074985bf86f508305fc6eafe18d9.tar.gz
cpan.bbclass: Perform more mangling for perl path
On hosts where we may already be past the #! limit this is required and this is safe on the target as well. This is be7fe31 in oe.dev. Related to this we now bump all PRs for recipes that inherit cpan. Note that in oe.dev we mangle for perl but here we use the new nativeperl script. Signed-off-by: Tom Rini <tom_rini@mentor.com>
Diffstat (limited to 'meta/classes/cpan.bbclass')
-rw-r--r--meta/classes/cpan.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/cpan.bbclass b/meta/classes/cpan.bbclass
index cbf428d3a2..cb1c2f40c7 100644
--- a/meta/classes/cpan.bbclass
+++ b/meta/classes/cpan.bbclass
@@ -35,6 +35,9 @@ cpan_do_compile () {
cpan_do_install () {
oe_runmake DESTDIR="${D}" install_vendor
+ for PERLSCRIPT in `grep -rIEl '#!${bindir}/perl-native.*/perl' ${D}`; do
+ sed -i -e 's|^#!${bindir}/perl-native.*/perl|#!/usr/bin/env nativeperl|' $PERLSCRIPT
+ done
}
EXPORT_FUNCTIONS do_configure do_compile do_install