]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
python-native: Fixes PGEN linking errors Changes Makefile rules to avoid parallel...
authorAlejandro Hernandez <alejandro.hernandez@linux.intel.com>
Tue, 24 Feb 2015 06:08:08 +0000 (00:08 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 24 Feb 2015 23:11:51 +0000 (23:11 +0000)
Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/python/python-native/avoid_parallel_make_races_on_pgen.patch [new file with mode: 0644]
meta/recipes-devtools/python/python-native_2.7.9.bb

diff --git a/meta/recipes-devtools/python/python-native/avoid_parallel_make_races_on_pgen.patch b/meta/recipes-devtools/python/python-native/avoid_parallel_make_races_on_pgen.patch
new file mode 100644 (file)
index 0000000..1a8f68e
--- /dev/null
@@ -0,0 +1,27 @@
+Upstream-Status: Inappropriate [embedded specific]
+
+Avoids parallel make races linking errors when making Parser/PGEN
+
+- Implements Richard Purdie's idea
+
+Signed-Off-By: Richard Purdie <richard.purdie@linuxfoundation.org>
+Signed-Off-By: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
+
+Index: Python-2.7.9/Makefile.pre.in
+===================================================================
+--- Python-2.7.9.orig/Makefile.pre.in
++++ Python-2.7.9/Makefile.pre.in
+@@ -610,12 +610,10 @@ Modules/grpmodule.o: $(srcdir)/Modules/g
+ Modules/pwdmodule.o: $(srcdir)/Modules/pwdmodule.c $(srcdir)/Modules/posixmodule.h
+-$(GRAMMAR_H): $(GRAMMAR_INPUT) $(PGENSRCS)
++$(GRAMMAR_H): $(GRAMMAR_INPUT) $(PGENSRCS) $(PGEN)
+               @$(MKDIR_P) Include
+-              $(MAKE) $(PGEN)
+               $(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
+ $(GRAMMAR_C): $(GRAMMAR_H) $(GRAMMAR_INPUT) $(PGENSRCS)
+-              $(MAKE) $(GRAMMAR_H)
+               touch $(GRAMMAR_C)
+ $(PGEN):      $(PGENOBJS)
index 54be2ea58b1a6d12770b53eb352cc9b0a7a2f457..28aaa111cea5ea1f804990b5432ae46faf822784 100644 (file)
@@ -17,6 +17,7 @@ SRC_URI += "\
             file://builddir.patch \
             file://parallel-makeinst-create-bindir.patch \
             file://revert_use_of_sysconfigdata.patch \
+            file://avoid_parallel_make_races_on_pgen.patch \
            "
 S = "${WORKDIR}/Python-${PV}"