[OE-core] [OE-Core][PATCH] {python, python3}-native: fix TypeError
Changhyeok Bae
changhyeok.bae at lge.com
Mon Jun 15 06:48:56 UTC 2015
ping
-----Original Message-----
From: Changhyeok Bae [mailto:changhyeok.bae at lge.com]
Sent: Tuesday, June 09, 2015 2:08 PM
To: openembedded-core at lists.openembedded.org
Cc: Changhyeok Bae
Subject: [OE-Core][PATCH] {python,python3}-native: fix TypeError
g-ir-core in meta-gir is building with python-native.
When the g-ir-core(v1.42.0) is building, following error is occurred.
Error in g-ir-core:
EXEC_PREFIX = os.path.normpath(sys.exec_prefix).replace(
os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
| TypeError: expected a character buffer object
Signed-off-by: Changhyeok Bae <changhyeok.bae at lge.com>
---
...2-distutils-prefix-is-inside-staging-area.patch | 4 ++--
.../recipes-devtools/python/python-native_2.7.9.bb | 2 +-
.../python/python3-native_3.4.3.bb | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git
a/meta/recipes-devtools/python/python-native/12-distutils-prefix-is-inside-s
taging-area.patch
b/meta/recipes-devtools/python/python-native/12-distutils-prefix-is-inside-s
taging-area.patch
index f89aaff..b9cc4d9 100644
---
a/meta/recipes-devtools/python/python-native/12-distutils-prefix-is-inside-s
taging-area.patch
+++ b/meta/recipes-devtools/python/python-native/12-distutils-prefix-is-
+++ inside-staging-area.patch
@@ -12,8 +12,8 @@ Upstream-Status: Inappropriate [embedded specific]
# These are needed in a couple of spots, so just compute them once.
-PREFIX = os.path.normpath(sys.prefix)
-EXEC_PREFIX = os.path.normpath(sys.exec_prefix)
-+PREFIX = os.path.normpath(sys.prefix).replace( os.getenv("BUILD_SYS"),
-+os.getenv("HOST_SYS") ) EXEC_PREFIX =
-+os.path.normpath(sys.exec_prefix).replace( os.getenv("BUILD_SYS"),
-+os.getenv("HOST_SYS") )
++PREFIX = os.path.normpath(sys.prefix).replace(
++str(os.getenv("BUILD_SYS")), str(os.getenv("HOST_SYS")) ) EXEC_PREFIX
++= os.path.normpath(sys.exec_prefix).replace(
++str(os.getenv("BUILD_SYS")), str(os.getenv("HOST_SYS")) )
# Path to the base directory of the project. On Windows the binary may
# live in project/PCBuild9. If we're dealing with an x64 Windows build,
diff --git a/meta/recipes-devtools/python/python-native_2.7.9.bb
b/meta/recipes-devtools/python/python-native_2.7.9.bb
index 34f5c29..5be7bb9 100644
--- a/meta/recipes-devtools/python/python-native_2.7.9.bb
+++ b/meta/recipes-devtools/python/python-native_2.7.9.bb
@@ -2,7 +2,7 @@ require python.inc
EXTRANATIVEPATH += "bzip2-native"
DEPENDS = "openssl-native bzip2-replacement-native zlib-native
readline-native sqlite3-native"
-PR = "${INC_PR}.1"
+PR = "${INC_PR}.2"
SRC_URI += "\
file://05-enable-ctypes-cross-build.patch \ diff --git
a/meta/recipes-devtools/python/python3-native_3.4.3.bb
b/meta/recipes-devtools/python/python3-native_3.4.3.bb
index 464ff05..105c0c9 100644
--- a/meta/recipes-devtools/python/python3-native_3.4.3.bb
+++ b/meta/recipes-devtools/python/python3-native_3.4.3.bb
@@ -1,6 +1,6 @@
require recipes-devtools/python/python.inc
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
PYTHON_MAJMIN = "3.4"
DISTRO_SRC_URI ?= "file://sitecustomize.py"
DISTRO_SRC_URI_linuxstdbase = ""
--
1.7.9.5
More information about the Openembedded-core
mailing list