From be7fe31242d6f5a67e70da52dd29fd70bd228cfc Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Thu, 6 Jan 2011 09:45:33 -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. Signed-off-by: Tom Rini --- classes/cpan.bbclass | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit 1.2.3-korg