summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2010-08-11 10:58:20 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2010-08-11 11:05:46 +0200
commit0fb82e7903485fac2fdf4ffac182f0d36a550136 (patch)
tree28fca8c9d783cdf83208037ac0aeff9d06588104
parentcc274335ce4ad3e0efbe797e8884402f7f21d6af (diff)
downloadptxdist-0fb82e7903485fac2fdf4ffac182f0d36a550136.tar.gz
ptxdist-0fb82e7903485fac2fdf4ffac182f0d36a550136.tar.xz
[python3] fix parallel building issue
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--patches/Python-3.1.2/0021-fix-parallel-building.patch34
-rw-r--r--patches/Python-3.1.2/series1
2 files changed, 35 insertions, 0 deletions
diff --git a/patches/Python-3.1.2/0021-fix-parallel-building.patch b/patches/Python-3.1.2/0021-fix-parallel-building.patch
new file mode 100644
index 000000000..924352785
--- /dev/null
+++ b/patches/Python-3.1.2/0021-fix-parallel-building.patch
@@ -0,0 +1,34 @@
+From: Michael Olbrich <m.olbrich@pengutronix.de>
+Date: Wed, 11 Aug 2010 10:44:06 +0200
+Subject: [PATCH] fix parallel building
+
+Producing two target with on command results in a race condition:
+Both targets are requested, the command is executed twice, and the target
+are overwritten randomly.
+Solution: Run the command for on target and let the second depend on it.
+Then touch the second to make sure it's newer.
+
+Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
+---
+ Makefile.pre.in | 5 ++++-
+ 1 files changed, 4 insertions(+), 1 deletions(-)
+
+diff --git a/Makefile.pre.in b/Makefile.pre.in
+index 8e49d84..aced68e 100644
+--- a/Makefile.pre.in
++++ b/Makefile.pre.in
+@@ -546,7 +546,10 @@ Modules/python.o: $(srcdir)/Modules/python.c
+
+ $(IO_OBJS): $(IO_H)
+
+-$(GRAMMAR_H) $(GRAMMAR_C): $(PGEN_FOR_BUILD) $(GRAMMAR_INPUT)
++$(GRAMMAR_H): $(GRAMMAR_C)
++ @touch $@
++
++$(GRAMMAR_C): $(PGEN_FOR_BUILD) $(GRAMMAR_INPUT)
+ -@$(INSTALL) -d Include
+ -$(PGEN_FOR_BUILD) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
+
+--
+1.7.1
+
diff --git a/patches/Python-3.1.2/series b/patches/Python-3.1.2/series
index bb6ba56df..8586acab9 100644
--- a/patches/Python-3.1.2/series
+++ b/patches/Python-3.1.2/series
@@ -18,3 +18,4 @@
0018-dont-add-rpaths.diff
0019-add-cache-for-sem-getvalue.diff
0020-assume-non-buggy-getaddrinfo-when-cross-compiling.patch
+0021-fix-parallel-building.patch