[oe-commits] : python-native: sync with poky

OE GIT Trial gittrial at amethyst.openembedded.net
Thu Oct 2 11:58:33 UTC 2008


Module: OE.dev
Branch: org.openembedded.dev
Commit: ff1a94109340f81433c8f584eccd0e4ab5c25a2c
URL:    http://gitweb.openembedded.net//OE.dev.git/?a=commit;h=ff1a94109340f81433c8f584eccd0e4ab5c25a2c

Author:  <koen at openembedded.org>
Date:   Thu Oct  2 11:17:40 2008 +0000

python-native: sync with poky

---

 .../python/python-native-2.5.1/fix-staging.patch   |   38 ++++++++++++++++++++
 packages/python/python-native_2.5.1.bb             |    8 +++--
 2 files changed, 43 insertions(+), 3 deletions(-)

diff --git a/packages/python/python-native-2.5.1/fix-staging.patch b/packages/python/python-native-2.5.1/fix-staging.patch
new file mode 100644
index 0000000..087c813
--- /dev/null
+++ b/packages/python/python-native-2.5.1/fix-staging.patch
@@ -0,0 +1,38 @@
+---
+ Lib/distutils/sysconfig.py |   10 ++++++++--
+ 1 file changed, 8 insertions(+), 2 deletions(-)
+
+--- Python-2.5.1.orig/Lib/distutils/sysconfig.py
++++ Python-2.5.1/Lib/distutils/sysconfig.py
+@@ -52,11 +52,14 @@ def get_python_inc(plat_specific=0, pref
+ 
+     If 'prefix' is supplied, use it instead of sys.prefix or
+     sys.exec_prefix -- i.e., ignore 'plat_specific'.
+     """
+     if prefix is None:
+-        prefix = plat_specific and EXEC_PREFIX or PREFIX
++        if plat_specific:
++            prefix = plat_specific and os.environ['STAGING_INCDIR'].rstrip('include')
++        else:
++            prefix = plat_specific and EXEC_PREFIX or PREFIX
+     if os.name == "posix":
+         if python_build:
+             base = os.path.dirname(os.path.abspath(sys.executable))
+             if plat_specific:
+                 inc_dir = base
+@@ -94,11 +97,14 @@ def get_python_lib(plat_specific=0, stan
+ 
+     If 'prefix' is supplied, use it instead of sys.prefix or
+     sys.exec_prefix -- i.e., ignore 'plat_specific'.
+     """
+     if prefix is None:
+-        prefix = plat_specific and EXEC_PREFIX or PREFIX
++        if plat_specific:
++            prefix = plat_specific and os.environ['STAGING_LIBDIR'].rstrip('lib')
++        else:
++            prefix = plat_specific and EXEC_PREFIX or PREFIX
+ 
+     if os.name == "posix":
+         libpython = os.path.join(prefix,
+                                  "lib", "python" + get_python_version())
+         if standard_lib:
diff --git a/packages/python/python-native_2.5.1.bb b/packages/python/python-native_2.5.1.bb
index 3f58d36..d43cb52 100644
--- a/packages/python/python-native_2.5.1.bb
+++ b/packages/python/python-native_2.5.1.bb
@@ -1,10 +1,10 @@
 DESCRIPTION = "The Python Programming Language"
 HOMEPAGE = "http://www.python.org"
 LICENSE = "PSF"
+DEPENDS = "openssl-native bzip2-full-native"
 SECTION = "devel/python"
 PRIORITY = "optional"
-DEPENDS = ""
-PR = "ml2"
+PR = "ml5"
 
 EXCLUDE_FROM_WORLD = "1"
 
@@ -15,6 +15,7 @@ SRC_URI = "\
   file://dont-modify-shebang-line.patch;patch=1 \
   file://default-is-optimized.patch;patch=1 \
   file://catchup-with-swig.patch;patch=1 \
+  file://fix-staging.patch;patch=1 \
 "
 S = "${WORKDIR}/Python-${PV}"
 
@@ -25,7 +26,8 @@ exec_prefix = "${STAGING_DIR_NATIVE}/${layout_exec_prefix}"
 
 EXTRA_OECONF = "--with-threads --with-pymalloc --with-cyclic-gc \
                 --without-cxx --with-signal-module --with-wctype-functions"
-EXTRA_OEMAKE = 'BUILD_SYS="" HOST_SYS=""'
+EXTRA_OEMAKE = 'BUILD_SYS="" HOST_SYS="" STAGING_LIBDIR=${STAGING_LIBDIR} \
+		STAGING_INCDIR=${STAGING_INCDIR}'
 
 do_stage_append() {
 	install -m 0755 Parser/pgen ${STAGING_BINDIR_NATIVE}/





More information about the Openembedded-commits mailing list