summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python/fix_for_using_different_libdir.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/python/python/fix_for_using_different_libdir.patch')
-rw-r--r--meta/recipes-devtools/python/python/fix_for_using_different_libdir.patch30
1 files changed, 17 insertions, 13 deletions
diff --git a/meta/recipes-devtools/python/python/fix_for_using_different_libdir.patch b/meta/recipes-devtools/python/python/fix_for_using_different_libdir.patch
index e8f19a24d8..50d3915425 100644
--- a/meta/recipes-devtools/python/python/fix_for_using_different_libdir.patch
+++ b/meta/recipes-devtools/python/python/fix_for_using_different_libdir.patch
@@ -7,10 +7,14 @@ in the install process of the host python.
7Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com> 7Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
8Date: 2012/03/14 8Date: 2012/03/14
9 9
10Index: Python-2.7.2/Lib/sysconfig.py 10Updated for python 2.7.3
11Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
12Date: 2012/05/01
13
14Index: Python-2.7.3/Lib/sysconfig.py
11=================================================================== 15===================================================================
12--- Python-2.7.2.orig/Lib/sysconfig.py 16--- Python-2.7.3.orig/Lib/sysconfig.py
13+++ Python-2.7.2/Lib/sysconfig.py 17+++ Python-2.7.3/Lib/sysconfig.py
14@@ -7,10 +7,10 @@ from os.path import pardir, realpath 18@@ -7,10 +7,10 @@ from os.path import pardir, realpath
15 19
16 _INSTALL_SCHEMES = { 20 _INSTALL_SCHEMES = {
@@ -41,14 +45,14 @@ Index: Python-2.7.2/Lib/sysconfig.py
41 'include': '{userbase}/include/python{py_version_short}', 45 'include': '{userbase}/include/python{py_version_short}',
42 'scripts': '{userbase}/bin', 46 'scripts': '{userbase}/bin',
43 'data' : '{userbase}', 47 'data' : '{userbase}',
44Index: Python-2.7.2/Makefile.pre.in 48Index: Python-2.7.3/Makefile.pre.in
45=================================================================== 49===================================================================
46--- Python-2.7.2.orig/Makefile.pre.in 50--- Python-2.7.3.orig/Makefile.pre.in
47+++ Python-2.7.2/Makefile.pre.in 51+++ Python-2.7.3/Makefile.pre.in
48@@ -928,25 +928,25 @@ libinstall: build_all $(srcdir)/Lib/$(PL 52@@ -941,25 +941,25 @@ libinstall: build_all $(srcdir)/Lib/$(PL
49 done; \ 53 $(INSTALL_DATA) $(srcdir)/Modules/xxmodule.c \
50 done 54 $(DESTDIR)$(LIBDEST)/distutils/tests ; \
51 $(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt 55 fi
52- PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ 56- PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
53+ PYTHONPATH=$(DESTDIR)$(LIBDEST):${CROSSPYTHONPATH} $(RUNSHARED) \ 57+ PYTHONPATH=$(DESTDIR)$(LIBDEST):${CROSSPYTHONPATH} $(RUNSHARED) \
54 $(HOSTPYTHON) -Wi -tt $(DESTDIR)$(LIBDEST)/compileall.py \ 58 $(HOSTPYTHON) -Wi -tt $(DESTDIR)$(LIBDEST)/compileall.py \
@@ -56,7 +60,7 @@ Index: Python-2.7.2/Makefile.pre.in
56 -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \ 60 -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
57 $(DESTDIR)$(LIBDEST) 61 $(DESTDIR)$(LIBDEST)
58- PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ 62- PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
59+ PYTHONPATH=$(DESTDIR)$(LIBDEST):${CROSSPYTHONPATH} $(RUNSHARED) \ 63+ PYTHONPATH=$(DESTDIR)$(LIBDEST):${CROSSPYTHONPATH} $(RUNSHARED) \
60 $(HOSTPYTHON) -Wi -tt -O $(DESTDIR)$(LIBDEST)/compileall.py \ 64 $(HOSTPYTHON) -Wi -tt -O $(DESTDIR)$(LIBDEST)/compileall.py \
61 -d $(LIBDEST) -f \ 65 -d $(LIBDEST) -f \
62 -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \ 66 -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
@@ -67,12 +71,12 @@ Index: Python-2.7.2/Makefile.pre.in
67 -d $(LIBDEST)/site-packages -f \ 71 -d $(LIBDEST)/site-packages -f \
68 -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages 72 -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
69- -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ 73- -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
70+ -PYTHONPATH=$(DESTDIR)$(LIBDEST):${CROSSPYTHONPATH} $(RUNSHARED) \ 74+ -PYTHONPATH=$(DESTDIR)$(LIBDEST):${CROSSPYTHONPATH} $(RUNSHARED) \
71 $(HOSTPYTHON) -Wi -t -O $(DESTDIR)$(LIBDEST)/compileall.py \ 75 $(HOSTPYTHON) -Wi -t -O $(DESTDIR)$(LIBDEST)/compileall.py \
72 -d $(LIBDEST)/site-packages -f \ 76 -d $(LIBDEST)/site-packages -f \
73 -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages 77 -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
74- -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ 78- -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
75+ -PYTHONPATH=$(DESTDIR)$(LIBDEST):${CROSSPYTHONPATH} $(RUNSHARED) \ 79+ -PYTHONPATH=$(DESTDIR)$(LIBDEST):${CROSSPYTHONPATH} $(RUNSHARED) \
76 $(HOSTPYTHON) -Wi -t -c "import lib2to3.pygram, lib2to3.patcomp;lib2to3.patcomp.PatternCompiler()" 80 $(HOSTPYTHON) -Wi -t -c "import lib2to3.pygram, lib2to3.patcomp;lib2to3.patcomp.PatternCompiler()"
77 81
78 # Create the PLATDIR source directory, if one wasn't distributed.. 82 # Create the PLATDIR source directory, if one wasn't distributed..