summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python-native
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-03-09 20:55:51 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-11 06:27:00 -0700
commita2fdf7fb08acef1b495fecee84ff536f0a33bb58 (patch)
tree48d9773bdc9d0b8a9f00c32752c5dc2de48ddd3d /meta/recipes-devtools/python/python-native
parent2a0f0adf0567f46f893685ff1e5e4f24f8e2cbbe (diff)
downloadpoky-a2fdf7fb08acef1b495fecee84ff536f0a33bb58.tar.gz
python: refresh patches
The patch tool will apply patches by default with "fuzz", which is where if the hunk context isn't present but what is there is close enough, it will force the patch in. Whilst this is useful when there's just whitespace changes, when applied to source it is possible for a patch applied with fuzz to produce broken code which still compiles (see #10450). This is obviously bad. We'd like to eventually have do_patch() rejecting any fuzz on these grounds. For that to be realistic the existing patches with fuzz need to be rebased and reviewed. (From OE-Core rev: 8a5c1328c4ea63443a92813c54bd2229c9959ff9) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Alexander Kanavin <alexander.kanavin@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.patch78
1 files changed, 39 insertions, 39 deletions
diff --git a/meta/recipes-devtools/python/python-native/multilib.patch b/meta/recipes-devtools/python/python-native/multilib.patch
index ad46085094..af0f173c6d 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.13/Include/pythonrun.h 15Index: Python-2.7.14/Include/pythonrun.h
16=================================================================== 16===================================================================
17--- Python-2.7.13.orig/Include/pythonrun.h 17--- Python-2.7.14.orig/Include/pythonrun.h
18+++ Python-2.7.13/Include/pythonrun.h 18+++ Python-2.7.14/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.13/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.13/Lib/distutils/command/install.py 27Index: Python-2.7.14/Lib/distutils/command/install.py
28=================================================================== 28===================================================================
29--- Python-2.7.13.orig/Lib/distutils/command/install.py 29--- Python-2.7.14.orig/Lib/distutils/command/install.py
30+++ Python-2.7.13/Lib/distutils/command/install.py 30+++ Python-2.7.14/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,10 +46,10 @@ Index: Python-2.7.13/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.13/Lib/pydoc.py 49Index: Python-2.7.14/Lib/pydoc.py
50=================================================================== 50===================================================================
51--- Python-2.7.13.orig/Lib/pydoc.py 51--- Python-2.7.14.orig/Lib/pydoc.py
52+++ Python-2.7.13/Lib/pydoc.py 52+++ Python-2.7.14/Lib/pydoc.py
53@@ -375,7 +375,7 @@ class Doc: 53@@ -375,7 +375,7 @@ class Doc:
54 docmodule = docclass = docroutine = docother = docproperty = docdata = fail 54 docmodule = docclass = docroutine = docother = docproperty = docdata = fail
55 55
@@ -59,10 +59,10 @@ Index: Python-2.7.13/Lib/pydoc.py
59 "python"+sys.version[0:3])): 59 "python"+sys.version[0:3])):
60 """Return the location of module docs or None""" 60 """Return the location of module docs or None"""
61 61
62Index: Python-2.7.13/Lib/site.py 62Index: Python-2.7.14/Lib/site.py
63=================================================================== 63===================================================================
64--- Python-2.7.13.orig/Lib/site.py 64--- Python-2.7.14.orig/Lib/site.py
65+++ Python-2.7.13/Lib/site.py 65+++ Python-2.7.14/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"))
@@ -86,10 +86,10 @@ Index: Python-2.7.13/Lib/site.py
86 return sitepackages 86 return sitepackages
87 87
88 def addsitepackages(known_paths): 88 def addsitepackages(known_paths):
89Index: Python-2.7.13/Lib/test/test_dl.py 89Index: Python-2.7.14/Lib/test/test_dl.py
90=================================================================== 90===================================================================
91--- Python-2.7.13.orig/Lib/test/test_dl.py 91--- Python-2.7.14.orig/Lib/test/test_dl.py
92+++ Python-2.7.13/Lib/test/test_dl.py 92+++ Python-2.7.14/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.13/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.13/Lib/trace.py 107Index: Python-2.7.14/Lib/trace.py
108=================================================================== 108===================================================================
109--- Python-2.7.13.orig/Lib/trace.py 109--- Python-2.7.14.orig/Lib/trace.py
110+++ Python-2.7.13/Lib/trace.py 110+++ Python-2.7.14/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,11 +121,11 @@ Index: Python-2.7.13/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.13/Makefile.pre.in 124Index: Python-2.7.14/Makefile.pre.in
125=================================================================== 125===================================================================
126--- Python-2.7.13.orig/Makefile.pre.in 126--- Python-2.7.14.orig/Makefile.pre.in
127+++ Python-2.7.13/Makefile.pre.in 127+++ Python-2.7.14/Makefile.pre.in
128@@ -92,6 +92,7 @@ PY_CFLAGS= $(CFLAGS) $(CPPFLAGS) $(CFLAG 128@@ -91,6 +91,7 @@ PY_CFLAGS= $(CFLAGS) $(CPPFLAGS) $(CFLAG
129 129
130 # Machine-dependent subdirectories 130 # Machine-dependent subdirectories
131 MACHDEP= @MACHDEP@ 131 MACHDEP= @MACHDEP@
@@ -133,7 +133,7 @@ Index: Python-2.7.13/Makefile.pre.in
133 133
134 # Multiarch directory (may be empty) 134 # Multiarch directory (may be empty)
135 MULTIARCH= @MULTIARCH@ 135 MULTIARCH= @MULTIARCH@
136@@ -111,7 +112,7 @@ LIBDIR= @libdir@ 136@@ -110,7 +111,7 @@ LIBDIR= @libdir@
137 MANDIR= @mandir@ 137 MANDIR= @mandir@
138 INCLUDEDIR= @includedir@ 138 INCLUDEDIR= @includedir@
139 CONFINCLUDEDIR= $(exec_prefix)/include 139 CONFINCLUDEDIR= $(exec_prefix)/include
@@ -142,7 +142,7 @@ Index: Python-2.7.13/Makefile.pre.in
142 142
143 # Detailed destination directories 143 # Detailed destination directories
144 BINLIBDEST= $(LIBDIR)/python$(VERSION) 144 BINLIBDEST= $(LIBDIR)/python$(VERSION)
145@@ -668,6 +669,7 @@ Modules/getpath.o: $(srcdir)/Modules/get 145@@ -644,6 +645,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,8 +150,8 @@ Index: Python-2.7.13/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@@ -708,7 +710,7 @@ $(AST_C): $(AST_ASDL) $(ASDLGEN_FILES) 153@@ -692,7 +694,7 @@ regen-ast:
154 Python/compile.o Python/symtable.o Python/ast.o: $(GRAMMAR_H) $(AST_H) 154 Python/compile.o Python/symtable.o Python/ast.o: $(srcdir)/Include/graminit.h $(srcdir)/Include/Python-ast.h
155 155
156 Python/getplatform.o: $(srcdir)/Python/getplatform.c 156 Python/getplatform.o: $(srcdir)/Python/getplatform.c
157- $(CC) -c $(PY_CFLAGS) -DPLATFORM='"$(MACHDEP)"' -o $@ $(srcdir)/Python/getplatform.c 157- $(CC) -c $(PY_CFLAGS) -DPLATFORM='"$(MACHDEP)"' -o $@ $(srcdir)/Python/getplatform.c
@@ -159,10 +159,10 @@ Index: Python-2.7.13/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.13/Modules/getpath.c 162Index: Python-2.7.14/Modules/getpath.c
163=================================================================== 163===================================================================
164--- Python-2.7.13.orig/Modules/getpath.c 164--- Python-2.7.14.orig/Modules/getpath.c
165+++ Python-2.7.13/Modules/getpath.c 165+++ Python-2.7.14/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.13/Modules/getpath.c
186 186
187 static void 187 static void
188 reduce(char *dir) 188 reduce(char *dir)
189Index: Python-2.7.13/Python/getplatform.c 189Index: Python-2.7.14/Python/getplatform.c
190=================================================================== 190===================================================================
191--- Python-2.7.13.orig/Python/getplatform.c 191--- Python-2.7.14.orig/Python/getplatform.c
192+++ Python-2.7.13/Python/getplatform.c 192+++ Python-2.7.14/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.13/Python/getplatform.c
204+{ 204+{
205+ return LIB; 205+ return LIB;
206+} 206+}
207Index: Python-2.7.13/Python/sysmodule.c 207Index: Python-2.7.14/Python/sysmodule.c
208=================================================================== 208===================================================================
209--- Python-2.7.13.orig/Python/sysmodule.c 209--- Python-2.7.14.orig/Python/sysmodule.c
210+++ Python-2.7.13/Python/sysmodule.c 210+++ Python-2.7.14/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.13/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.13/configure.ac 220Index: Python-2.7.14/configure.ac
221=================================================================== 221===================================================================
222--- Python-2.7.13.orig/configure.ac 222--- Python-2.7.14.orig/configure.ac
223+++ Python-2.7.13/configure.ac 223+++ Python-2.7.14/configure.ac
224@@ -759,6 +759,11 @@ SunOS*) 224@@ -758,6 +758,11 @@ SunOS*)
225 ;; 225 ;;
226 esac 226 esac
227 227