diff options
author | Tom Rini <tom_rini@mentor.com> | 2011-01-06 09:45:33 -0700 |
---|---|---|
committer | Tom Rini <tom_rini@mentor.com> | 2011-01-06 09:56:09 -0700 |
commit | be7fe31242d6f5a67e70da52dd29fd70bd228cfc (patch) | |
tree | 320ce3d60144e95fafdf91b940ca6e3a92e5ddd8 /classes/cpan.bbclass | |
parent | 0d63bd4a601342e25da0a3c8dc2cfeff2d9546e4 (diff) | |
download | openembedded-be7fe31242d6f5a67e70da52dd29fd70bd228cfc.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.
Signed-off-by: Tom Rini <tom_rini@mentor.com>
Diffstat (limited to 'classes/cpan.bbclass')
-rw-r--r-- | classes/cpan.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/cpan.bbclass b/classes/cpan.bbclass index 1a3ea15e40..b522423243 100644 --- a/classes/cpan.bbclass +++ b/classes/cpan.bbclass @@ -28,6 +28,9 @@ cpan_do_compile () { cpan_do_install () { oe_runmake DESTDIR="${D}" install_vendor + for PERLSCRIPT in `grep -rIl '#!${bindir}/perl' ${D}`; do + sed -i -e 's|^#!${bindir}/perl|#!/usr/bin/env perl|' $PERLSCRIPT + done } EXPORT_FUNCTIONS do_configure do_compile do_install |