mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 03:32:12 +02:00
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.
(From OE-Core rev: 7c99105d70a16aa9e42429224abed28743e627b2)
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
b1f7bb912f
commit
d0fac332cf
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user