[oe-commits] Tom Rini : cpan.bbclass: Perform more mangling for perl path

git version control git at git.openembedded.org
Thu Jan 6 16:58:11 UTC 2011


Module: openembedded.git
Branch: master
Commit: be7fe31242d6f5a67e70da52dd29fd70bd228cfc
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=be7fe31242d6f5a67e70da52dd29fd70bd228cfc

Author: Tom Rini <tom_rini at mentor.com>
Date:   Thu Jan  6 09:45:33 2011 -0700

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 at mentor.com>

---

 classes/cpan.bbclass |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/classes/cpan.bbclass b/classes/cpan.bbclass
index 1a3ea15..b522423 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





More information about the Openembedded-commits mailing list