summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python-native
diff options
context:
space:
mode:
authorAlejandro Hernandez <alejandro.hernandez@linux.intel.com>2017-01-24 00:55:06 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-01 23:27:06 +0000
commit30b2044de65665470a95e33e934816c0caa91325 (patch)
treece7fdf9bda1aeb07dd362411152b23dc36375e40 /meta/recipes-devtools/python/python-native
parent1bd3e545bd14428e0695bafd80fe350a57463363 (diff)
downloadpoky-30b2044de65665470a95e33e934816c0caa91325.tar.gz
python: Upgrade both python and python-native to 2.7.13
Rebased: - python-native/multilib.patch - python/multilib.patch - python/01-use-proper-tools-for-cross-build.patch Upstream: - CVE-2016-1000110 (From OE-Core rev: 2eaadc5464e3340359b626026d80afb6bc01d3f1) 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-native')
-rw-r--r--meta/recipes-devtools/python/python-native/multilib.patch96
1 files changed, 48 insertions, 48 deletions
diff --git a/meta/recipes-devtools/python/python-native/multilib.patch b/meta/recipes-devtools/python/python-native/multilib.patch
index 916b40f4ab..ad46085094 100644
--- a/meta/recipes-devtools/python/python-native/multilib.patch
+++ b/meta/recipes-devtools/python/python-native/multilib.patch
@@ -12,10 +12,10 @@ Upstream-Status: Inappropriate [oe-specific]
12 12
13Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> 13Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
14 14
15Index: Python-2.7.12/Include/pythonrun.h 15Index: Python-2.7.13/Include/pythonrun.h
16=================================================================== 16===================================================================
17--- Python-2.7.12.orig/Include/pythonrun.h 17--- Python-2.7.13.orig/Include/pythonrun.h
18+++ Python-2.7.12/Include/pythonrun.h 18+++ Python-2.7.13/Include/pythonrun.h
19@@ -108,6 +108,7 @@ PyAPI_FUNC(char *) Py_GetPath(void); 19@@ -108,6 +108,7 @@ PyAPI_FUNC(char *) Py_GetPath(void);
20 /* In their own files */ 20 /* In their own files */
21 PyAPI_FUNC(const char *) Py_GetVersion(void); 21 PyAPI_FUNC(const char *) Py_GetVersion(void);
@@ -24,10 +24,10 @@ Index: Python-2.7.12/Include/pythonrun.h
24 PyAPI_FUNC(const char *) Py_GetCopyright(void); 24 PyAPI_FUNC(const char *) Py_GetCopyright(void);
25 PyAPI_FUNC(const char *) Py_GetCompiler(void); 25 PyAPI_FUNC(const char *) Py_GetCompiler(void);
26 PyAPI_FUNC(const char *) Py_GetBuildInfo(void); 26 PyAPI_FUNC(const char *) Py_GetBuildInfo(void);
27Index: Python-2.7.12/Lib/distutils/command/install.py 27Index: Python-2.7.13/Lib/distutils/command/install.py
28=================================================================== 28===================================================================
29--- Python-2.7.12.orig/Lib/distutils/command/install.py 29--- Python-2.7.13.orig/Lib/distutils/command/install.py
30+++ Python-2.7.12/Lib/distutils/command/install.py 30+++ Python-2.7.13/Lib/distutils/command/install.py
31@@ -22,6 +22,8 @@ from site import USER_BASE 31@@ -22,6 +22,8 @@ from site import USER_BASE
32 from site import USER_SITE 32 from site import USER_SITE
33 33
@@ -46,23 +46,23 @@ Index: Python-2.7.12/Lib/distutils/command/install.py
46 'headers': '$base/include/python$py_version_short/$dist_name', 46 'headers': '$base/include/python$py_version_short/$dist_name',
47 'scripts': '$base/bin', 47 'scripts': '$base/bin',
48 'data' : '$base', 48 'data' : '$base',
49Index: Python-2.7.12/Lib/pydoc.py 49Index: Python-2.7.13/Lib/pydoc.py
50=================================================================== 50===================================================================
51--- Python-2.7.12.orig/Lib/pydoc.py 51--- Python-2.7.13.orig/Lib/pydoc.py
52+++ Python-2.7.12/Lib/pydoc.py 52+++ Python-2.7.13/Lib/pydoc.py
53@@ -384,7 +384,7 @@ class Doc: 53@@ -375,7 +375,7 @@ class Doc:
54 54 docmodule = docclass = docroutine = docother = docproperty = docdata = fail
55 docloc = os.environ.get("PYTHONDOCS", 55
56 "http://docs.python.org/library") 56 def getdocloc(self, object,
57- basedir = os.path.join(sys.exec_prefix, "lib", 57- basedir=os.path.join(sys.exec_prefix, "lib",
58+ basedir = os.path.join(sys.exec_prefix, sys.lib, 58+ basedir=os.path.join(sys.exec_prefix, "sys.lib",
59 "python"+sys.version[0:3]) 59 "python"+sys.version[0:3])):
60 if (isinstance(object, type(os)) and 60 """Return the location of module docs or None"""
61 (object.__name__ in ('errno', 'exceptions', 'gc', 'imp', 61
62Index: Python-2.7.12/Lib/site.py 62Index: Python-2.7.13/Lib/site.py
63=================================================================== 63===================================================================
64--- Python-2.7.12.orig/Lib/site.py 64--- Python-2.7.13.orig/Lib/site.py
65+++ Python-2.7.12/Lib/site.py 65+++ Python-2.7.13/Lib/site.py
66@@ -288,13 +288,19 @@ def getsitepackages(): 66@@ -288,13 +288,19 @@ def getsitepackages():
67 if sys.platform in ('os2emx', 'riscos'): 67 if sys.platform in ('os2emx', 'riscos'):
68 sitepackages.append(os.path.join(prefix, "Lib", "site-packages")) 68 sitepackages.append(os.path.join(prefix, "Lib", "site-packages"))
@@ -83,13 +83,13 @@ Index: Python-2.7.12/Lib/site.py
83 sitepackages.append(prefix) 83 sitepackages.append(prefix)
84- sitepackages.append(os.path.join(prefix, "lib", "site-packages")) 84- sitepackages.append(os.path.join(prefix, "lib", "site-packages"))
85+ sitepackages.append(os.path.join(prefix, sys.lib, "site-packages")) 85+ sitepackages.append(os.path.join(prefix, sys.lib, "site-packages"))
86 if sys.platform == "darwin": 86 return sitepackages
87 # for framework builds *only* we add the standard Apple 87
88 # locations. 88 def addsitepackages(known_paths):
89Index: Python-2.7.12/Lib/test/test_dl.py 89Index: Python-2.7.13/Lib/test/test_dl.py
90=================================================================== 90===================================================================
91--- Python-2.7.12.orig/Lib/test/test_dl.py 91--- Python-2.7.13.orig/Lib/test/test_dl.py
92+++ Python-2.7.12/Lib/test/test_dl.py 92+++ Python-2.7.13/Lib/test/test_dl.py
93@@ -4,10 +4,11 @@ 93@@ -4,10 +4,11 @@
94 import unittest 94 import unittest
95 from test.test_support import verbose, import_module 95 from test.test_support import verbose, import_module
@@ -104,10 +104,10 @@ Index: Python-2.7.12/Lib/test/test_dl.py
104 ('/usr/bin/cygwin1.dll', 'getpid'), 104 ('/usr/bin/cygwin1.dll', 'getpid'),
105 ('/usr/lib/libc.dylib', 'getpid'), 105 ('/usr/lib/libc.dylib', 'getpid'),
106 ] 106 ]
107Index: Python-2.7.12/Lib/trace.py 107Index: Python-2.7.13/Lib/trace.py
108=================================================================== 108===================================================================
109--- Python-2.7.12.orig/Lib/trace.py 109--- Python-2.7.13.orig/Lib/trace.py
110+++ Python-2.7.12/Lib/trace.py 110+++ Python-2.7.13/Lib/trace.py
111@@ -754,10 +754,10 @@ def main(argv=None): 111@@ -754,10 +754,10 @@ def main(argv=None):
112 # should I also call expanduser? (after all, could use $HOME) 112 # should I also call expanduser? (after all, could use $HOME)
113 113
@@ -121,10 +121,10 @@ Index: Python-2.7.12/Lib/trace.py
121 "python" + sys.version[:3])) 121 "python" + sys.version[:3]))
122 s = os.path.normpath(s) 122 s = os.path.normpath(s)
123 ignore_dirs.append(s) 123 ignore_dirs.append(s)
124Index: Python-2.7.12/Makefile.pre.in 124Index: Python-2.7.13/Makefile.pre.in
125=================================================================== 125===================================================================
126--- Python-2.7.12.orig/Makefile.pre.in 126--- Python-2.7.13.orig/Makefile.pre.in
127+++ Python-2.7.12/Makefile.pre.in 127+++ Python-2.7.13/Makefile.pre.in
128@@ -92,6 +92,7 @@ PY_CFLAGS= $(CFLAGS) $(CPPFLAGS) $(CFLAG 128@@ -92,6 +92,7 @@ PY_CFLAGS= $(CFLAGS) $(CPPFLAGS) $(CFLAG
129 129
130 # Machine-dependent subdirectories 130 # Machine-dependent subdirectories
@@ -142,7 +142,7 @@ Index: Python-2.7.12/Makefile.pre.in
142 142
143 # Detailed destination directories 143 # Detailed destination directories
144 BINLIBDEST= $(LIBDIR)/python$(VERSION) 144 BINLIBDEST= $(LIBDIR)/python$(VERSION)
145@@ -669,6 +670,7 @@ Modules/getpath.o: $(srcdir)/Modules/get 145@@ -668,6 +669,7 @@ Modules/getpath.o: $(srcdir)/Modules/get
146 -DEXEC_PREFIX='"$(exec_prefix)"' \ 146 -DEXEC_PREFIX='"$(exec_prefix)"' \
147 -DVERSION='"$(VERSION)"' \ 147 -DVERSION='"$(VERSION)"' \
148 -DVPATH='"$(VPATH)"' \ 148 -DVPATH='"$(VPATH)"' \
@@ -150,7 +150,7 @@ Index: Python-2.7.12/Makefile.pre.in
150 -o $@ $(srcdir)/Modules/getpath.c 150 -o $@ $(srcdir)/Modules/getpath.c
151 151
152 Modules/python.o: $(srcdir)/Modules/python.c 152 Modules/python.o: $(srcdir)/Modules/python.c
153@@ -720,7 +722,7 @@ $(AST_C): $(AST_ASDL) $(ASDLGEN_FILES) 153@@ -708,7 +710,7 @@ $(AST_C): $(AST_ASDL) $(ASDLGEN_FILES)
154 Python/compile.o Python/symtable.o Python/ast.o: $(GRAMMAR_H) $(AST_H) 154 Python/compile.o Python/symtable.o Python/ast.o: $(GRAMMAR_H) $(AST_H)
155 155
156 Python/getplatform.o: $(srcdir)/Python/getplatform.c 156 Python/getplatform.o: $(srcdir)/Python/getplatform.c
@@ -159,10 +159,10 @@ Index: Python-2.7.12/Makefile.pre.in
159 159
160 Python/importdl.o: $(srcdir)/Python/importdl.c 160 Python/importdl.o: $(srcdir)/Python/importdl.c
161 $(CC) -c $(PY_CFLAGS) -I$(DLINCLDIR) -o $@ $(srcdir)/Python/importdl.c 161 $(CC) -c $(PY_CFLAGS) -I$(DLINCLDIR) -o $@ $(srcdir)/Python/importdl.c
162Index: Python-2.7.12/Modules/getpath.c 162Index: Python-2.7.13/Modules/getpath.c
163=================================================================== 163===================================================================
164--- Python-2.7.12.orig/Modules/getpath.c 164--- Python-2.7.13.orig/Modules/getpath.c
165+++ Python-2.7.12/Modules/getpath.c 165+++ Python-2.7.13/Modules/getpath.c
166@@ -100,6 +100,13 @@ 166@@ -100,6 +100,13 @@
167 #error "PREFIX, EXEC_PREFIX, VERSION, and VPATH must be constant defined" 167 #error "PREFIX, EXEC_PREFIX, VERSION, and VPATH must be constant defined"
168 #endif 168 #endif
@@ -186,10 +186,10 @@ Index: Python-2.7.12/Modules/getpath.c
186 186
187 static void 187 static void
188 reduce(char *dir) 188 reduce(char *dir)
189Index: Python-2.7.12/Python/getplatform.c 189Index: Python-2.7.13/Python/getplatform.c
190=================================================================== 190===================================================================
191--- Python-2.7.12.orig/Python/getplatform.c 191--- Python-2.7.13.orig/Python/getplatform.c
192+++ Python-2.7.12/Python/getplatform.c 192+++ Python-2.7.13/Python/getplatform.c
193@@ -10,3 +10,13 @@ Py_GetPlatform(void) 193@@ -10,3 +10,13 @@ Py_GetPlatform(void)
194 { 194 {
195 return PLATFORM; 195 return PLATFORM;
@@ -204,10 +204,10 @@ Index: Python-2.7.12/Python/getplatform.c
204+{ 204+{
205+ return LIB; 205+ return LIB;
206+} 206+}
207Index: Python-2.7.12/Python/sysmodule.c 207Index: Python-2.7.13/Python/sysmodule.c
208=================================================================== 208===================================================================
209--- Python-2.7.12.orig/Python/sysmodule.c 209--- Python-2.7.13.orig/Python/sysmodule.c
210+++ Python-2.7.12/Python/sysmodule.c 210+++ Python-2.7.13/Python/sysmodule.c
211@@ -1437,6 +1437,8 @@ _PySys_Init(void) 211@@ -1437,6 +1437,8 @@ _PySys_Init(void)
212 PyString_FromString(Py_GetCopyright())); 212 PyString_FromString(Py_GetCopyright()));
213 SET_SYS_FROM_STRING("platform", 213 SET_SYS_FROM_STRING("platform",
@@ -217,11 +217,11 @@ Index: Python-2.7.12/Python/sysmodule.c
217 SET_SYS_FROM_STRING("executable", 217 SET_SYS_FROM_STRING("executable",
218 PyString_FromString(Py_GetProgramFullPath())); 218 PyString_FromString(Py_GetProgramFullPath()));
219 SET_SYS_FROM_STRING("prefix", 219 SET_SYS_FROM_STRING("prefix",
220Index: Python-2.7.12/configure.ac 220Index: Python-2.7.13/configure.ac
221=================================================================== 221===================================================================
222--- Python-2.7.12.orig/configure.ac 222--- Python-2.7.13.orig/configure.ac
223+++ Python-2.7.12/configure.ac 223+++ Python-2.7.13/configure.ac
224@@ -756,6 +756,11 @@ SunOS*) 224@@ -759,6 +759,11 @@ SunOS*)
225 ;; 225 ;;
226 esac 226 esac
227 227