From: Tom Rini Date: Thu, 6 Jan 2011 16:45:33 +0000 (-0700) Subject: cpan.bbclass: Perform more mangling for perl path X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be7fe31242d6f5a67e70da52dd29fd70bd228cfc;p=openembedded.git 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 --- 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