diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2019-02-06 17:26:34 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-02-08 10:57:19 +0000 |
commit | e2c3247c233876ab090c9ce3d5325a6d46ab350f (patch) | |
tree | cf38957a3510be612cde924f6184a5251b968a43 /meta/recipes-devtools/python/python3/tweak-MULTIARCH-for-powerpc-linux-gnuspe.patch | |
parent | cd6c61a26177296e24b442e2eda1514b5f931c0a (diff) | |
download | poky-e2c3247c233876ab090c9ce3d5325a6d46ab350f.tar.gz |
python3: upgrade to 3.7.2
I took the same approach as the recent perl upgrade: write recipe from scratch,
taking the pieces from the old recipe only when they were proven to be necessary.
The pgo, manifest and ptest features are all preserved.
New features:
- native and target recipes are now unified into one recipe
- check_build_completeness.py runs right after do_compile() and verifies that
all optional modules have been built (a notorious source of regressions)
- a new approach to sysconfig.py and distutils/sysconfig.py returning values
appropriate for native or target builds: we copy the configuration file to a
separate folder, add that folder to sys.path (through environment variable
that differs between native and target builds), and point python to the file
through another environment variable.
There were a few other patches where it was difficult to decide if the patch
is still relevant, and how to test that it works correctly; please add those
as-needed by testing the new python.
(From OE-Core rev: 02714c105426b0d687620913c1a7401b386428b6)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python3/tweak-MULTIARCH-for-powerpc-linux-gnuspe.patch')
-rw-r--r-- | meta/recipes-devtools/python/python3/tweak-MULTIARCH-for-powerpc-linux-gnuspe.patch | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/meta/recipes-devtools/python/python3/tweak-MULTIARCH-for-powerpc-linux-gnuspe.patch b/meta/recipes-devtools/python/python3/tweak-MULTIARCH-for-powerpc-linux-gnuspe.patch deleted file mode 100644 index 8d037278bd..0000000000 --- a/meta/recipes-devtools/python/python3/tweak-MULTIARCH-for-powerpc-linux-gnuspe.patch +++ /dev/null | |||
@@ -1,52 +0,0 @@ | |||
1 | From 5d6509313198ec9b686cad50b002212e4344004b Mon Sep 17 00:00:00 2001 | ||
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
3 | Date: Fri, 11 Mar 2016 01:15:45 -0500 | ||
4 | Subject: [PATCH] configure.ac: tweak MULTIARCH for powerpc-linux-gnuspe | ||
5 | |||
6 | For p1022ds bsp, the MULTIARCH is powerpc-linux-gnuspev1 and | ||
7 | python3 did not recognize the extra 'v1' which caused python3 | ||
8 | configure error for the platform triplet. | ||
9 | |||
10 | Q:Why Python3 check platform triplet? | ||
11 | |||
12 | A:Under Linux, GNU/KFreeBSD and the Hurd, C extensions now include | ||
13 | the architecture triplet in the extension name, to make it easy to | ||
14 | test builds for different ABIs in the same working tree. | ||
15 | |||
16 | Here is the generated C extensions which take platform triplet into account. | ||
17 | ... | ||
18 | |image/usr/lib/python3.5/lib-dynload/_datetime.cpython-35m-powerpc-linux-gnuspe.so | ||
19 | ... | ||
20 | |||
21 | https://bugs.python.org/issue22980 | ||
22 | https://www.python.org/dev/peps/pep-3149/ | ||
23 | https://bugs.python.org/review/22980/patch/14593/54808 | ||
24 | |||
25 | Upstream-Status: Pending | ||
26 | |||
27 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
28 | --- | ||
29 | configure.ac | 7 +++++++ | ||
30 | 1 file changed, 7 insertions(+) | ||
31 | |||
32 | diff --git a/configure.ac b/configure.ac | ||
33 | index 9eb3d22..c34a9a0 100644 | ||
34 | --- a/configure.ac | ||
35 | +++ b/configure.ac | ||
36 | @@ -724,6 +724,13 @@ fi | ||
37 | |||
38 | |||
39 | MULTIARCH=$($CC --print-multiarch 2>/dev/null) | ||
40 | + | ||
41 | +# Tweak MULTIARCH | ||
42 | +if test x$MULTIARCH = xpowerpc-linux-gnuspev1 | ||
43 | +then | ||
44 | + MULTIARCH="powerpc-linux-gnuspe" | ||
45 | +fi | ||
46 | + | ||
47 | AC_SUBST(MULTIARCH) | ||
48 | |||
49 | AC_MSG_CHECKING([for the platform triplet based on compiler characteristics]) | ||
50 | -- | ||
51 | 1.9.1 | ||
52 | |||