From 0fb82e7903485fac2fdf4ffac182f0d36a550136 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Wed, 11 Aug 2010 10:58:20 +0200 Subject: [python3] fix parallel building issue Signed-off-by: Michael Olbrich --- .../Python-3.1.2/0021-fix-parallel-building.patch | 34 ++++++++++++++++++++++ patches/Python-3.1.2/series | 1 + 2 files changed, 35 insertions(+) create mode 100644 patches/Python-3.1.2/0021-fix-parallel-building.patch 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 +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 +--- + 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 -- cgit v1.2.3