summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorChristopher Larson <chris_larson@mentor.com>2013-11-25 17:25:24 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-02-09 11:04:13 +0000
commitccbdac5d97e2e68388a7a4e4757967684db24595 (patch)
tree474fe9221b304e8c63bae13770a1d022dac3a9a4 /meta/recipes-devtools
parent1ed91fcd033be8c2b301aeb119f338cfa5e8dda2 (diff)
downloadpoky-ccbdac5d97e2e68388a7a4e4757967684db24595.tar.gz
python, python-native: fix PARALLEL_MAKEINST failure
When using make -j with the 'install' target, it's possible for altbininstall (which normally creates BINDIR) and libainstall (which doesn't, though it installs python-config there) to race, resulting in a failure due to attempting to install python-config into a nonexistent BINDIR. Ensure it also exists in the libainstall target. (From OE-Core master rev: 54da47f3ddc1c009594744793060ffd09db3ad11) (From OE-Core rev: 4766c03a208f37276b4778a4edc20e1e19faebeb) Signed-off-by: Christopher Larson <kergoth@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/python/python-native_2.7.3.bb1
-rw-r--r--meta/recipes-devtools/python/python/parallel-makeinst-create-bindir.patch19
-rw-r--r--meta/recipes-devtools/python/python_2.7.3.bb1
3 files changed, 21 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python-native_2.7.3.bb b/meta/recipes-devtools/python/python-native_2.7.3.bb
index ef891b246c..6b87a16d41 100644
--- a/meta/recipes-devtools/python/python-native_2.7.3.bb
+++ b/meta/recipes-devtools/python/python-native_2.7.3.bb
@@ -16,6 +16,7 @@ SRC_URI += "\
16 file://multilib.patch \ 16 file://multilib.patch \
17 file://add-md5module-support.patch \ 17 file://add-md5module-support.patch \
18 file://builddir.patch \ 18 file://builddir.patch \
19 file://parallel-makeinst-create-bindir.patch \
19 " 20 "
20S = "${WORKDIR}/Python-${PV}" 21S = "${WORKDIR}/Python-${PV}"
21 22
diff --git a/meta/recipes-devtools/python/python/parallel-makeinst-create-bindir.patch b/meta/recipes-devtools/python/python/parallel-makeinst-create-bindir.patch
new file mode 100644
index 0000000000..951cb466ff
--- /dev/null
+++ b/meta/recipes-devtools/python/python/parallel-makeinst-create-bindir.patch
@@ -0,0 +1,19 @@
1When using make -j with the 'install' target, it's possible for altbininstall
2(which normally creates BINDIR) and libainstall (which doesn't, though it
3installs python-config there) to race, resulting in a failure due to
4attempting to install python-config into a nonexistent BINDIR. Ensure it also
5exists in the libainstall target.
6
7Upstream-Status: Pending
8
9--- Python-2.7.3.orig/Makefile.pre.in
10+++ Python-2.7.3/Makefile.pre.in
11@@ -1008,7 +1008,7 @@ LIBPL= $(LIBP)/config
12 LIBPC= $(LIBDIR)/pkgconfig
13
14 libainstall: all python-config
15- @for i in $(LIBDIR) $(LIBP) $(LIBPL) $(LIBPC); \
16+ @for i in $(LIBDIR) $(LIBP) $(LIBPL) $(LIBPC) $(BINDIR); \
17 do \
18 if test ! -d $(DESTDIR)$$i; then \
19 echo "Creating directory $$i"; \
diff --git a/meta/recipes-devtools/python/python_2.7.3.bb b/meta/recipes-devtools/python/python_2.7.3.bb
index fb7d1c9355..50c7f9b5d2 100644
--- a/meta/recipes-devtools/python/python_2.7.3.bb
+++ b/meta/recipes-devtools/python/python_2.7.3.bb
@@ -32,6 +32,7 @@ SRC_URI += "\
32 file://run-ptest \ 32 file://run-ptest \
33 file://CVE-2013-4073_py27.patch \ 33 file://CVE-2013-4073_py27.patch \
34 file://pypirc-secure.patch \ 34 file://pypirc-secure.patch \
35 file://parallel-makeinst-create-bindir.patch \
35" 36"
36 37
37S = "${WORKDIR}/Python-${PV}" 38S = "${WORKDIR}/Python-${PV}"