summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/python/python-native/12-distutils-prefix-is-inside-staging-area.patch15
-rw-r--r--meta/recipes-devtools/python/python-native_2.6.6.bb2
2 files changed, 12 insertions, 5 deletions
diff --git a/meta/recipes-devtools/python/python-native/12-distutils-prefix-is-inside-staging-area.patch b/meta/recipes-devtools/python/python-native/12-distutils-prefix-is-inside-staging-area.patch
index 9532eb3ad9..8e721fe002 100644
--- a/meta/recipes-devtools/python/python-native/12-distutils-prefix-is-inside-staging-area.patch
+++ b/meta/recipes-devtools/python/python-native/12-distutils-prefix-is-inside-staging-area.patch
@@ -30,19 +30,26 @@ Index: Python-2.6.6/Lib/distutils/sysconfig.py
30 30
31 if os.name == "posix": 31 if os.name == "posix":
32 if python_build: 32 if python_build:
33@@ -116,7 +119,10 @@ def get_python_lib(plat_specific=0, stan 33@@ -115,12 +118,16 @@ def get_python_lib(plat_specific=0, stan
34 If 'prefix' is supplied, use it instead of sys.prefix or
34 sys.exec_prefix -- i.e., ignore 'plat_specific'. 35 sys.exec_prefix -- i.e., ignore 'plat_specific'.
35 """ 36 """
37+ lib_basename = os.getenv("libdir").split('/')[-1]
36 if prefix is None: 38 if prefix is None:
37- prefix = plat_specific and EXEC_PREFIX or PREFIX 39- prefix = plat_specific and EXEC_PREFIX or PREFIX
38+ if plat_specific: 40+ if plat_specific:
39+ prefix = plat_specific and os.environ['STAGING_LIBDIR'].rstrip('lib') 41+ prefix = plat_specific and os.environ['STAGING_LIBDIR'].rstrip(lib_basename)
40+ else: 42+ else:
41+ prefix = plat_specific and EXEC_PREFIX or PREFIX 43+ prefix = plat_specific and EXEC_PREFIX or PREFIX
42 44
43 if os.name == "posix": 45 if os.name == "posix":
44 libpython = os.path.join(prefix, 46 libpython = os.path.join(prefix,
45@@ -216,7 +222,7 @@ def get_config_h_filename(): 47- "lib", "python" + get_python_version())
48+ lib_basename, "python" + get_python_version())
49 if standard_lib:
50 return libpython
51 else:
52@@ -216,7 +223,7 @@ def get_config_h_filename():
46 else: 53 else:
47 # The name of the config.h file changed in 2.2 54 # The name of the config.h file changed in 2.2
48 config_h = 'pyconfig.h' 55 config_h = 'pyconfig.h'
@@ -51,7 +58,7 @@ Index: Python-2.6.6/Lib/distutils/sysconfig.py
51 58
52 59
53 def get_makefile_filename(): 60 def get_makefile_filename():
54@@ -225,7 +231,7 @@ def get_makefile_filename(): 61@@ -225,7 +232,7 @@ def get_makefile_filename():
55 return os.path.join(os.path.dirname(os.path.realpath(sys.executable)), 62 return os.path.join(os.path.dirname(os.path.realpath(sys.executable)),
56 "Makefile") 63 "Makefile")
57 lib_dir = get_python_lib(plat_specific=1, standard_lib=1) 64 lib_dir = get_python_lib(plat_specific=1, standard_lib=1)
diff --git a/meta/recipes-devtools/python/python-native_2.6.6.bb b/meta/recipes-devtools/python/python-native_2.6.6.bb
index 0f9ae10e5a..fa943f4633 100644
--- a/meta/recipes-devtools/python/python-native_2.6.6.bb
+++ b/meta/recipes-devtools/python/python-native_2.6.6.bb
@@ -1,6 +1,6 @@
1require python.inc 1require python.inc
2DEPENDS = "openssl-native bzip2-full-native zlib-native readline-native sqlite3-native" 2DEPENDS = "openssl-native bzip2-full-native zlib-native readline-native sqlite3-native"
3PR = "${INC_PR}.1" 3PR = "${INC_PR}.2"
4 4
5LIC_FILES_CHKSUM = "file://LICENSE;md5=38fdd546420fab09ac6bd3d8a1c83eb6" 5LIC_FILES_CHKSUM = "file://LICENSE;md5=38fdd546420fab09ac6bd3d8a1c83eb6"
6 6