summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose Lamego <jose.a.lamego@linux.intel.com>2017-11-15 18:56:22 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-11-21 14:43:56 +0000
commitb8d413eed64782c781f34452dfa11a86819c77cf (patch)
tree639b453bc447c400caab3ed9bfa352a7bbe7c5de
parent2cfc0951486b1e1b0b5dccbecac12d4e3826d0c9 (diff)
downloadpoky-b8d413eed64782c781f34452dfa11a86819c77cf.tar.gz
python-3.3-multilib.patch: Fixes getpath on multilib configurations
When using multilib configurations either on arm/arm64 and x86/x86-64 python3 failed to execute due to a failure when looking for its platform independent and dependent libraries. This patch fixes this issue by assigning lib_python to the appropriate macro. [YOCTO #10812] (From OE-Core rev: 8ef5c0511e51b82eaa45865df42ecbb2deeb7350) Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com> Signed-off-by: Jose Lamego <jose.a.lamego@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/python/python3/python-3.3-multilib.patch17
1 files changed, 13 insertions, 4 deletions
diff --git a/meta/recipes-devtools/python/python3/python-3.3-multilib.patch b/meta/recipes-devtools/python/python3/python-3.3-multilib.patch
index 056e8e7631..860190340e 100644
--- a/meta/recipes-devtools/python/python3/python-3.3-multilib.patch
+++ b/meta/recipes-devtools/python/python3/python-3.3-multilib.patch
@@ -138,6 +138,15 @@ Index: Python-3.5.2/Modules/getpath.c
138 138
139 /* Get file status. Encode the path to the locale encoding. */ 139 /* Get file status. Encode the path to the locale encoding. */
140 140
141@@ -494,7 +502,7 @@ calculate_path(void)
142 _pythonpath = Py_DecodeLocale(PYTHONPATH, NULL);
143 _prefix = Py_DecodeLocale(PREFIX, NULL);
144 _exec_prefix = Py_DecodeLocale(EXEC_PREFIX, NULL);
145- lib_python = Py_DecodeLocale("lib/python" VERSION, NULL);
146+ lib_python = Py_DecodeLocale(LIB_PYTHON, NULL);
147
148 if (!_pythonpath || !_prefix || !_exec_prefix || !lib_python) {
149 Py_FatalError(
141Index: Python-3.5.2/Python/getplatform.c 150Index: Python-3.5.2/Python/getplatform.c
142=================================================================== 151===================================================================
143--- Python-3.5.2.orig/Python/getplatform.c 152--- Python-3.5.2.orig/Python/getplatform.c
@@ -185,7 +194,7 @@ Index: Python-3.5.2/setup.py
185=================================================================== 194===================================================================
186--- Python-3.5.2.orig/setup.py 195--- Python-3.5.2.orig/setup.py
187+++ Python-3.5.2/setup.py 196+++ Python-3.5.2/setup.py
188@@ -492,7 +492,7 @@ class PyBuildExt(build_ext): 197@@ -495,7 +495,7 @@ class PyBuildExt(build_ext):
189 # directories (i.e. '.' and 'Include') must be first. See issue 198 # directories (i.e. '.' and 'Include') must be first. See issue
190 # 10520. 199 # 10520.
191 if not cross_compiling: 200 if not cross_compiling:
@@ -194,7 +203,7 @@ Index: Python-3.5.2/setup.py
194 add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') 203 add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
195 # only change this for cross builds for 3.3, issues on Mageia 204 # only change this for cross builds for 3.3, issues on Mageia
196 if cross_compiling: 205 if cross_compiling:
197@@ -550,8 +550,7 @@ class PyBuildExt(build_ext): 206@@ -553,8 +553,7 @@ class PyBuildExt(build_ext):
198 # be assumed that no additional -I,-L directives are needed. 207 # be assumed that no additional -I,-L directives are needed.
199 if not cross_compiling: 208 if not cross_compiling:
200 lib_dirs = self.compiler.library_dirs + [ 209 lib_dirs = self.compiler.library_dirs + [
@@ -204,7 +213,7 @@ Index: Python-3.5.2/setup.py
204 ] 213 ]
205 inc_dirs = self.compiler.include_dirs + ['/usr/include'] 214 inc_dirs = self.compiler.include_dirs + ['/usr/include']
206 else: 215 else:
207@@ -743,11 +742,11 @@ class PyBuildExt(build_ext): 216@@ -746,11 +745,11 @@ class PyBuildExt(build_ext):
208 elif curses_library: 217 elif curses_library:
209 readline_libs.append(curses_library) 218 readline_libs.append(curses_library)
210 elif self.compiler.find_library_file(lib_dirs + 219 elif self.compiler.find_library_file(lib_dirs +
@@ -268,7 +277,7 @@ Index: Python-3.5.2/configure.ac
268=================================================================== 277===================================================================
269--- Python-3.5.2.orig/configure.ac 278--- Python-3.5.2.orig/configure.ac
270+++ Python-3.5.2/configure.ac 279+++ Python-3.5.2/configure.ac
271@@ -876,6 +876,41 @@ PLATDIR=plat-$MACHDEP 280@@ -883,6 +883,41 @@ PLATDIR=plat-$MACHDEP
272 AC_SUBST(PLATDIR) 281 AC_SUBST(PLATDIR)
273 AC_SUBST(PLATFORM_TRIPLET) 282 AC_SUBST(PLATFORM_TRIPLET)
274 283