python: Fix PGEN linking errors

Parallel make races when linking PGEN affects target's python
compilation as well, adds patch from python-native to modify the
Makefile and avoid parallel make races, also updates upstream status

(From OE-Core rev: 4f0d1015aa3331ae7b376f836d3188b6017abfb1)

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Alejandro Hernandez
2015-03-23 15:33:21 -06:00
committed by Richard Purdie
parent 2a473ac17a
commit 65a8408155
3 changed files with 29 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
Upstream-Status: Inappropriate [embedded specific]
Upstream-Status: Pending
Avoids parallel make races linking errors when making Parser/PGEN

View File

@@ -0,0 +1,27 @@
Upstream-Status: Pending
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
@@ -611,12 +611,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)
$(HOSTPGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
$(GRAMMAR_C): $(GRAMMAR_H) $(GRAMMAR_INPUT) $(PGENSRCS)
- $(MAKE) $(GRAMMAR_H)
touch $(GRAMMAR_C)
$(PGEN): $(PGENOBJS)

View File

@@ -25,6 +25,7 @@ SRC_URI += "\
file://run-ptest \
file://parallel-makeinst-create-bindir.patch \
file://use_sysroot_ncurses_instead_of_host.patch \
file://avoid_parallel_make_races_on_pgen.patch \
"
S = "${WORKDIR}/Python-${PV}"