path: root/meta/classes/cpan.bbclass
diff options
authorTom Rini <>2011-07-18 09:02:18 -0700
committerRichard Purdie <>2011-07-21 10:59:18 +0100
commit6a52bad2f44f0e919baa89a02f88855c925da6d5 (patch)
tree5e5c0d130673e3847ecf7427ddee9e88ab616d21 /meta/classes/cpan.bbclass
parent27ba6fbda84041b297a798b6d35de38272e74ea6 (diff)
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 Related to this we now bump all PRs for recipes that inherit cpan. Note that in we mangle for perl but here we use the new nativeperl script. (From OE-Core rev: 682a213dc732074985bf86f508305fc6eafe18d9) Signed-off-by: Tom Rini <> Signed-off-by: Richard Purdie <>
Diffstat (limited to 'meta/classes/cpan.bbclass')
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