summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch
diff options
context:
space:
mode:
authorAlejandro Hernandez <alejandro.hernandez@linux.intel.com>2016-08-03 18:49:42 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-10 10:46:30 +0100
commitadf4266524d0d1a7814d31496c3ecc6470644ec6 (patch)
tree12f5e4f1dbbdc8ba53bc02012b12848c006efdc2 /meta/recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch
parentdb9508891b6985d3467ce7a04e12f75a07fa756f (diff)
downloadpoky-adf4266524d0d1a7814d31496c3ecc6470644ec6.tar.gz
python: upgrade from 2.7.11 to 2.7.12
LICENSE did not change, only dates were changed Rebases: - multilib.patch - 01-use-proper-tools-for-cross-build.patch Upstream: - avoid_parallel_make_races_on_pgen.patch - CVE-2016-5636.patch (From OE-Core rev: 2e64fdc99a0e00bd0a4b4bf09a128e56fd8e9f8b) Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch')
-rw-r--r--meta/recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch40
1 files changed, 20 insertions, 20 deletions
diff --git a/meta/recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch b/meta/recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch
index 4d1395de01..b2a8c3b5a3 100644
--- a/meta/recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch
+++ b/meta/recipes-devtools/python/python/01-use-proper-tools-for-cross-build.patch
@@ -9,11 +9,11 @@ Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
9Rebased for python-2.7.9 9Rebased for python-2.7.9
10Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com> 10Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
11 11
12Index: Python-2.7.9/Makefile.pre.in 12Index: Python-2.7.12/Makefile.pre.in
13=================================================================== 13===================================================================
14--- Python-2.7.9.orig/Makefile.pre.in 14--- Python-2.7.12.orig/Makefile.pre.in
15+++ Python-2.7.9/Makefile.pre.in 15+++ Python-2.7.12/Makefile.pre.in
16@@ -234,6 +234,7 @@ LIBFFI_INCLUDEDIR= @LIBFFI_INCLUDEDIR@ 16@@ -246,6 +246,7 @@ LIBFFI_INCLUDEDIR= @LIBFFI_INCLUDEDIR@
17 ########################################################################## 17 ##########################################################################
18 # Parser 18 # Parser
19 PGEN= Parser/pgen$(EXE) 19 PGEN= Parser/pgen$(EXE)
@@ -21,7 +21,7 @@ Index: Python-2.7.9/Makefile.pre.in
21 21
22 PSRCS= \ 22 PSRCS= \
23 Parser/acceler.c \ 23 Parser/acceler.c \
24@@ -445,7 +446,7 @@ $(BUILDPYTHON): Modules/python.o $(LIBRA 24@@ -513,7 +514,7 @@ $(BUILDPYTHON): Modules/python.o $(LIBRA
25 $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST) 25 $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
26 26
27 platform: $(BUILDPYTHON) pybuilddir.txt 27 platform: $(BUILDPYTHON) pybuilddir.txt
@@ -30,16 +30,16 @@ Index: Python-2.7.9/Makefile.pre.in
30 30
31 # Create build directory and generate the sysconfig build-time data there. 31 # Create build directory and generate the sysconfig build-time data there.
32 # pybuilddir.txt contains the name of the build dir and is used for 32 # pybuilddir.txt contains the name of the build dir and is used for
33@@ -611,7 +612,7 @@ Modules/pwdmodule.o: $(srcdir)/Modules/p 33@@ -684,7 +685,7 @@ $(GRAMMAR_H): $(GRAMMAR_INPUT) $(PGEN)
34 $(GRAMMAR_H): $(GRAMMAR_INPUT) $(PGENSRCS) 34 @$(MKDIR_P) Include
35 @$(MKDIR_P) Include 35 # Avoid copying the file onto itself for an in-tree build
36 $(MAKE) $(PGEN) 36 if test "$(cross_compiling)" != "yes"; then \
37- $(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C) 37- $(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C); \
38+ $(HOSTPGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C) 38+ $(HOSTPGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C); \
39 $(GRAMMAR_C): $(GRAMMAR_H) $(GRAMMAR_INPUT) $(PGENSRCS) 39 else \
40 $(MAKE) $(GRAMMAR_H) 40 cp $(srcdir)/Include/graminit.h $(GRAMMAR_H).tmp; \
41 touch $(GRAMMAR_C) 41 mv $(GRAMMAR_H).tmp $(GRAMMAR_H); \
42@@ -1043,27 +1044,27 @@ libinstall: build_all $(srcdir)/Lib/$(PL 42@@ -1133,27 +1134,27 @@ libinstall: build_all $(srcdir)/Lib/$(PL
43 $(DESTDIR)$(LIBDEST)/distutils/tests ; \ 43 $(DESTDIR)$(LIBDEST)/distutils/tests ; \
44 fi 44 fi
45 PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ 45 PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
@@ -73,11 +73,11 @@ Index: Python-2.7.9/Makefile.pre.in
73 73
74 # Create the PLATDIR source directory, if one wasn't distributed.. 74 # Create the PLATDIR source directory, if one wasn't distributed..
75 $(srcdir)/Lib/$(PLATDIR): 75 $(srcdir)/Lib/$(PLATDIR):
76Index: Python-2.7.9/setup.py 76Index: Python-2.7.12/setup.py
77=================================================================== 77===================================================================
78--- Python-2.7.9.orig/setup.py 78--- Python-2.7.12.orig/setup.py
79+++ Python-2.7.9/setup.py 79+++ Python-2.7.12/setup.py
80@@ -334,6 +334,7 @@ class PyBuildExt(build_ext): 80@@ -350,6 +350,7 @@ class PyBuildExt(build_ext):
81 self.failed.append(ext.name) 81 self.failed.append(ext.name)
82 self.announce('*** WARNING: renaming "%s" since importing it' 82 self.announce('*** WARNING: renaming "%s" since importing it'
83 ' failed: %s' % (ext.name, why), level=3) 83 ' failed: %s' % (ext.name, why), level=3)
@@ -85,7 +85,7 @@ Index: Python-2.7.9/setup.py
85 assert not self.inplace 85 assert not self.inplace
86 basename, tail = os.path.splitext(ext_filename) 86 basename, tail = os.path.splitext(ext_filename)
87 newname = basename + "_failed" + tail 87 newname = basename + "_failed" + tail
88@@ -558,6 +559,9 @@ class PyBuildExt(build_ext): 88@@ -574,6 +575,9 @@ class PyBuildExt(build_ext):
89 89
90 # XXX Omitted modules: gl, pure, dl, SGI-specific modules 90 # XXX Omitted modules: gl, pure, dl, SGI-specific modules
91 91