]> code.ossystems Code Review - openembedded-core.git/commit
python3: fix do_configure check platform triplet error
authorHongxu Jia <hongxu.jia@windriver.com>
Fri, 11 Mar 2016 07:40:22 +0000 (02:40 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 12 Mar 2016 22:11:19 +0000 (22:11 +0000)
commitcda0ef61d37357fed1daa22f6a59ef9f906fcada
tree769bc356ff9b9afaa497d9e4f394b9d36b4b9e12
parenta3df0aa78af1c2fecf847e87cc480fd2ed9afe89
python3: fix do_configure check platform triplet error

For p1022ds bsp, the MULTIARCH is powerpc-linux-gnuspev1 and
python3 did not recognize the extra 'v1' which caused python3
configure error for the platform triplet.

Q:Why Python3 check platform triplet?

A:Under Linux, GNU/KFreeBSD and the Hurd, C extensions now include
the architecture triplet in the extension name, to make it easy to
test builds for different ABIs in the same working tree.

vim config.log
...
EXT_SUFFIX='.cpython-35m-powerpc-linux-gnuspe.so'
...

Here is the generated C extensions which take platform triplet into account.
...
|image/usr/lib/python3.5/lib-dynload/_datetime.cpython-35m-powerpc-linux-gnuspe.so
...

https://bugs.python.org/issue22980
https://www.python.org/dev/peps/pep-3149/
https://bugs.python.org/review/22980/patch/14593/54808

[YOCTO #9226]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/python/python3/tweak-MULTIARCH-for-powerpc-linux-gnuspe.patch [new file with mode: 0644]
meta/recipes-devtools/python/python3_3.5.1.bb