[OE-core] [PATCH 0/3] Fixes for python3 and dbus-ptest
kai.kang at windriver.com
kai.kang at windriver.com
Tue Nov 1 07:39:41 UTC 2016
From: Kai Kang <kai.kang at windriver.com>
1
when multilib is enabled, python3 fails to start:
root at qemux86-64:~# python3
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ImportError: No module named 'encodings'
Current thread 0x00007f4d9b268700 (most recent call first):
Aborted
It is library path issue, and fix it. Then check sys.path are right:
root at qemux86-64:~# python3
Python 3.5.2 (default, Nov 1 2016, 15:32:42)
[GCC 6.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/usr/lib64/python35.zip', '/usr/lib64/python3.5', '/usr/lib64/python3.5/plat-linux', '/usr/lib64/python3.5/lib-dynload']
>>>
2
Only 4 cases PASS of dbus-ptest. With the fixes, all ptests cases PASS on qemux86-64.
And for qemuarm, only one case fails:
./run-ptest: line 10: 283 Aborted ./$i ./test/data DBUS_TEST_HOMEDIR=./test > /dev/null
FAIL: test/test-refs
It is a multi-threads issue, and need more work to fix it.
---
The following changes since commit 003b053498aea91fdb8c5418d0d8bbda7b23dbc0:
boost: fix the SRC_URI to point to an actual release, and not a master snapshot (2016-10-31 14:23:12 +0000)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib kangkai/python3_and_dbus
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kangkai/python3_and_dbus
Kai Kang (3):
dbus-test: correct paths in service and conf files
dbus: update build options when enable ptest
python3: fix library search path
meta/recipes-core/dbus/dbus-test_1.10.10.bb | 3 ++
meta/recipes-core/dbus/dbus_1.10.10.bb | 4 +-
...t-python3-lib-pathes-for-multilib-support.patch | 49 ++++++++++++++++++++++
.../python/python3/python-3.3-multilib.patch | 13 +++---
meta/recipes-devtools/python/python3_3.5.2.bb | 1 +
5 files changed, 61 insertions(+), 9 deletions(-)
create mode 100644 meta/recipes-devtools/python/python3/correct-python3-lib-pathes-for-multilib-support.patch
--
2.10.1
More information about the Openembedded-core
mailing list