cpan.bbclass: Fix config error while patches to Makefile.PL
PATCH 1/1 cpan.bbclass: Fix config error while patches to Makefile.PL
From: Xin Ouyang <[email protected]>
If there is a patch to Makefile.PL, a Makefile.PL but no Makefile will be placed in ${B}/.pc/xxx.patch/ after do_patch. And no Makefile will be generated for *this* Makefile.PL. While do_configure, the original code tries to sed Makefiles matching with each Makefile.PL in {B}, so this would fail.
--- meta/classes/cpan.bbclass | 1 + 1 file changed, 1 insertion(+)
meta/classes/cpan.bbclass +1 -0
@@ -23,6 +23,7 @@ cpan_do_configure () { # Use find since there can be a Makefile generated for each Makefile.PL for f in `find -name Makefile.PL`; do f2=`echo $f | sed -e 's/.PL//'` + test -f $f2 || continue sed -i -e "s:\(PERL_ARCHLIB = \).*:\1${PERL_ARCHLIB}:" \ -e 's/perl.real/perl/' \ $f2
Signature · 1 line
1.7.9.5
Flanagan, Elizabeth
AppliedQuoted 29 lines · On Thu, May 31, 2012 at 12:46 AM, <[email protected]> wrote:
From: Xin Ouyang <[email protected]>
If there is a patch to Makefile.PL, a Makefile.PL but no
Makefilewill be placed in ${B}/.pc/xxx.patch/ afterdo_patch. And noMakefilewill be generated for *this* Makefile.PL. Whiledo_configure, the original code tries to sed Makefiles matching with each Makefile.PL in {B}, so this would fail.Signed-off-by Xin Ouyang <[email protected]>---
meta/classes/cpan.bbclass | 1 +1 file changed, 1 insertion(+)meta/classes/cpan.bbclass +0
-0@@ -23,6 +23,7 @@ cpan_do_configure () { # Use find since there can be a Makefile generated for each Makefile.PLfor f in
find -name Makefile.PL; do
f2=echo $f | sed -e 's/.PL//'
+ test -f $f2 || continue
sed -i -e "s:\(PERL_ARCHLIB = \).*:\1${PERL_ARCHLIB}:" \
-e 's/perl.real/perl/' \
$f2
--
1.7.9.5
Quoted 4 lines
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Merged into OE-Core
Thanks
-b
Signature · 3 lines
Elizabeth Flanagan Yocto Project Build and Release