cpan.bbclass: Fix config error while patches to Makefile.PL
authorXin Ouyang <Xin.Ouyang@windriver.com>
Thu, 31 May 2012 07:46:12 +0000 (15:46 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 5 Jun 2012 21:56:30 +0000 (22:56 +0100)
commiteff330d6d32db9fa6d0e4002eddf9bd90837523e
treeede6bb285163735d8db743cfc68e09f4b6372363
parent661d090efed0414f02aa2c7bd4d414873353290d
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>
meta/classes/cpan.bbclass