summaryrefslogtreecommitdiffstats
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:59:18 +0100
commit6a52bad2f44f0e919baa89a02f88855c925da6d5 (patch)
tree5e5c0d130673e3847ecf7427ddee9e88ab616d21 /meta/classes/cpan.bbclass
parent27ba6fbda84041b297a798b6d35de38272e74ea6 (diff)
downloadpoky-6a52bad2f44f0e919baa89a02f88855c925da6d5.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. (From OE-Core rev: 682a213dc732074985bf86f508305fc6eafe18d9) Signed-off-by: Tom Rini <tom_rini@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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 () {
35 35
36cpan_do_install () { 36cpan_do_install () {
37 oe_runmake DESTDIR="${D}" install_vendor 37 oe_runmake DESTDIR="${D}" install_vendor
38 for PERLSCRIPT in `grep -rIEl '#!${bindir}/perl-native.*/perl' ${D}`; do
39 sed -i -e 's|^#!${bindir}/perl-native.*/perl|#!/usr/bin/env nativeperl|' $PERLSCRIPT
40 done
38} 41}
39 42
40EXPORT_FUNCTIONS do_configure do_compile do_install 43EXPORT_FUNCTIONS do_configure do_compile do_install