summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2014-07-24 09:57:17 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-07-25 15:34:00 +0100
commit30ef7b2c054c2712865e6593b948c4d89f9b6309 (patch)
tree75271e14bf91eca6404b2be0f0c3e382801977e4
parent5a7f510a68d449e0ae1d972ad2d78fb9853665b5 (diff)
downloadpoky-30ef7b2c054c2712865e6593b948c4d89f9b6309.tar.gz
perl: fix rebuid failed while ${CC} changed
Reproduce steps: 1) bitbake perl 2) vim local.conf to tweak CC, just add redundant option. ... CC_append = " ${HOST_CC_ARCH}" ... 3) bitbake perl ... ./miniperl -Ilib make_ext.pl lib/auto/Time/HiRes/HiRes.so MAKE=make LIBPERL_A=libperl.so LINKTYPE=dynamic Making Time::HiRes (all)my $filename= Deleting non-Cross makefile Running Makefile.PL in cpan/Time-HiRes Makefile.PL: The "xdefine" exists, skipping the configure step. ("tmp/sysroots/x86_64-linux/usr/bin/perl-native/perl5.20.0.real Makefile.PL --configure" to force the configure step) Warning: No Makefile! make[2]: Entering directory `tmp/work/armv5te-poky-linux-gnueabi/perl/5.20.0-r1/perl-5.20.0/cpan/Time-HiRes' make[2]: *** No rule to make target `config'. Stop. ... While ${CC} changed, the existance of 'xdefine' caused makefile regeneration failed. [YOCTO #6569] (From OE-Core rev: fa43d4f268bc4a6fafcf14029049f2997bc72d6c) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/perl/perl-5.20.0/make_ext.pl-fix-regenerate-makefile-failed-while-cc-.patch30
-rw-r--r--meta/recipes-devtools/perl/perl_5.20.0.bb1
2 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/perl-5.20.0/make_ext.pl-fix-regenerate-makefile-failed-while-cc-.patch b/meta/recipes-devtools/perl/perl-5.20.0/make_ext.pl-fix-regenerate-makefile-failed-while-cc-.patch
new file mode 100644
index 0000000000..de6f65294c
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl-5.20.0/make_ext.pl-fix-regenerate-makefile-failed-while-cc-.patch
@@ -0,0 +1,30 @@
1make_ext.pl: fix regenerate makefile failed while $cc changed
2
3While $cc changed, the existance of 'xdefine' caused makefile
4regeneration failed.
5
6Upstream-Status: Pending
7
8Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
9---
10 make_ext.pl | 4 ++++
11 1 file changed, 4 insertions(+)
12
13diff --git a/make_ext.pl b/make_ext.pl
14index b433762..9fc1a36 100644
15--- a/make_ext.pl
16+++ b/make_ext.pl
17@@ -335,6 +335,10 @@ sub build_extension {
18 print "Deleting non-Cross makefile\n";
19 close $mfh or die "close $makefile: $!";
20 _unlink($makefile);
21+ if(-e 'xdefine') {
22+ print "Deleting xdefine for regenerate makefile\n";
23+ _unlink('xdefine');
24+ }
25 }
26 }
27 }
28--
291.8.1.2
30
diff --git a/meta/recipes-devtools/perl/perl_5.20.0.bb b/meta/recipes-devtools/perl/perl_5.20.0.bb
index 4bd452512d..e984c906de 100644
--- a/meta/recipes-devtools/perl/perl_5.20.0.bb
+++ b/meta/recipes-devtools/perl/perl_5.20.0.bb
@@ -74,6 +74,7 @@ SRC_URI += " \
74 file://config.sh-64-be \ 74 file://config.sh-64-be \
75 file://perl-5.14.3-fix-CVE-2010-4777.patch \ 75 file://perl-5.14.3-fix-CVE-2010-4777.patch \
76 file://0001-Makefile.SH-fix-do_install-failed.patch \ 76 file://0001-Makefile.SH-fix-do_install-failed.patch \
77 file://make_ext.pl-fix-regenerate-makefile-failed-while-cc-.patch \
77" 78"
78 79
79# Fix test case issues 80# Fix test case issues