[PULL,v2,1/1] cpan.bbclass: fix native perl issue

Submitted by Saul Wold on Sept. 7, 2011, 4:12 p.m.

Details

Message ID 68679302c46936d2e2f7b0980ec325c398dd5e73.1315411864.git.sgw@linux.intel.com
State New, archived
Headers show

Commit Message

Saul Wold Sept. 7, 2011, 4:12 p.m.
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@linux.intel.com>
---
 meta/classes/cpan.bbclass |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Patch hide | download patch | download mbox

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
 }

Comments

Richard Purdie Sept. 7, 2011, 9:57 p.m.
On Wed, 2011-09-07 at 09:12 -0700, Saul Wold wrote:
> 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@linux.intel.com>
> ---
>  meta/classes/cpan.bbclass |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)

Merged to master, thanks.

Richard