diff options
Diffstat (limited to 'meta/recipes-devtools/python/python3/fix_for_using_different_libdir.patch')
-rw-r--r-- | meta/recipes-devtools/python/python3/fix_for_using_different_libdir.patch | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3/fix_for_using_different_libdir.patch b/meta/recipes-devtools/python/python3/fix_for_using_different_libdir.patch new file mode 100644 index 0000000000..cd1a978eb3 --- /dev/null +++ b/meta/recipes-devtools/python/python3/fix_for_using_different_libdir.patch | |||
@@ -0,0 +1,54 @@ | |||
1 | Upstream-Status: Inappropriate [Embedded specific] | ||
2 | |||
3 | This patch fixes issuing with different libdir like lib64. | ||
4 | This patch makes the native python binary modules findable | ||
5 | in the install process of the host python. | ||
6 | |||
7 | Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com> | ||
8 | Date: 2012/03/14 | ||
9 | |||
10 | Updated for python 2.7.3 | ||
11 | Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com> | ||
12 | Date: 2012/05/01 | ||
13 | |||
14 | Index: Python-3.3.0rc2/Lib/sysconfig.py | ||
15 | =================================================================== | ||
16 | --- Python-3.3.0rc2.orig/Lib/sysconfig.py 2012-09-20 22:50:11.000000000 -0700 | ||
17 | +++ Python-3.3.0rc2/Lib/sysconfig.py 2012-09-20 22:53:01.561123396 -0700 | ||
18 | @@ -21,9 +21,9 @@ | ||
19 | |||
20 | _INSTALL_SCHEMES = { | ||
21 | 'posix_prefix': { | ||
22 | - 'stdlib': '{installed_base}/'+sys.lib+'/python{py_version_short}', | ||
23 | + 'stdlib': '{base}/'+sys.lib+'/python{py_version_short}', | ||
24 | 'platstdlib': '{platbase}/'+sys.lib+'/python{py_version_short}', | ||
25 | - 'purelib': '{base}/lib/python{py_version_short}/site-packages', | ||
26 | + 'purelib': '{base}/'+sys.lib+'/python{py_version_short}/site-packages', | ||
27 | 'platlib': '{platbase}/'+sys.lib+'/python{py_version_short}/site-packages', | ||
28 | 'include': | ||
29 | '{installed_base}/include/python{py_version_short}{abiflags}', | ||
30 | @@ -83,7 +83,7 @@ | ||
31 | 'posix_user': { | ||
32 | 'stdlib': '{userbase}/'+sys.lib+'/python{py_version_short}', | ||
33 | 'platstdlib': '{userbase}/'+sys.lib+'/python{py_version_short}', | ||
34 | - 'purelib': '{userbase}/lib/python{py_version_short}/site-packages', | ||
35 | + 'purelib': '{userbase}/'+sys.lib+'/python{py_version_short}/site-packages', | ||
36 | 'platlib': '{userbase}/'+sys.lib+'/python{py_version_short}/site-packages', | ||
37 | 'include': '{userbase}/include/python{py_version_short}', | ||
38 | 'scripts': '{userbase}/bin', | ||
39 | Index: Python-3.3.0rc2/Makefile.pre.in | ||
40 | =================================================================== | ||
41 | --- Python-3.3.0rc2.orig/Makefile.pre.in 2012-09-20 22:50:11.000000000 -0700 | ||
42 | +++ Python-3.3.0rc2/Makefile.pre.in 2012-09-20 22:50:54.245123997 -0700 | ||
43 | @@ -1080,9 +1080,9 @@ | ||
44 | $(INSTALL_DATA) $(srcdir)/Modules/xxmodule.c \ | ||
45 | $(DESTDIR)$(LIBDEST)/distutils/tests ; \ | ||
46 | fi | ||
47 | - -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ | ||
48 | + -PYTHONPATH=$(DESTDIR)$(LIBDEST):${CROSSPYTHONPATH} $(RUNSHARED) \ | ||
49 | $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/Grammar.txt | ||
50 | - -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ | ||
51 | + -PYTHONPATH=$(DESTDIR)$(LIBDEST):${CROSSPYTHONPATH} $(RUNSHARED) \ | ||
52 | $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/PatternGrammar.txt | ||
53 | |||
54 | # Create the PLATDIR source directory, if one wasn't distributed.. | ||