diff options
Diffstat (limited to 'meta')
3 files changed, 29 insertions, 1 deletions
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 index 1a8f68ebf3..5279e7c3b4 100644 --- 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 | |||
@@ -1,4 +1,4 @@ | |||
1 | Upstream-Status: Inappropriate [embedded specific] | 1 | Upstream-Status: Pending |
2 | 2 | ||
3 | Avoids parallel make races linking errors when making Parser/PGEN | 3 | Avoids parallel make races linking errors when making Parser/PGEN |
4 | 4 | ||
diff --git a/meta/recipes-devtools/python/python/avoid_parallel_make_races_on_pgen.patch b/meta/recipes-devtools/python/python/avoid_parallel_make_races_on_pgen.patch new file mode 100644 index 0000000000..e9bae324f7 --- /dev/null +++ b/meta/recipes-devtools/python/python/avoid_parallel_make_races_on_pgen.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | Avoids parallel make races linking errors when making Parser/PGEN | ||
4 | |||
5 | - Implements Richard Purdie's idea | ||
6 | |||
7 | Signed-Off-By: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
8 | Signed-Off-By: Alejandro Hernandez <alejandro.hernandez@linux.intel.com> | ||
9 | |||
10 | Index: Python-2.7.9/Makefile.pre.in | ||
11 | =================================================================== | ||
12 | --- Python-2.7.9.orig/Makefile.pre.in | ||
13 | +++ Python-2.7.9/Makefile.pre.in | ||
14 | @@ -611,12 +611,10 @@ Modules/grpmodule.o: $(srcdir)/Modules/g | ||
15 | |||
16 | Modules/pwdmodule.o: $(srcdir)/Modules/pwdmodule.c $(srcdir)/Modules/posixmodule.h | ||
17 | |||
18 | -$(GRAMMAR_H): $(GRAMMAR_INPUT) $(PGENSRCS) | ||
19 | +$(GRAMMAR_H): $(GRAMMAR_INPUT) $(PGENSRCS) $(PGEN) | ||
20 | @$(MKDIR_P) Include | ||
21 | - $(MAKE) $(PGEN) | ||
22 | $(HOSTPGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C) | ||
23 | $(GRAMMAR_C): $(GRAMMAR_H) $(GRAMMAR_INPUT) $(PGENSRCS) | ||
24 | - $(MAKE) $(GRAMMAR_H) | ||
25 | touch $(GRAMMAR_C) | ||
26 | |||
27 | $(PGEN): $(PGENOBJS) | ||
diff --git a/meta/recipes-devtools/python/python_2.7.9.bb b/meta/recipes-devtools/python/python_2.7.9.bb index 4087c2cb13..6d5b42a42f 100644 --- a/meta/recipes-devtools/python/python_2.7.9.bb +++ b/meta/recipes-devtools/python/python_2.7.9.bb | |||
@@ -25,6 +25,7 @@ SRC_URI += "\ | |||
25 | file://run-ptest \ | 25 | file://run-ptest \ |
26 | file://parallel-makeinst-create-bindir.patch \ | 26 | file://parallel-makeinst-create-bindir.patch \ |
27 | file://use_sysroot_ncurses_instead_of_host.patch \ | 27 | file://use_sysroot_ncurses_instead_of_host.patch \ |
28 | file://avoid_parallel_make_races_on_pgen.patch \ | ||
28 | " | 29 | " |
29 | 30 | ||
30 | S = "${WORKDIR}/Python-${PV}" | 31 | S = "${WORKDIR}/Python-${PV}" |