diff options
author | Xin Ouyang <Xin.Ouyang@windriver.com> | 2012-05-31 15:46:12 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-06-05 22:50:01 +0100 |
commit | 7c99105d70a16aa9e42429224abed28743e627b2 (patch) | |
tree | 772e57af874b8c05800ad63ded96fd90843f1310 /meta | |
parent | e3113827810e98eb1b012f0b280fb917199704c1 (diff) | |
download | openembedded-core-7c99105d70a16aa9e42429224abed28743e627b2.tar.gz openembedded-core-7c99105d70a16aa9e42429224abed28743e627b2.tar.bz2 openembedded-core-7c99105d70a16aa9e42429224abed28743e627b2.zip |
cpan.bbclass: Fix config error while patches to Makefile.PL
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.
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/cpan.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/cpan.bbclass b/meta/classes/cpan.bbclass index 587e688bc2..2e9432c0bb 100644 --- a/meta/classes/cpan.bbclass +++ b/meta/classes/cpan.bbclass @@ -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 |