* [PATCH] python-native: Fixes PGEN linking errors Changes Makefile rules to avoid parallel make races when trying to build Parser/PGEN
@ 2015-02-24 6:08 Alejandro Hernandez
2015-02-24 12:02 ` Burton, Ross
0 siblings, 1 reply; 3+ messages in thread
From: Alejandro Hernandez @ 2015-02-24 6:08 UTC (permalink / raw)
To: openembedded-core
Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
---
.../avoid_parallel_make_races_on_pgen.patch | 27 ++++++++++++++++++++++
.../recipes-devtools/python/python-native_2.7.9.bb | 1 +
2 files changed, 28 insertions(+)
create mode 100644 meta/recipes-devtools/python/python-native/avoid_parallel_make_races_on_pgen.patch
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
index 0000000..1a8f68e
--- /dev/null
+++ b/meta/recipes-devtools/python/python-native/avoid_parallel_make_races_on_pgen.patch
@@ -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)
diff --git a/meta/recipes-devtools/python/python-native_2.7.9.bb b/meta/recipes-devtools/python/python-native_2.7.9.bb
index 54be2ea..28aaa11 100644
--- a/meta/recipes-devtools/python/python-native_2.7.9.bb
+++ b/meta/recipes-devtools/python/python-native_2.7.9.bb
@@ -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}"
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] python-native: Fixes PGEN linking errors Changes Makefile rules to avoid parallel make races when trying to build Parser/PGEN
2015-02-24 6:08 [PATCH] python-native: Fixes PGEN linking errors Changes Makefile rules to avoid parallel make races when trying to build Parser/PGEN Alejandro Hernandez
@ 2015-02-24 12:02 ` Burton, Ross
2015-02-24 16:29 ` Alejandro Hernandez
0 siblings, 1 reply; 3+ messages in thread
From: Burton, Ross @ 2015-02-24 12:02 UTC (permalink / raw)
To: Alejandro Hernandez; +Cc: OE-core
[-- Attachment #1: Type: text/plain, Size: 301 bytes --]
Hi Alejandro,
On 24 February 2015 at 06:08, Alejandro Hernandez <
alejandro.hernandez@linux.intel.com> wrote:
> +Upstream-Status: Inappropriate [embedded specific]
>
This is a genuine build race in the make files and entirely appropriate for
upstream. Can you send them a patch?
Ross
[-- Attachment #2: Type: text/html, Size: 731 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] python-native: Fixes PGEN linking errors Changes Makefile rules to avoid parallel make races when trying to build Parser/PGEN
2015-02-24 12:02 ` Burton, Ross
@ 2015-02-24 16:29 ` Alejandro Hernandez
0 siblings, 0 replies; 3+ messages in thread
From: Alejandro Hernandez @ 2015-02-24 16:29 UTC (permalink / raw)
To: Burton, Ross; +Cc: OE-core
[-- Attachment #1: Type: text/plain, Size: 488 bytes --]
On 24/02/15 06:02, Burton, Ross wrote:
> Hi Alejandro,
>
> On 24 February 2015 at 06:08, Alejandro Hernandez
> <alejandro.hernandez@linux.intel.com
> <mailto:alejandro.hernandez@linux.intel.com>> wrote:
>
> +Upstream-Status: Inappropriate [embedded specific]
>
>
> This is a genuine build race in the make files and entirely
> appropriate for upstream. Can you send them a patch?
>
> Ross
Will do, should I send the patch again to the list without that info?
[-- Attachment #2: Type: text/html, Size: 1625 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-02-24 16:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-24 6:08 [PATCH] python-native: Fixes PGEN linking errors Changes Makefile rules to avoid parallel make races when trying to build Parser/PGEN Alejandro Hernandez
2015-02-24 12:02 ` Burton, Ross
2015-02-24 16:29 ` Alejandro Hernandez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox