summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/perl/perl-5.12.3/parallel_build_fix_6.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/perl/perl-5.12.3/parallel_build_fix_6.patch')
-rw-r--r--meta/recipes-devtools/perl/perl-5.12.3/parallel_build_fix_6.patch158
1 files changed, 158 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/perl-5.12.3/parallel_build_fix_6.patch b/meta/recipes-devtools/perl/perl-5.12.3/parallel_build_fix_6.patch
new file mode 100644
index 0000000000..42677391de
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl-5.12.3/parallel_build_fix_6.patch
@@ -0,0 +1,158 @@
1Upstream-Status:Inappropriate [Backport]
2
3Rebased by Nitin A Kamble <nitin.a.kamble@intel.com> on 3/11/2011
4
5commit 7353f64c5bca6e7102582a1e0017c850930249c3
6Author: Nicholas Clark <nick@ccl4.org>
7Date: Mon Feb 14 20:36:36 2011 +0000
8
9 Add ext/re/re.pm to the @INC set for miniperl by lib/buildcustomize.pl
10
11 This avoids a build-time race condition where lib/re.pm might be read midway
12 through the *second* copy of it (when ext/re/Makefile is being run). It also
13 simplifies many [Mm]akefile* rules, which previously had a special case to
14 copy it early.
15
16Index: perl-5.12.3/Cross/Makefile-cross-SH
17===================================================================
18--- perl-5.12.3.orig/Cross/Makefile-cross-SH
19+++ perl-5.12.3/Cross/Makefile-cross-SH
20@@ -727,7 +727,7 @@ fi
21 $spitshell >>$Makefile <<'!NO!SUBS!'
22
23 .PHONY: preplibrary
24-preplibrary: miniperl $(CONFIGPM) lib/lib.pm lib/re.pm $(PREPLIBRARY_LIBPERL)
25+preplibrary: miniperl $(CONFIGPM) lib/lib.pm $(PREPLIBRARY_LIBPERL)
26
27 .PHONY: makeppport
28 makeppport: miniperl$(EXE_EXT) $(CONFIGPM)
29@@ -748,10 +748,6 @@ $(plextract): miniperl $(CONFIGPM) x2p/s
30 @-rm -f $@
31 $(LDLIBPTH) ./miniperl -I`pwd`/lib $@.PL
32
33-lib/lib.pm: miniperl $(CONFIGPM)
34- @-rm -f $@
35- $(LDLIBPTH) ./miniperl -Ilib -MCross lib/lib_pm.PL
36-
37 lib/buildcustomize.pl: $(MINIPERL_EXE) write_buildcustomize.pl
38 $(MINIPERL) write_buildcustomize.pl >lib/buildcustomize.pl
39
40@@ -1212,7 +1208,7 @@ minitest.prep:
41
42 # Can't depend on lib/Config.pm because that might be where miniperl
43 # is crashing.
44-minitest: miniperl$(EXE_EXT) lib/re.pm minitest.prep
45+minitest: miniperl$(EXE_EXT) minitest.prep
46 - cd t && (rm -f perl$(EXE_EXT); $(LNS) ../miniperl$(EXE_EXT) perl$(EXE_EXT)) \
47 && $(LDLIBPTH) ./perl TEST -minitest base/*.t comp/*.t cmd/*.t run/*.t io/*.t op/*.t uni/*.t </dev/tty
48
49Index: perl-5.12.3/Makefile.SH
50===================================================================
51--- perl-5.12.3.orig/Makefile.SH
52+++ perl-5.12.3/Makefile.SH
53@@ -970,7 +970,7 @@ esac
54 $spitshell >>$Makefile <<'!NO!SUBS!'
55
56 .PHONY: preplibrary
57-preplibrary: $(MINIPERL_EXE) $(CONFIGPM) lib/re.pm $(PREPLIBRARY_LIBPERL)
58+preplibrary: $(MINIPERL_EXE) $(CONFIGPM) $(PREPLIBRARY_LIBPERL)
59
60 $(CONFIGPM_FROM_CONFIG_SH): $(CONFIGPOD)
61
62@@ -980,10 +980,6 @@ $(CONFIGPOD): config.sh $(MINIPERL_EXE)
63 lib/ExtUtils/Miniperl.pm: miniperlmain.c $(MINIPERL_EXE) minimod.pl $(CONFIGPM)
64 $(MINIPERL) minimod.pl > lib/ExtUtils/Miniperl.pm
65
66-lib/re.pm: ext/re/re.pm
67- @-rm -f $@
68- cp ext/re/re.pm lib/re.pm
69-
70 $(plextract): $(MINIPERL_EXE) $(CONFIGPM) x2p/s2p $(dynamic_ext)
71 @-rm -f $@
72 $(MINIPERL) $@.PL
73@@ -1267,7 +1263,7 @@ _cleaner2:
74 rm -f lib/.exists lib/*/.exists lib/*/*/.exists
75 rm -f h2ph.man pstruct
76 rm -rf .config
77- rm -f preload lib/re.pm
78+ rm -f preload
79 rm -rf lib/Encode lib/Compress lib/Hash lib/re
80 rm -rf lib/TAP lib/Module/Pluggable lib/App
81 rm -rf lib/mro
82@@ -1464,7 +1460,7 @@ minitest.prep:
83
84 # Can't depend on lib/Config.pm because that might be where miniperl
85 # is crashing.
86-minitest: $(MINIPERL_EXE) lib/re.pm minitest.prep
87+minitest: $(MINIPERL_EXE) minitest.prep
88 - cd t && (rm -f $(PERL_EXE); $(LNS) ../$(MINIPERL_EXE) $(PERL_EXE)) \
89 && $(RUN_PERL) TEST -minitest base/*.t comp/*.t cmd/*.t run/*.t io/*.t re/*.t op/*.t uni/*.t </dev/tty
90
91Index: perl-5.12.3/vms/descrip_mms.template
92===================================================================
93--- perl-5.12.3.orig/vms/descrip_mms.template
94+++ perl-5.12.3/vms/descrip_mms.template
95@@ -360,7 +360,7 @@ CRTLOPTS =,$(CRTL)/Options
96 unidatadirs = lib/unicore/To lib/unicore/lib
97
98 # Modules which must be installed before we can build extensions
99-LIBPREREQ = $(ARCHDIR)Config.pm $(ARCHDIR)Config_heavy.pl [.lib.VMS]Filespec.pm $(ARCHDIR)vmspipe.com [.lib]re.pm [.lib]buildcustomize.pl
100+LIBPREREQ = $(ARCHDIR)Config.pm $(ARCHDIR)Config_heavy.pl [.lib.VMS]Filespec.pm $(ARCHDIR)vmspipe.com [.lib]buildcustomize.pl
101
102 utils1 = [.lib.pods]perldoc.com [.lib.ExtUtils]Miniperl.pm [.utils]c2ph.com [.utils]h2ph.com
103 utils2 = [.utils]h2xs.com [.utils]libnetcfg.com [.lib]perlbug.com [.utils]dprofpp.com
104@@ -455,9 +455,6 @@ pod = $(pod0) $(pod1) $(pod2) $(pod3) $(
105 archcorefiles : $(ac) $(ARCHAUTO)time.stamp
106 @ $(NOOP)
107
108-[.lib]re.pm : [.ext.re]re.pm
109- Copy/NoConfirm/Log $(MMS$SOURCE) [.lib]
110-
111 [.lib]buildcustomize.pl : write_buildcustomize.pl $(MINIPERL_EXE)
112 $(MINIPERL) write_buildcustomize.pl > [.lib]buildcustomize.pl
113
114@@ -1487,7 +1484,7 @@ test_harness : all [.t.lib]vmsfspec.t
115 - @[.vms]test.com "$(E)" "$(__DEBUG__)"
116 @ $(MINIPERL) -e "print ""Ran tests"";" > [.t]rantests.
117
118-minitest : $(MINITEST_EXE) [.lib]re.pm [.lib.VMS]Filespec.pm unidatafiles.ts
119+minitest : $(MINITEST_EXE) [.lib.VMS]Filespec.pm unidatafiles.ts
120 @ PERL_TEST_DRIVER == "minitest"
121 - @[.vms]test.com "$(E)" "$(__DEBUG__)"
122
123Index: perl-5.12.3/win32/Makefile
124===================================================================
125--- perl-5.12.3.orig/win32/Makefile
126+++ perl-5.12.3/win32/Makefile
127@@ -918,7 +918,6 @@ $(CONFIGPM) : $(MINIPERL) ..\config.sh c
128 if exist lib\* $(RCOPY) lib\*.* ..\lib\$(NULL)
129 $(XCOPY) ..\*.h $(COREDIR)\*.*
130 $(XCOPY) *.h $(COREDIR)\*.*
131- $(XCOPY) ..\ext\re\re.pm $(LIBDIR)\*.*
132 $(RCOPY) include $(COREDIR)\*.*
133 -$(MINIPERL) -I..\lib $(ICWD) config_h.PL "INST_VER=$(INST_VER)"
134 if errorlevel 1 $(MAKE) /$(MAKEFLAGS) $(CONFIGPM)
135Index: perl-5.12.3/win32/makefile.mk
136===================================================================
137--- perl-5.12.3.orig/win32/makefile.mk
138+++ perl-5.12.3/win32/makefile.mk
139@@ -1210,7 +1210,6 @@ $(CONFIGPM) : $(MINIPERL) ..\config.sh c
140 if exist lib\* $(RCOPY) lib\*.* ..\lib\$(NULL)
141 $(XCOPY) ..\*.h $(COREDIR)\*.*
142 $(XCOPY) *.h $(COREDIR)\*.*
143- $(XCOPY) ..\ext\re\re.pm $(LIBDIR)\*.*
144 $(RCOPY) include $(COREDIR)\*.*
145 $(MINIPERL) -I..\lib $(ICWD) config_h.PL "INST_VER=$(INST_VER)" \
146 || $(MAKE) $(MAKEMACROS) $(CONFIGPM) $(MAKEFILE)
147Index: perl-5.12.3/write_buildcustomize.pl
148===================================================================
149--- perl-5.12.3.orig/write_buildcustomize.pl
150+++ perl-5.12.3/write_buildcustomize.pl
151@@ -24,6 +24,7 @@ my @toolchain = qw(cpan/AutoLoader/lib
152 cpan/ExtUtils-MakeMaker/lib
153 dist/ExtUtils-Manifest/lib
154 cpan/File-Path/lib
155+ ext/re
156 );
157
158 # Used only in ExtUtils::Liblist::Kid::_win32_ext()