From 682a213dc732074985bf86f508305fc6eafe18d9 Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Mon, 18 Jul 2011 09:02:18 -0700 Subject: 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 --- meta/classes/cpan.bbclass | 3 +++ 1 file changed, 3 insertions(+) (limited to 'meta/classes/cpan.bbclass') 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 -- cgit 1.2.3-korg