[OE-core] [PULL v2 1/1] cpan.bbclass: fix native perl issue

Saul Wold sgw at linux.intel.com
Wed Sep 7 16:12:48 UTC 2011


When configuring cpan packages, the directories passed to MakeMaker
are the target directories. There was a patch that was applied to the
native perl to find perl.real and convert that to perl.  This does not
apply for the target perl modules and therefore MakeMaker finds perl.real.

This patch to cpan configure modifies the Makefile after configure and
changes the perl.real to just straight perl so we have the correct paths
and shared state info in usable.

Signed-off-by: Saul Wold <sgw at linux.intel.com>
---
 meta/classes/cpan.bbclass |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/meta/classes/cpan.bbclass b/meta/classes/cpan.bbclass
index cb1c2f4..587e688 100644
--- a/meta/classes/cpan.bbclass
+++ b/meta/classes/cpan.bbclass
@@ -24,7 +24,8 @@ cpan_do_configure () {
 		for f in `find -name Makefile.PL`; do
 			f2=`echo $f | sed -e 's/.PL//'`
 			sed -i -e "s:\(PERL_ARCHLIB = \).*:\1${PERL_ARCHLIB}:" \
-			$f2
+				-e 's/perl.real/perl/' \
+				$f2
 		done
 	fi
 }
-- 
1.7.6





More information about the Openembedded-core mailing list