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/sysroot-include-headers.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/sysroot-include-headers.patch')
-rw-r--r-- | meta/recipes-devtools/python/python3/sysroot-include-headers.patch | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/meta/recipes-devtools/python/python3/sysroot-include-headers.patch b/meta/recipes-devtools/python/python3/sysroot-include-headers.patch deleted file mode 100644 index 785b5567f2..0000000000 --- a/meta/recipes-devtools/python/python3/sysroot-include-headers.patch +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | Dont search hardcoded paths, we might be doing a cross-build | ||
2 | Use '=' in-front to let compiler append sysroot, if it can | ||
3 | |||
4 | Should fix things like | ||
5 | |||
6 | configure:6972: arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8 -DNDEBUG -fno-inline -D__SOFTFP__ --sysroot=/build/v2013.06/build/tmp-angstrom_v2013_06-eglibc/sysroots/beaglebone -c -O2 -pipe -g -feliminate-unused-debug-types -I/usr/include/ncursesw conftest.c >&5 | ||
7 | cc1: warning: include location "/usr/include/ncursesw" is unsafe for cross-compilation [-Wpoison-system-directories] | ||
8 | |||
9 | |||
10 | Signed-off-by: Khem Raj | ||
11 | Upstream-Status: Pending | ||
12 | |||
13 | |||
14 | Index: Python-3.3.2/setup.py | ||
15 | =================================================================== | ||
16 | --- Python-3.3.2.orig/setup.py 2013-07-30 01:30:48.000000000 -0700 | ||
17 | +++ Python-3.3.2/setup.py 2013-07-30 01:41:11.697862723 -0700 | ||
18 | @@ -1210,7 +1210,7 @@ | ||
19 | panel_library = 'panel' | ||
20 | if curses_library == 'ncursesw': | ||
21 | curses_defines.append(('HAVE_NCURSESW', '1')) | ||
22 | - curses_includes.append('/usr/include/ncursesw') | ||
23 | + curses_includes.append('=/usr/include/ncursesw') | ||
24 | # Bug 1464056: If _curses.so links with ncursesw, | ||
25 | # _curses_panel.so must link with panelw. | ||
26 | panel_library = 'panelw' | ||
27 | @@ -1819,7 +1819,7 @@ | ||
28 | if host_platform == 'darwin': | ||
29 | # OS X 10.5 comes with libffi.dylib; the include files are | ||
30 | # in /usr/include/ffi | ||
31 | - inc_dirs.append('/usr/include/ffi') | ||
32 | + inc_dirs.append('=/usr/include/ffi') | ||
33 | |||
34 | ffi_inc = [sysconfig.get_config_var("LIBFFI_INCLUDEDIR")] | ||
35 | if not ffi_inc or ffi_inc[0] == '': | ||