python(3): fix optional modules
cover python(3): fix optional modules
Hello,
This set of patches aim at fixing the problem pointed out by Danomi Manchego in:
https://patchwork.ozlabs.org/patch/691109/
https://patchwork.ozlabs.org/patch/691108/
Essentially, what Danomi discovered is that if you have a configuration like this:
BR2_PACKAGE_READLINE=y
BR2_PACKAGE_PYTHON=y
# BR2_PACKAGE_PYTHON_READLINE is not set
Then you still get the readline Python extension built. This is because all what BR2_PACKAGE_PYTHON_READLINE does is bring the "readline" package as a dependency, but never disables the readline extension.
This commit fixes that by adding more --{enable,disable} options in python and python3.
The other patches are related preparation commits or related fixes.
Thanks!
Thomas
Thomas Petazzoni (6):
python: move to Git formatted patches
python: make hashlib and readline modules really optional
python: fix disabling the SSL module
python3: refresh Git formatted patches
python3: explicitly disable OpenSSL support for the target
python3: make readline, gzip, bzip2 and xz really optional
...p.py-do-not-add-invalid-header-locations.patch} | 18 ++-
...Fix-get_python_inc-for-cross-compilation.patch} | 18 ++-
...he-install-location-of-_sysconfigdata.py.patch} | 38 ++++---
...compilation-of-.pyc-and-.pyo-conditional.patch} | 29 ++++-
...st-getaddrinfo-test-for-cross-compilation.patch | 29 +++++
...infrastructure-to-be-able-to-disable-ext.patch} | 41 +++++--
...brary-header-paths-for-cross-compilation.patch} | 50 +++++----
...-t-look-in-usr-lib-termcap-for-libraries.patch} | 18 ++-
... 0009-Fix-python-config-for-cross-builds.patch} | 121 ++++++++++++---------
...-Remove-the-python-symlink-install-rules.patch} | 25 +++--
....patch => 0011-Don-t-add-multiarch-paths.patch} | 17 ++-
...tch => 0012-Abort-on-failed-module-build.patch} | 17 ++-
...build-when-threads-are-not-used-availabl.patch} | 17 ++-
...nd.patch => 0014-Serial-ioctl-workaround.patch} | 15 ++-
...t-the-shebang-of-Python-scripts-for-cros.patch} | 18 ++-
...n-to-disable-installation-of-test-module.patch} | 27 +++--
...h => 0017-Add-an-option-to-disable-pydoc.patch} | 37 ++++---
...=> 0018-Add-an-option-to-disable-lib2to3.patch} | 39 ++++---
...Add-option-to-disable-the-sqlite3-module.patch} | 65 ++++++-----
...0-Add-an-option-to-disable-the-tk-module.patch} | 31 +++---
...d-an-option-to-disable-the-curses-module.patch} | 27 +++--
...h => 0022-Add-an-option-to-disable-expat.patch} | 35 +++---
...0023-Add-an-option-to-disable-CJK-codecs.patch} | 17 ++-
...tch => 0024-Add-an-option-to-disable-NIS.patch} | 17 ++-
...025-Add-an-option-to-disable-unicodedata.patch} | 17 ++-
...h => 0026-Add-an-option-to-disable-bsddb.patch} | 31 +++---
...-Add-an-option-to-disable-the-ssl-module.patch} | 19 ++--
...-Add-an-option-to-disable-the-bz2-module.patch} | 16 ++-
...Add-an-option-to-disable-the-zlib-module.patch} | 16 ++-
...h => 0030-Do-not-install-the-idle-editor.patch} | 26 +++--
...option-to-disable-the-ossaudiodev-module.patch} | 15 ++-
...-Add-option-to-disable-the-hashlib-module.patch | 30 +++++
...-Add-an-option-to-disable-readline-module.patch | 30 +++++
package/python/006-cross-compile-getaddrinfo.patch | 13 ---
package/python/018-fix-add-gcc-paths-logic.patch | 27 -----
package/python/python.mk | 4 +
...up.py-do-not-add-invalid-header-locations.patch | 8 +-
...the-install-location-of-_sysconfigdata.py.patch | 22 ++--
...3-Make-the-build-of-pyc-files-conditional.patch | 14 +--
...gy_getaddrinfo-configure-test-when-cross-.patch | 8 +-
...ructure-to-disable-the-build-of-certain-e.patch | 16 +--
...006-distutils-sysconfig-use-sysconfigdata.patch | 4 +-
...ibrary-header-paths-for-cross-compilation.patch | 6 +-
...n-t-look-in-usr-lib-termcap-for-libraries.patch | 8 +-
.../python3/0009-Don-t-add-multiarch-paths.patch | 8 +-
.../0010-Abort-on-failed-module-build.patch | 8 +-
package/python3/0011-Serial-ioctl-workaround.patch | 4 +-
...st-the-shebang-of-Python-scripts-for-cros.patch | 4 +-
...-config.sh.in-ensure-sed-invocations-only.patch | 4 +-
...-harcode-invalid-path-to-ncursesw-headers.patch | 8 +-
...stem-locale-and-set-to-default-when-addin.patch | 8 +-
...0016-Add-importlib-fix-for-PEP-3147-issue.patch | 12 +-
...on-to-disable-installation-of-test-module.patch | 14 +--
.../0018-Add-an-option-to-disable-pydoc.patch | 22 ++--
.../0019-Add-an-option-to-disable-lib2to3.patch | 24 ++--
...-Add-option-to-disable-the-sqlite3-module.patch | 16 +--
...21-Add-an-option-to-disable-the-tk-module.patch | 16 +--
...dd-an-option-to-disable-the-curses-module.patch | 14 +--
.../0023-Add-an-option-to-disable-expat.patch | 18 +--
.../0024-Add-an-option-to-disable-CJK-codecs.patch | 8 +-
.../0025-Add-an-option-to-disable-NIS.patch | 8 +-
...0026-Add-an-option-to-disable-unicodedata.patch | 8 +-
.../0027-Add-an-option-to-disable-IDLE.patch | 20 ++--
.../0028-Add-an-option-to-disable-decimal.patch | 12 +-
...-option-to-disable-the-ossaudiodev-module.patch | 8 +-
...N_FOR_BUILD-and-FREEZE_IMPORTLIB_FOR_BUIL.patch | 20 ++--
...Add-an-option-to-disable-openssl-support.patch} | 9 +-
...-an-option-to-disable-the-readline-module.patch | 30 +++++
...ions-to-disable-zlib-bzip2-and-xz-modules.patch | 42 +++++++
package/python3/python3.mk | 10 ++
70 files changed, 917 insertions(+), 534 deletions(-)
rename package/python/{001-remove-host-header-path.patch => 0001-setup.py-do-not-add-invalid-header-locations.patch} (78%)
rename package/python/{002-fix-get-python-inc.patch => 0002-Fix-get_python_inc-for-cross-compilation.patch} (76%)
rename package/python/{004-sysconfigdata-install-location.patch => 0003-Change-the-install-location-of-_sysconfigdata.py.patch} (72%)
rename package/python/{005-pyc-pyo-conditional.patch => 0004-Make-the-compilation-of-.pyc-and-.pyo-conditional.patch} (68%)
create mode 100644 package/python/0005-Adjust-getaddrinfo-test-for-cross-compilation.patch
rename package/python/{007-disable-extensions.patch => 0006-Add-minimal-infrastructure-to-be-able-to-disable-ext.patch} (58%)
rename package/python/{008-distutils-use-python-sysroot.patch => 0007-Adjust-library-header-paths-for-cross-compilation.patch} (75%)
rename package/python/{009-no-termcap-host-path.patch => 0008-Don-t-look-in-usr-lib-termcap-for-libraries.patch} (67%)
rename package/python/{010-fix-python-config.patch => 0009-Fix-python-config-for-cross-builds.patch} (81%)
rename package/python/{011-remove-python-symlink.patch => 0010-Remove-the-python-symlink-install-rules.patch} (65%)
rename package/python/{013-dont-add-multiarch-path.patch => 0011-Don-t-add-multiarch-paths.patch} (68%)
rename package/python/{014-abort-on-failed-modules.patch => 0012-Abort-on-failed-module-build.patch} (57%)
rename package/python/{015-fix-sqlite-without-threads.patch => 0013-sqlite3-fix-build-when-threads-are-not-used-availabl.patch} (72%)
rename package/python/{016-serial-ioctl-workaround.patch => 0014-Serial-ioctl-workaround.patch} (66%)
rename package/python/{017-distutils-scripts-dont-adjust-shebang.patch => 0015-Do-not-adjust-the-shebang-of-Python-scripts-for-cros.patch} (61%)
rename package/python/{100-optional-test-modules.patch => 0016-Add-an-option-to-disable-installation-of-test-module.patch} (79%)
rename package/python/{101-optional-pydoc.patch => 0017-Add-an-option-to-disable-pydoc.patch} (70%)
rename package/python/{102-optional-2to3.patch => 0018-Add-an-option-to-disable-lib2to3.patch} (71%)
rename package/python/{103-optional-sqlite.patch => 0019-Add-option-to-disable-the-sqlite3-module.patch} (59%)
rename package/python/{104-optional-tk.patch => 0020-Add-an-option-to-disable-the-tk-module.patch} (65%)
rename package/python/{105-optional-curses.patch => 0021-Add-an-option-to-disable-the-curses-module.patch} (62%)
rename package/python/{106-optional-expat.patch => 0022-Add-an-option-to-disable-expat.patch} (75%)
rename package/python/{107-optional-codecs-cjk.patch => 0023-Add-an-option-to-disable-CJK-codecs.patch} (58%)
rename package/python/{108-optional-nis.patch => 0024-Add-an-option-to-disable-NIS.patch} (63%)
rename package/python/{109-optional-unicodedata.patch => 0025-Add-an-option-to-disable-unicodedata.patch} (58%)
rename package/python/{110-optional-db.patch => 0026-Add-an-option-to-disable-bsddb.patch} (72%)
rename package/python/{111-optional-ssl.patch => 0027-Add-an-option-to-disable-the-ssl-module.patch} (50%)
rename package/python/{112-optional-bzip2.patch => 0028-Add-an-option-to-disable-the-bz2-module.patch} (58%)
rename package/python/{113-optional-zlib.patch => 0029-Add-an-option-to-disable-the-zlib-module.patch} (58%)
rename package/python/{114-remove-idle-editor.patch => 0030-Do-not-install-the-idle-editor.patch} (63%)
rename package/python/{115-optional-ossaudiodev.patch => 0031-Add-an-option-to-disable-the-ossaudiodev-module.patch} (65%)
create mode 100644 package/python/0032-Add-option-to-disable-the-hashlib-module.patch
create mode 100644 package/python/0033-Add-an-option-to-disable-readline-module.patch
delete mode 100644 package/python/006-cross-compile-getaddrinfo.patch
delete mode 100644 package/python/018-fix-add-gcc-paths-logic.patch
rename package/python3/{0031-Add-an-option-to-disable-openssl.patch => 0031-Add-an-option-to-disable-openssl-support.patch} (73%)
create mode 100644 package/python3/0032-Add-an-option-to-disable-the-readline-module.patch
create mode 100644 package/python3/0033-Add-options-to-disable-zlib-bzip2-and-xz-modules.patchSignature · 1 line
2.7.4
PATCH 1/6 python: move to Git formatted patches
Now that the cpython project has a nice Github repository, with tags, it's much nicer to handle the stack of Python patches with Git. The python3 package patches had already been converted, but not the python package patches. Therefore, this commit does the move.
There is no functional change, only reformatting of the patches.
---
...p.py-do-not-add-invalid-header-locations.patch} | 18 ++-
...Fix-get_python_inc-for-cross-compilation.patch} | 18 ++-
...he-install-location-of-_sysconfigdata.py.patch} | 38 ++++---
...compilation-of-.pyc-and-.pyo-conditional.patch} | 29 ++++-
...st-getaddrinfo-test-for-cross-compilation.patch | 29 +++++
...infrastructure-to-be-able-to-disable-ext.patch} | 41 +++++--
...brary-header-paths-for-cross-compilation.patch} | 50 +++++----
...-t-look-in-usr-lib-termcap-for-libraries.patch} | 18 ++-
... 0009-Fix-python-config-for-cross-builds.patch} | 121 ++++++++++++---------
...-Remove-the-python-symlink-install-rules.patch} | 25 +++--
....patch => 0011-Don-t-add-multiarch-paths.patch} | 17 ++-
...tch => 0012-Abort-on-failed-module-build.patch} | 17 ++-
...build-when-threads-are-not-used-availabl.patch} | 17 ++-
...nd.patch => 0014-Serial-ioctl-workaround.patch} | 15 ++-
...t-the-shebang-of-Python-scripts-for-cros.patch} | 18 ++-
...n-to-disable-installation-of-test-module.patch} | 27 +++--
...h => 0017-Add-an-option-to-disable-pydoc.patch} | 37 ++++---
...=> 0018-Add-an-option-to-disable-lib2to3.patch} | 39 ++++---
...Add-option-to-disable-the-sqlite3-module.patch} | 65 ++++++-----
...0-Add-an-option-to-disable-the-tk-module.patch} | 31 +++---
...d-an-option-to-disable-the-curses-module.patch} | 27 +++--
...h => 0022-Add-an-option-to-disable-expat.patch} | 35 +++---
...0023-Add-an-option-to-disable-CJK-codecs.patch} | 17 ++-
...tch => 0024-Add-an-option-to-disable-NIS.patch} | 17 ++-
...025-Add-an-option-to-disable-unicodedata.patch} | 17 ++-
...h => 0026-Add-an-option-to-disable-bsddb.patch} | 31 +++---
...-Add-an-option-to-disable-the-ssl-module.patch} | 17 ++-
...-Add-an-option-to-disable-the-bz2-module.patch} | 16 ++-
...Add-an-option-to-disable-the-zlib-module.patch} | 16 ++-
...h => 0030-Do-not-install-the-idle-editor.patch} | 26 +++--
...option-to-disable-the-ossaudiodev-module.patch} | 15 ++-
package/python/006-cross-compile-getaddrinfo.patch | 13 ---
package/python/018-fix-add-gcc-paths-logic.patch | 27 -----
33 files changed, 587 insertions(+), 357 deletions(-)
rename package/python/{001-remove-host-header-path.patch => 0001-setup.py-do-not-add-invalid-header-locations.patch} (78%)
rename package/python/{002-fix-get-python-inc.patch => 0002-Fix-get_python_inc-for-cross-compilation.patch} (76%)
rename package/python/{004-sysconfigdata-install-location.patch => 0003-Change-the-install-location-of-_sysconfigdata.py.patch} (72%)
rename package/python/{005-pyc-pyo-conditional.patch => 0004-Make-the-compilation-of-.pyc-and-.pyo-conditional.patch} (68%)
create mode 100644 package/python/0005-Adjust-getaddrinfo-test-for-cross-compilation.patch
rename package/python/{007-disable-extensions.patch => 0006-Add-minimal-infrastructure-to-be-able-to-disable-ext.patch} (58%)
rename package/python/{008-distutils-use-python-sysroot.patch => 0007-Adjust-library-header-paths-for-cross-compilation.patch} (75%)
rename package/python/{009-no-termcap-host-path.patch => 0008-Don-t-look-in-usr-lib-termcap-for-libraries.patch} (67%)
rename package/python/{010-fix-python-config.patch => 0009-Fix-python-config-for-cross-builds.patch} (81%)
rename package/python/{011-remove-python-symlink.patch => 0010-Remove-the-python-symlink-install-rules.patch} (65%)
rename package/python/{013-dont-add-multiarch-path.patch => 0011-Don-t-add-multiarch-paths.patch} (68%)
rename package/python/{014-abort-on-failed-modules.patch => 0012-Abort-on-failed-module-build.patch} (57%)
rename package/python/{015-fix-sqlite-without-threads.patch => 0013-sqlite3-fix-build-when-threads-are-not-used-availabl.patch} (72%)
rename package/python/{016-serial-ioctl-workaround.patch => 0014-Serial-ioctl-workaround.patch} (66%)
rename package/python/{017-distutils-scripts-dont-adjust-shebang.patch => 0015-Do-not-adjust-the-shebang-of-Python-scripts-for-cros.patch} (61%)
rename package/python/{100-optional-test-modules.patch => 0016-Add-an-option-to-disable-installation-of-test-module.patch} (79%)
rename package/python/{101-optional-pydoc.patch => 0017-Add-an-option-to-disable-pydoc.patch} (70%)
rename package/python/{102-optional-2to3.patch => 0018-Add-an-option-to-disable-lib2to3.patch} (71%)
rename package/python/{103-optional-sqlite.patch => 0019-Add-option-to-disable-the-sqlite3-module.patch} (59%)
rename package/python/{104-optional-tk.patch => 0020-Add-an-option-to-disable-the-tk-module.patch} (65%)
rename package/python/{105-optional-curses.patch => 0021-Add-an-option-to-disable-the-curses-module.patch} (62%)
rename package/python/{106-optional-expat.patch => 0022-Add-an-option-to-disable-expat.patch} (75%)
rename package/python/{107-optional-codecs-cjk.patch => 0023-Add-an-option-to-disable-CJK-codecs.patch} (58%)
rename package/python/{108-optional-nis.patch => 0024-Add-an-option-to-disable-NIS.patch} (63%)
rename package/python/{109-optional-unicodedata.patch => 0025-Add-an-option-to-disable-unicodedata.patch} (58%)
rename package/python/{110-optional-db.patch => 0026-Add-an-option-to-disable-bsddb.patch} (72%)
rename package/python/{111-optional-ssl.patch => 0027-Add-an-option-to-disable-the-ssl-module.patch} (57%)
rename package/python/{112-optional-bzip2.patch => 0028-Add-an-option-to-disable-the-bz2-module.patch} (58%)
rename package/python/{113-optional-zlib.patch => 0029-Add-an-option-to-disable-the-zlib-module.patch} (58%)
rename package/python/{114-remove-idle-editor.patch => 0030-Do-not-install-the-idle-editor.patch} (63%)
rename package/python/{115-optional-ossaudiodev.patch => 0031-Add-an-option-to-disable-the-ossaudiodev-module.patch} (65%)
delete mode 100644 package/python/006-cross-compile-getaddrinfo.patch
delete mode 100644 package/python/018-fix-add-gcc-paths-logic.patchpackage/python/0001-setup.py-do-not-add-invalid-header-locations.patch renamed from package/python/001-remove-host-header-path.patch +14 -4
@@ -1,4 +1,7 @@ -setup.py: do not add invalid header locations +From 3dc31a435b67de2ba3dd3457f0c939e20b58e8de Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:17:06 +0100 +Subject: [PATCH] setup.py: do not add invalid header locations This piece of code incorrectly adds /usr/include to self.compiler.include_dirs, and results in the following invalid
@@ -17,11 +20,15 @@ cc1: warning: include location "/usr/include" is unsafe for cross-compilation [- [...] Signed-off-by: Thomas Petazzoni <[email protected]> -Index: b/setup.py -=================================================================== +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 54054c2..64001e2 100644 --- a/setup.py +++ b/setup.py -@@ -480,7 +480,7 @@ +@@ -496,7 +496,7 @@ class PyBuildExt(build_ext): for directory in reversed(options.dirs): add_dir_to_list(dir_list, directory)
@@ -30,3 +37,6 @@ Index: b/setup.py and not sysconfig.get_config_var('PYTHONFRAMEWORK'): # OSX note: Don't add LIBDIR and INCLUDEDIR to building a framework # (PYTHONFRAMEWORK is set) to avoid # linking problems when +-- +2.7.4 +
package/python/0002-Fix-get_python_inc-for-cross-compilation.patch renamed from package/python/002-fix-get-python-inc.patch +14 -4
@@ -1,4 +1,7 @@ -Fix get_python_inc() for cross-compilation +From 367ee7d103cf9f670c3925d555edf6f6a5b9d8d5 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:17:25 +0100 +Subject: [PATCH] Fix get_python_inc() for cross-compilation When we are cross compiling, doing os.path.dirname(sys.executable) to get the build directory is incorrect, because we're executing the host
@@ -21,11 +24,15 @@ This patch allows to fix the incorrectly added to the header paths. Signed-off-by: Thomas Petazzoni <[email protected]> -Index: b/Lib/distutils/sysconfig.py -=================================================================== +--- + Lib/distutils/sysconfig.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py +index de7da1d..d72b6e5 100644 --- a/Lib/distutils/sysconfig.py +++ b/Lib/distutils/sysconfig.py -@@ -79,7 +79,7 @@ +@@ -79,7 +79,7 @@ def get_python_inc(plat_specific=0, prefix=None): if os.name == "posix": if python_build:
@@ -34,3 +41,6 @@ Index: b/Lib/distutils/sysconfig.py if plat_specific: # python.h is located in the buildir inc_dir = buildir +-- +2.7.4 +
package/python/0003-Change-the-install-location-of-_sysconfigdata.py.patch renamed from package/python/004-sysconfigdata-install-location.patch +24 -14
@@ -1,4 +1,7 @@ -Change the install location of _sysconfigdata.py +From 0ef0d4ddd3f2261e381f22061a9a451dfbb1dc9e Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:17:59 +0100 +Subject: [PATCH] Change the install location of _sysconfigdata.py The _sysconfigdata.py module contains definitions that are needed when building Python modules. In cross-compilation mode, when building
@@ -16,12 +19,16 @@ this directory gets added to the PYTHONPATH of the host Python interpreter when building Python modules for the target. Signed-off-by: Thomas Petazzoni <[email protected]> +--- + Makefile.pre.in | 12 ++++++++++-- + configure.ac | 2 +- + 2 files changed, 11 insertions(+), 3 deletions(-) -Index: b/Makefile.pre.in -=================================================================== +diff --git a/Makefile.pre.in b/Makefile.pre.in +index e288964..5367df7 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -462,6 +462,9 @@ +@@ -529,6 +529,9 @@ pybuilddir.txt: $(BUILDPYTHON) rm -f ./pybuilddir.txt ; \ exit 1 ; \ fi
@@ -29,9 +36,9 @@ Index: b/Makefile.pre.in + mkdir -p `cat pysysconfigdatadir.txt` + cp `cat pybuilddir.txt`/_sysconfigdata.py `cat pysysconfigdatadir.txt` - # Build the shared modules - # Under GNU make, MAKEFLAGS are sorted and normalized; the 's' for -@@ -1002,7 +1005,7 @@ + # This is shared by the math and cmath modules + Modules/_math.o: Modules/_math.c Modules/_math.h +@@ -1080,7 +1083,7 @@ libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c else true; \ fi; \ done
@@ -40,7 +47,7 @@ Index: b/Makefile.pre.in do \ if test -x $$i; then \ $(INSTALL_SCRIPT) $$i $(DESTDIR)$(LIBDEST); \ -@@ -1012,6 +1015,11 @@ +@@ -1090,6 +1093,11 @@ libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c echo $(INSTALL_DATA) $$i $(LIBDEST); \ fi; \ done
@@ -52,7 +59,7 @@ Index: b/Makefile.pre.in @for d in $(LIBSUBDIRS); \ do \ a=$(srcdir)/Lib/$$d; \ -@@ -1337,7 +1345,7 @@ +@@ -1418,7 +1426,7 @@ distclean: clobber Modules/Setup Modules/Setup.local Modules/Setup.config \ Modules/ld_so_aix Modules/python.exp Misc/python.pc -rm -f python*-gdb.py
@@ -61,16 +68,19 @@ Index: b/Makefile.pre.in # Issue #28258: set LC_ALL to avoid issues with Estonian locale. # Expansion is performed here by shell (spawned by make) itself before # arguments are passed to find. So LC_ALL=C must be set as a separate -Index: b/configure.ac -=================================================================== +diff --git a/configure.ac b/configure.ac +index 1273465..5f89797 100644 --- a/configure.ac +++ b/configure.ac -@@ -33,7 +33,7 @@ +@@ -33,7 +33,7 @@ if test "$cross_compiling" = yes; then AC_MSG_ERROR([python$PACKAGE_VERSION interpreter not found]) fi AC_MSG_RESULT($interp) - PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib:$(srcdir)/Lib/$(PLATDIR) '$interp + PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pysysconfigdatadir.txt && echo $(abs_builddir)/`cat pysysconfigdatadir.txt`:)$(srcdir)/Lib:$(srcdir)/Lib/$(PLATDIR) '$interp fi - elif test "$cross_compiling" = maybe; then - AC_MSG_ERROR([Cross compiling required --host=HOST-TUPLE and --build=ARCH]) + # Used to comment out stuff for rebuilding generated files + GENERATED_COMMENT='#' +-- +2.7.4 +
package/python/0004-Make-the-compilation-of-.pyc-and-.pyo-conditional.patch renamed from package/python/005-pyc-pyo-conditional.patch +23 -6
@@ -1,8 +1,22 @@ -Index: b/Makefile.pre.in -=================================================================== +From 168e6c594e80395583de5ab0d082be119b2061fc Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:18:57 +0100 +Subject: [PATCH] Make the compilation of .pyc and .pyo conditional + +This commit adds --{enable,disable}-{pyc,pyo} options to enable/disable +the compilation of pyc/pyo files. + +Signed-off-by: Thomas Petazzoni <[email protected]> +--- + Makefile.pre.in | 8 ++++++++ + configure.ac | 11 +++++++++++ + 2 files changed, 19 insertions(+) + +diff --git a/Makefile.pre.in b/Makefile.pre.in +index 5367df7..96fc718 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -1050,24 +1050,32 @@ +@@ -1128,24 +1128,32 @@ libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c $(INSTALL_DATA) $(srcdir)/Modules/xxmodule.c \ $(DESTDIR)$(LIBDEST)/distutils/tests ; \ fi
@@ -35,11 +49,11 @@ Index: b/Makefile.pre.in -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/Grammar.txt -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ -Index: b/configure.ac -=================================================================== +diff --git a/configure.ac b/configure.ac +index 5f89797..4aafc82 100644 --- a/configure.ac +++ b/configure.ac -@@ -739,6 +739,17 @@ +@@ -759,6 +759,17 @@ SunOS*) ;; esac
@@ -57,3 +71,6 @@ Index: b/configure.ac AC_SUBST(LIBRARY) AC_MSG_CHECKING(LIBRARY) +-- +2.7.4 +
package/python/0005-Adjust-getaddrinfo-test-for-cross-compilation.patch new file +29 -0
@@ -0,0 +1,29 @@ +From 2d971c3cdca9ecc55f2da8aba12ca89e1a66519a Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:19:47 +0100 +Subject: [PATCH] Adjust getaddrinfo() test for cross-compilation + +The getaddrinfo() test in configure.ac uses AC_RUN_IFELSE(), which isn't +cross-compilation friendly. + +Signed-off-by: Thomas Petazzoni <[email protected]> +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 4aafc82..63e6918 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -3527,7 +3527,7 @@ fi + + AC_MSG_RESULT($ac_cv_buggy_getaddrinfo) + +-if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes ++if test $have_getaddrinfo = no || test "$cross_compiling" != "yes" -a "$ac_cv_buggy_getaddrinfo" = yes + then + if test $ipv6 = yes + then +-- +2.7.4 +
package/python/0006-Add-minimal-infrastructure-to-be-able-to-disable-ext.patch renamed from package/python/007-disable-extensions.patch +30 -11
77 lines not on this page · raw message
package/python/0007-Adjust-library-header-paths-for-cross-compilation.patch renamed from package/python/008-distutils-use-python-sysroot.patch +30 -20
65 lines not on this page · raw message
package/python/0008-Don-t-look-in-usr-lib-termcap-for-libraries.patch renamed from package/python/009-no-termcap-host-path.patch +13 -5
@@ -1,13 +1,18 @@ -Don't look in /usr/lib/termcap for libraries +From 87b627d8845e67fd798449b414bece04f18bd450 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:22:40 +0100 +Subject: [PATCH] Don't look in /usr/lib/termcap for libraries Signed-off-by: Thomas Petazzoni <[email protected]> +--- + setup.py | 5 +---- + 1 file changed, 1 insertion(+), 4 deletions(-) - -Index: b/setup.py -=================================================================== +diff --git a/setup.py b/setup.py +index 3b51c0a..fa32532 100644 --- a/setup.py +++ b/setup.py -@@ -764,12 +764,9 @@ +@@ -784,12 +784,9 @@ class PyBuildExt(build_ext): pass # Issue 7384: Already linked against curses or tinfo. elif curses_library: readline_libs.append(curses_library)
@@ -21,3 +26,6 @@ Index: b/setup.py extra_link_args=readline_extra_link_args, libraries=readline_libs) ) else: +-- +2.7.4 +
package/python/0009-Fix-python-config-for-cross-builds.patch renamed from package/python/010-fix-python-config.patch +69 -52
165 lines not on this page · raw message
package/python/0010-Remove-the-python-symlink-install-rules.patch renamed from package/python/011-remove-python-symlink.patch +17 -8
@@ -1,18 +1,24 @@ -Remove the python symlink install rules. +From bddfcbb8a4c011ca2fe471f7a4124cd64b5b0f00 Mon Sep 17 00:00:00 2001 +From: Samuel Martin <[email protected]> +Date: Tue, 7 Mar 2017 22:23:58 +0100 +Subject: [PATCH] Remove the python symlink install rules -The python symlink installation will be handled by Buildroot itself, because -Buildroot needs to control to what python interpreter (python2 or python3) the -python symlink points to. +The python symlink installation will be handled by Buildroot itself, +because Buildroot needs to control to what python interpreter (python2 +or python3) the python symlink points to. Signed-off-by: Samuel Martin <[email protected]> +[Bernd: rebased against version 2.7.12.] Signed-off-by: Bernd Kuhls <[email protected]> -(rebased against version 2.7.12) +--- + Makefile.pre.in | 7 ------- + 1 file changed, 7 deletions(-) -Index: b/Makefile.pre.in -=================================================================== +diff --git a/Makefile.pre.in b/Makefile.pre.in +index beb0837..dedcf61 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -974,17 +974,10 @@ +@@ -968,17 +968,10 @@ bininstall: altbininstall echo "Creating directory $(LIBPC)"; \ $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(LIBPC); \ fi
@@ -30,3 +36,6 @@ Index: b/Makefile.pre.in -test -d $(DESTDIR)$(LIBPC) || $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(LIBPC) -rm -f $(DESTDIR)$(LIBPC)/python2.pc (cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(VERSION).pc python2.pc) +-- +2.7.4 +
package/python/0011-Don-t-add-multiarch-paths.patch renamed from package/python/013-dont-add-multiarch-path.patch +13 -4
@@ -1,4 +1,7 @@ -Don't add multiarch paths +From 50a243a9c90f95e9248ac720e42e802b5922ab90 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:24:28 +0100 +Subject: [PATCH] Don't add multiarch paths The add_multiarch_paths() function leads, in certain build environments, to the addition of host header paths to the CFLAGS,
@@ -9,12 +12,15 @@ cross-compiling. Investigation done by David <[email protected]>. Signed-off-by: Thomas Petazzoni <[email protected]> +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) -Index: b/setup.py -=================================================================== +diff --git a/setup.py b/setup.py +index fa32532..0b9ea57 100644 --- a/setup.py +++ b/setup.py -@@ -445,9 +445,9 @@ +@@ -461,9 +461,9 @@ class PyBuildExt(build_ext): if not cross_compiling: add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
@@ -25,3 +31,6 @@ Index: b/setup.py # Add paths specified in the environment variables LDFLAGS and # CPPFLAGS for header and library files. +-- +2.7.4 +
package/python/0012-Abort-on-failed-module-build.patch renamed from package/python/014-abort-on-failed-modules.patch +13 -4
@@ -1,4 +1,7 @@ -Abort on failed module build +From a131e2ff219872d97eef6585117bd2f8ff9e310d Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:24:48 +0100 +Subject: [PATCH] Abort on failed module build When building a Python module fails, the setup.py script currently doesn't exit with an error, and simply continues. This is not a really
@@ -6,12 +9,15 @@ nice behavior, so this patch changes setup.py to abort with an error, so that the build issue is clearly noticeable. Signed-off-by: Thomas Petazzoni <[email protected]> +--- + setup.py | 1 + + 1 file changed, 1 insertion(+) -Index: b/setup.py -=================================================================== +diff --git a/setup.py b/setup.py +index 0b9ea57..9a5c2b8 100644 --- a/setup.py +++ b/setup.py -@@ -283,6 +283,7 @@ +@@ -299,6 +299,7 @@ class PyBuildExt(build_ext): print "Failed to build these modules:" print_three_column(failed) print
@@ -19,3 +25,6 @@ Index: b/setup.py def build_extension(self, ext): +-- +2.7.4 +
package/python/0013-sqlite3-fix-build-when-threads-are-not-used-availabl.patch renamed from package/python/015-fix-sqlite-without-threads.patch +13 -4
@@ -1,4 +1,7 @@ -sqlite3: fix build when threads are not used/available +From 0f0be88526ece7d2f6ee21c1f59b1546ec6dc7c0 Mon Sep 17 00:00:00 2001 +From: "Yann E. MORIN" <[email protected]> +Date: Tue, 7 Mar 2017 22:25:14 +0100 +Subject: [PATCH] sqlite3: fix build when threads are not used/available When threads are not used/available, a function in the sqlite3 extension ends up with a label at the end:
@@ -34,12 +37,15 @@ Fix that by adding a dummy statement after the label, so that the label is never the last statement of the function. Signed-off-by: "Yann E. MORIN" <[email protected]> +--- + Modules/_sqlite/connection.c | 1 + + 1 file changed, 1 insertion(+) -Index: b/Modules/_sqlite/connection.c -=================================================================== +diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c +index 237d6e4..cdf69ab 100644 --- a/Modules/_sqlite/connection.c +++ b/Modules/_sqlite/connection.c -@@ -786,6 +786,7 @@ +@@ -794,6 +794,7 @@ error: #ifdef WITH_THREAD PyGILState_Release(threadstate); #endif
@@ -47,3 +53,6 @@ Index: b/Modules/_sqlite/connection.c } static void _pysqlite_drop_unused_statement_references(pysqlite_Connection* self) +-- +2.7.4 +
package/python/0014-Serial-ioctl-workaround.patch renamed from package/python/016-serial-ioctl-workaround.patch +12 -3
@@ -1,4 +1,7 @@ -Serial ioctl() workaround +From 22e5a4c5d29ddf0856d7f68f5a613aec00e26168 Mon Sep 17 00:00:00 2001 +From: Baruch Siach <[email protected]> +Date: Tue, 7 Mar 2017 22:25:36 +0100 +Subject: [PATCH] Serial ioctl() workaround The ioctls.h of some architectures (notably xtensa) references structs from linux/serial.h. Make sure to include this header as well.
@@ -8,8 +11,11 @@ but isn't actually referenced in modern kernels. Signed-off-by: Baruch Siach <[email protected]> --- -Index: b/Modules/termios.c -=================================================================== + Modules/termios.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/Modules/termios.c b/Modules/termios.c +index 57f30dc..a8c9855 100644 --- a/Modules/termios.c +++ b/Modules/termios.c @@ -16,7 +16,9 @@
@@ -22,3 +28,6 @@ Index: b/Modules/termios.c /* HP-UX requires that this be included to pick up MDCD, MCTS, MDSR, * MDTR, MRI, and MRTS (appearantly used internally by some things +-- +2.7.4 +
package/python/0015-Do-not-adjust-the-shebang-of-Python-scripts-for-cros.patch renamed from package/python/017-distutils-scripts-dont-adjust-shebang.patch +14 -4
@@ -1,4 +1,8 @@ -Do not adjust the shebang of Python scripts for cross-compilation +From 70049366ddf1fc9084bb02cf4459380976cdf8f7 Mon Sep 17 00:00:00 2001 +From: Christophe Vu-Brugier <[email protected]> +Date: Tue, 7 Mar 2017 22:26:09 +0100 +Subject: [PATCH] Do not adjust the shebang of Python scripts for + cross-compilation The copy_scripts() method in distutils copies the scripts listed in the setup file and adjusts the first line to refer to the current
@@ -9,12 +13,15 @@ This patch modifies copy_scripts() to preserve the shebang when cross-compilation is detected. Signed-off-by: Christophe Vu-Brugier <[email protected]> +--- + Lib/distutils/command/build_scripts.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) -Index: b/Lib/distutils/command/build_scripts.py -=================================================================== +diff --git a/Lib/distutils/command/build_scripts.py b/Lib/distutils/command/build_scripts.py +index 567df65..4922d50 100644 --- a/Lib/distutils/command/build_scripts.py +++ b/Lib/distutils/command/build_scripts.py -@@ -89,7 +89,7 @@ +@@ -89,7 +89,7 @@ class build_scripts (Command): adjust = 1 post_interp = match.group(1) or ''
@@ -23,3 +30,6 @@ Index: b/Lib/distutils/command/build_scripts.py log.info("copying and adjusting %s -> %s", script, self.build_dir) if not self.dry_run: +-- +2.7.4 +
package/python/0016-Add-an-option-to-disable-installation-of-test-module.patch renamed from package/python/100-optional-test-modules.patch +16 -11
@@ -1,21 +1,23 @@ -Add an option to disable installation of test modules +From 0eac7789c0dd4aebe9e69d3c73d0c95e96922ea3 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:27:16 +0100 +Subject: [PATCH] Add an option to disable installation of test modules The Python standard distribution comes with many test modules, that are not necessarly useful on embedded targets. Signed-off-by: Thomas Petazzoni <[email protected]> Signed-off-by: Samuel Martin <[email protected]> - --- - Makefile.pre.in | 40 +++++++++++++++++++++++++++------------- - configure.in | 6 ++++++ - 2 files changed, 33 insertions(+), 13 deletions(-) + Makefile.pre.in | 48 ++++++++++++++++++++++++++++++++---------------- + configure.ac | 6 ++++++ + 2 files changed, 38 insertions(+), 16 deletions(-) -Index: b/Makefile.pre.in -=================================================================== +diff --git a/Makefile.pre.in b/Makefile.pre.in +index dedcf61..280cc4e 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -960,27 +960,43 @@ +@@ -1038,27 +1038,43 @@ PLATMACDIRS= plat-mac plat-mac/Carbon plat-mac/lib-scriptpackages \ plat-mac/lib-scriptpackages/SystemEvents \ plat-mac/lib-scriptpackages/Terminal PLATMACPATH=:plat-mac:plat-mac/lib-scriptpackages
@@ -75,11 +77,11 @@ Index: b/Makefile.pre.in libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c @for i in $(SCRIPTDIR) $(LIBDEST); \ do \ -Index: b/configure.ac -=================================================================== +diff --git a/configure.ac b/configure.ac +index 183a903..a1a35f6 100644 --- a/configure.ac +++ b/configure.ac -@@ -2634,6 +2634,12 @@ +@@ -2806,6 +2806,12 @@ if test "$posix_threads" = "yes"; then fi
@@ -92,3 +94,6 @@ Index: b/configure.ac # Check for enable-ipv6 AH_TEMPLATE(ENABLE_IPV6, [Define if --enable-ipv6 is specified]) AC_MSG_CHECKING([if --enable-ipv6 is specified]) +-- +2.7.4 +
package/python/0017-Add-an-option-to-disable-pydoc.patch renamed from package/python/101-optional-pydoc.patch +21 -16
@@ -1,22 +1,24 @@ -Add an option to disable pydoc +From 52463745b6c46a46a6f2e2bc17983bb3f7bdac6e Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:27:34 +0100 +Subject: [PATCH] Add an option to disable pydoc It removes 0.5 MB of data from the target plus the pydoc script itself. Signed-off-by: Thomas Petazzoni <[email protected]> Signed-off-by: Samuel Martin <[email protected]> - --- - Makefile.pre.in | 6 +++++- - configure.in | 5 +++++ - setup.py | 10 +++++++--- + Makefile.pre.in | 6 +++++- + configure.ac | 5 +++++ + setup.py | 10 +++++++--- 3 files changed, 17 insertions(+), 4 deletions(-) -Index: b/Makefile.pre.in -=================================================================== +diff --git a/Makefile.pre.in b/Makefile.pre.in +index 280cc4e..84d5fc6 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -974,7 +974,7 @@ +@@ -1052,7 +1052,7 @@ LIBSUBDIRS= lib-tk site-packages \ multiprocessing multiprocessing/dummy \ unittest \ lib-old \
@@ -25,7 +27,7 @@ Index: b/Makefile.pre.in TESTSUBDIRS = lib-tk/test lib-tk/test/test_tkinter \ lib-tk/test/test_ttk test test/audiodata test/capath test/data \ -@@ -997,6 +997,10 @@ +@@ -1075,6 +1075,10 @@ ifeq (@TEST_MODULES@,yes) LIBSUBDIRS += $(TESTSUBDIRS) endif
@@ -36,11 +38,11 @@ Index: b/Makefile.pre.in libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c @for i in $(SCRIPTDIR) $(LIBDEST); \ do \ -Index: b/configure.ac -=================================================================== +diff --git a/configure.ac b/configure.ac +index a1a35f6..8bab160 100644 --- a/configure.ac +++ b/configure.ac -@@ -2633,6 +2633,11 @@ +@@ -2805,6 +2805,11 @@ if test "$posix_threads" = "yes"; then AC_CHECK_FUNCS(pthread_atfork) fi
@@ -52,11 +54,11 @@ Index: b/configure.ac AC_SUBST(TEST_MODULES) -Index: b/setup.py -=================================================================== +diff --git a/setup.py b/setup.py +index 9a5c2b8..69771e2 100644 --- a/setup.py +++ b/setup.py -@@ -2211,6 +2211,12 @@ +@@ -2233,6 +2233,12 @@ def main(): # turn off warnings when deprecated modules are imported import warnings warnings.filterwarnings("ignore",category=DeprecationWarning)
@@ -69,7 +71,7 @@ Index: b/setup.py setup(# PyPI Metadata (PEP 301) name = "Python", version = sys.version.split()[0], -@@ -2231,9 +2237,7 @@ +@@ -2253,9 +2259,7 @@ def main(): ext_modules=[Extension('_struct', ['_struct.c'])], # Scripts to install
@@ -80,3 +82,6 @@ Index: b/setup.py ) # --install-platlib +-- +2.7.4 +
package/python/0018-Add-an-option-to-disable-lib2to3.patch renamed from package/python/102-optional-2to3.patch +22 -17
@@ -1,22 +1,24 @@ -Add an option to disable lib2to3 +From d0cf9ebed6d34d820cf594578cf513797fb52772 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:27:49 +0100 +Subject: [PATCH] Add an option to disable lib2to3 lib2to3 is a library to convert Python 2.x code to Python 3.x. As such, it is probably not very useful on embedded system targets. Signed-off-by: Thomas Petazzoni <[email protected]> Signed-off-by: Samuel Martin <[email protected]> - --- - Makefile.pre.in | 24 +++++++++++++++++------- - configure.in | 6 ++++++ - setup.py | 5 +++-- - 3 files changed, 26 insertions(+), 9 deletions(-) + Makefile.pre.in | 11 ++++++++--- + configure.ac | 6 ++++++ + setup.py | 5 +++-- + 3 files changed, 17 insertions(+), 5 deletions(-) -Index: b/Makefile.pre.in -=================================================================== +diff --git a/Makefile.pre.in b/Makefile.pre.in +index 84d5fc6..b2a0490 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -967,7 +967,6 @@ +@@ -1045,7 +1045,6 @@ LIBSUBDIRS= lib-tk site-packages \ json \ sqlite3 \ logging bsddb csv importlib wsgiref \
@@ -24,7 +26,7 @@ Index: b/Makefile.pre.in ctypes ctypes/macholib \ idlelib idlelib/Icons \ distutils distutils/command $(XMLLIBSUBDIRS) \ -@@ -986,8 +985,6 @@ +@@ -1064,8 +1063,6 @@ TESTSUBDIRS = lib-tk/test lib-tk/test/test_tkinter \ json/tests \ sqlite3/test \ bsddb/test \
@@ -33,7 +35,7 @@ Index: b/Makefile.pre.in ctypes/test \ idlelib/idle_test \ distutils/tests \ -@@ -1001,6 +998,14 @@ +@@ -1079,6 +1076,14 @@ ifeq (@PYDOC@,yes) LIBSUBDIRS += pydoc_data endif
@@ -48,11 +50,11 @@ Index: b/Makefile.pre.in libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c @for i in $(SCRIPTDIR) $(LIBDEST); \ do \ -Index: b/configure.ac -=================================================================== +diff --git a/configure.ac b/configure.ac +index 8bab160..270f337 100644 --- a/configure.ac +++ b/configure.ac -@@ -2645,6 +2645,12 @@ +@@ -2817,6 +2817,12 @@ AC_ARG_ENABLE(test-modules, AS_HELP_STRING([--disable-test-modules], [disable test modules]), [ TEST_MODULES="${enableval}" ], [ TEST_MODULES=yes ])
@@ -65,11 +67,11 @@ Index: b/configure.ac # Check for enable-ipv6 AH_TEMPLATE(ENABLE_IPV6, [Define if --enable-ipv6 is specified]) AC_MSG_CHECKING([if --enable-ipv6 is specified]) -Index: b/setup.py -=================================================================== +diff --git a/setup.py b/setup.py +index 69771e2..f51ef8c 100644 --- a/setup.py +++ b/setup.py -@@ -2212,10 +2212,11 @@ +@@ -2234,10 +2234,11 @@ def main(): import warnings warnings.filterwarnings("ignore",category=DeprecationWarning)
@@ -83,3 +85,6 @@ Index: b/setup.py setup(# PyPI Metadata (PEP 301) name = "Python", +-- +2.7.4 +
package/python/0019-Add-option-to-disable-the-sqlite3-module.patch renamed from package/python/103-optional-sqlite.patch +35 -30
90 lines not on this page · raw message
package/python/0020-Add-an-option-to-disable-the-tk-module.patch renamed from package/python/104-optional-tk.patch +18 -13
@@ -1,18 +1,20 @@ -Add an option to disable the tk module +From 05fbe2527b6f87edeef11f288c36bcbaa378ca02 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:28:57 +0100 +Subject: [PATCH] Add an option to disable the tk module Signed-off-by: Thomas Petazzoni <[email protected]> Signed-off-by: Samuel Martin <[email protected]> - --- - Makefile.pre.in | 14 ++++++++++---- - configure.in | 9 +++++++++ - 2 files changed, 19 insertions(+), 4 deletions(-) + Makefile.pre.in | 11 ++++++++--- + configure.ac | 9 +++++++++ + 2 files changed, 17 insertions(+), 3 deletions(-) -Index: b/Makefile.pre.in -=================================================================== +diff --git a/Makefile.pre.in b/Makefile.pre.in +index 974a052..f7f025f 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -960,7 +960,7 @@ +@@ -1038,7 +1038,7 @@ PLATMACDIRS= plat-mac plat-mac/Carbon plat-mac/lib-scriptpackages \ plat-mac/lib-scriptpackages/SystemEvents \ plat-mac/lib-scriptpackages/Terminal PLATMACPATH=:plat-mac:plat-mac/lib-scriptpackages
@@ -21,7 +23,7 @@ Index: b/Makefile.pre.in encodings compiler hotshot \ email email/mime \ ensurepip ensurepip/_bundled \ -@@ -974,8 +974,7 @@ +@@ -1052,8 +1052,7 @@ LIBSUBDIRS= lib-tk site-packages \ lib-old \ curses $(MACHDEPS)
@@ -31,7 +33,7 @@ Index: b/Makefile.pre.in test/cjkencodings test/decimaltestdata test/xmltestdata \ test/imghdrdata \ test/subprocessdata \ -@@ -1009,6 +1008,12 @@ +@@ -1087,6 +1086,12 @@ LIBSUBDIRS += sqlite3 TESTSUBDIRS += sqlite3/test endif
@@ -44,11 +46,11 @@ Index: b/Makefile.pre.in libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c @for i in $(SCRIPTDIR) $(LIBDEST); \ do \ -Index: b/configure.ac -=================================================================== +diff --git a/configure.ac b/configure.ac +index e9e1897..d0f032c 100644 --- a/configure.ac +++ b/configure.ac -@@ -2642,6 +2642,15 @@ +@@ -2814,6 +2814,15 @@ if test "$SQLITE3" = "no" ; then DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _sqlite3" fi
@@ -64,3 +66,6 @@ Index: b/configure.ac AC_SUBST(PYDOC) AC_ARG_ENABLE(pydoc, +-- +2.7.4 +
package/python/0021-Add-an-option-to-disable-the-curses-module.patch renamed from package/python/105-optional-curses.patch +16 -11
@@ -1,18 +1,20 @@ -Add an option to disable the curses module +From dba12f15baad06cc7e17a275201cc022bb6c84f7 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:29:06 +0100 +Subject: [PATCH] Add an option to disable the curses module Signed-off-by: Thomas Petazzoni <[email protected]> Signed-off-by: Samuel Martin <[email protected]> - --- - Makefile.pre.in | 6 +++++- - configure.in | 9 +++++++++ + Makefile.pre.in | 6 +++++- + configure.ac | 9 +++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) -Index: b/Makefile.pre.in -=================================================================== +diff --git a/Makefile.pre.in b/Makefile.pre.in +index f7f025f..bd537d9 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -972,7 +972,7 @@ +@@ -1050,7 +1050,7 @@ LIBSUBDIRS= site-packages \ multiprocessing multiprocessing/dummy \ unittest \ lib-old \
@@ -21,7 +23,7 @@ Index: b/Makefile.pre.in TESTSUBDIRS = test test/audiodata test/capath test/data \ test/cjkencodings test/decimaltestdata test/xmltestdata \ -@@ -1014,6 +1014,10 @@ +@@ -1092,6 +1092,10 @@ TESTSUBDIRS += lib-tk/test lib-tk/test/test_tkinter \ lib-tk/test/test_ttk endif
@@ -32,11 +34,11 @@ Index: b/Makefile.pre.in libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c @for i in $(SCRIPTDIR) $(LIBDEST); \ do \ -Index: b/configure.ac -=================================================================== +diff --git a/configure.ac b/configure.ac +index d0f032c..ab081bc 100644 --- a/configure.ac +++ b/configure.ac -@@ -2651,6 +2651,15 @@ +@@ -2823,6 +2823,15 @@ if test "$TK" = "no"; then DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _tkinter" fi
@@ -52,3 +54,6 @@ Index: b/configure.ac AC_SUBST(PYDOC) AC_ARG_ENABLE(pydoc, +-- +2.7.4 +
package/python/0022-Add-an-option-to-disable-expat.patch renamed from package/python/106-optional-expat.patch +20 -15
@@ -1,4 +1,7 @@ -Add an option to disable expat +From 5f0f30bf342cd2b13f98513c39fd8f17351b1a2f Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:29:20 +0100 +Subject: [PATCH] Add an option to disable expat This patch replaces the existing --with-system-expat option with a --with-expat={system,builtin,none} option, which allows to tell Python
@@ -8,18 +11,17 @@ installation of XML modules). Signed-off-by: Thomas Petazzoni <[email protected]> Signed-off-by: Samuel Martin <[email protected]> - --- - Makefile.pre.in | 6 +++++- - configure.in | 18 +++++++++++++----- - setup.py | 2 +- + Makefile.pre.in | 6 +++++- + configure.ac | 18 +++++++++++++----- + setup.py | 2 +- 3 files changed, 19 insertions(+), 7 deletions(-) -Index: b/Makefile.pre.in -=================================================================== +diff --git a/Makefile.pre.in b/Makefile.pre.in +index bd537d9..e5d0dd7 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -968,7 +968,7 @@ +@@ -1046,7 +1046,7 @@ LIBSUBDIRS= site-packages \ logging bsddb csv importlib wsgiref \ ctypes ctypes/macholib \ idlelib idlelib/Icons \
@@ -28,7 +30,7 @@ Index: b/Makefile.pre.in multiprocessing multiprocessing/dummy \ unittest \ lib-old \ -@@ -1018,6 +1018,10 @@ +@@ -1096,6 +1096,10 @@ ifeq (@CURSES@,yes) LIBSUBDIRS += curses endif
@@ -39,11 +41,11 @@ Index: b/Makefile.pre.in libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c @for i in $(SCRIPTDIR) $(LIBDEST); \ do \ -Index: b/configure.ac -=================================================================== +diff --git a/configure.ac b/configure.ac +index ab081bc..63ee545 100644 --- a/configure.ac +++ b/configure.ac -@@ -2298,13 +2298,21 @@ +@@ -2470,13 +2470,21 @@ PKG_PROG_PKG_CONFIG AC_SUBST(DISABLED_EXTENSIONS) # Check for use of the system expat library
@@ -70,11 +72,11 @@ Index: b/configure.ac # Check for use of the system libffi library AC_MSG_CHECKING(for --with-system-ffi) -Index: b/setup.py -=================================================================== +diff --git a/setup.py b/setup.py +index f51ef8c..c68f6b4 100644 --- a/setup.py +++ b/setup.py -@@ -1463,7 +1463,7 @@ +@@ -1483,7 +1483,7 @@ class PyBuildExt(build_ext): # # More information on Expat can be found at www.libexpat.org. #
@@ -83,3 +85,6 @@ Index: b/setup.py expat_inc = [] define_macros = [] expat_lib = ['expat'] +-- +2.7.4 +
package/python/0023-Add-an-option-to-disable-CJK-codecs.patch renamed from package/python/107-optional-codecs-cjk.patch +11 -6
@@ -1,16 +1,18 @@ -Add an option to disable CJK codecs +From cb848dae763a3f57e31d734d3be6889f660fa0d0 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:29:31 +0100 +Subject: [PATCH] Add an option to disable CJK codecs Signed-off-by: Thomas Petazzoni <[email protected]> - --- - configure.in | 6 ++++++ + configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) -Index: b/configure.ac -=================================================================== +diff --git a/configure.ac b/configure.ac +index 63ee545..6a854ab 100644 --- a/configure.ac +++ b/configure.ac -@@ -2650,6 +2650,12 @@ +@@ -2822,6 +2822,12 @@ if test "$SQLITE3" = "no" ; then DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _sqlite3" fi
@@ -23,3 +25,6 @@ Index: b/configure.ac AC_SUBST(TK) AC_ARG_ENABLE(tk, AS_HELP_STRING([--disable-tk], [disable tk]), +-- +2.7.4 +
package/python/0024-Add-an-option-to-disable-NIS.patch renamed from package/python/108-optional-nis.patch +11 -6
@@ -1,19 +1,21 @@ -Add an option to disable NIS +From 133776d396b8eaf0243484dc990a53576de9685f Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:29:41 +0100 +Subject: [PATCH] Add an option to disable NIS NIS is not necessarily available in uClibc, so we need an option to not compile support for it. Signed-off-by: Thomas Petazzoni <[email protected]> - --- - configure.in | 6 ++++++ + configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) -Index: b/configure.ac -=================================================================== +diff --git a/configure.ac b/configure.ac +index 6a854ab..4c2cbc1 100644 --- a/configure.ac +++ b/configure.ac -@@ -2656,6 +2656,12 @@ +@@ -2828,6 +2828,12 @@ AC_ARG_ENABLE(codecs-cjk, DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _codecs_kr _codecs_jp _codecs_cn _codecs_tw _codecs_hk" fi])
@@ -26,3 +28,6 @@ Index: b/configure.ac AC_SUBST(TK) AC_ARG_ENABLE(tk, AS_HELP_STRING([--disable-tk], [disable tk]), +-- +2.7.4 +
package/python/0025-Add-an-option-to-disable-unicodedata.patch renamed from package/python/109-optional-unicodedata.patch +11 -6
@@ -1,16 +1,18 @@ -Add an option to disable unicodedata +From aa78e3684c0e8f7a5e910e838f9eca2631262048 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:29:52 +0100 +Subject: [PATCH] Add an option to disable unicodedata Signed-off-by: Thomas Petazzoni <[email protected]> - --- - configure.in | 6 ++++++ + configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) -Index: b/configure.ac -=================================================================== +diff --git a/configure.ac b/configure.ac +index 4c2cbc1..09cb3de 100644 --- a/configure.ac +++ b/configure.ac -@@ -2662,6 +2662,12 @@ +@@ -2834,6 +2834,12 @@ AC_ARG_ENABLE(nis, DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} nis" fi])
@@ -23,3 +25,6 @@ Index: b/configure.ac AC_SUBST(TK) AC_ARG_ENABLE(tk, AS_HELP_STRING([--disable-tk], [disable tk]), +-- +2.7.4 +
package/python/0026-Add-an-option-to-disable-bsddb.patch renamed from package/python/110-optional-db.patch +18 -13
@@ -1,4 +1,7 @@ -Add an option to disable bsddb +From cfad2bcae8f572a9422ce5a6adb4caa7c0e521ad Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:30:06 +0100 +Subject: [PATCH] Add an option to disable bsddb bsddb has an external dependency on Berkeley DB. Since we want to be able to build Python without it, this patch adds an option to disable
@@ -6,17 +9,16 @@ the build/installation of this Python module. Signed-off-by: Thomas Petazzoni <[email protected]> Signed-off-by: Samuel Martin <[email protected]> - --- - Makefile.pre.in | 10 ++++++++-- - configure.in | 22 ++++++++++++++++++++++ - 2 files changed, 30 insertions(+), 2 deletions(-) + Makefile.pre.in | 8 ++++++-- + configure.ac | 22 ++++++++++++++++++++++ + 2 files changed, 28 insertions(+), 2 deletions(-) -Index: b/Makefile.pre.in -=================================================================== +diff --git a/Makefile.pre.in b/Makefile.pre.in +index e5d0dd7..2582574 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -965,7 +965,7 @@ +@@ -1043,7 +1043,7 @@ LIBSUBDIRS= site-packages \ email email/mime \ ensurepip ensurepip/_bundled \ json \
@@ -25,7 +27,7 @@ Index: b/Makefile.pre.in ctypes ctypes/macholib \ idlelib idlelib/Icons \ distutils distutils/command \ -@@ -981,7 +981,6 @@ +@@ -1059,7 +1059,6 @@ TESTSUBDIRS = test test/audiodata test/capath test/data \ test/tracedmodules \ email/test email/test/data \ json/tests \
@@ -33,7 +35,7 @@ Index: b/Makefile.pre.in ctypes/test \ idlelib/idle_test \ distutils/tests \ -@@ -1022,6 +1021,11 @@ +@@ -1100,6 +1099,11 @@ ifeq (@EXPAT@,yes) LIBSUBDIRS += $(XMLLIBSUBDIRS) endif
@@ -45,11 +47,11 @@ Index: b/Makefile.pre.in libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c @for i in $(SCRIPTDIR) $(LIBDEST); \ do \ -Index: b/configure.ac -=================================================================== +diff --git a/configure.ac b/configure.ac +index 09cb3de..524614c 100644 --- a/configure.ac +++ b/configure.ac -@@ -2662,6 +2662,28 @@ +@@ -2834,6 +2834,28 @@ AC_ARG_ENABLE(nis, DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} nis" fi])
@@ -78,3 +80,6 @@ Index: b/configure.ac AC_ARG_ENABLE(unicodedata, AS_HELP_STRING([--disable-unicodedata], [disable unicodedata]), [ if test "$enableval" = "no"; then +-- +2.7.4 +
package/python/0027-Add-an-option-to-disable-the-ssl-module.patch renamed from package/python/111-optional-ssl.patch +11 -6
@@ -1,16 +1,18 @@ -Add an option to disable the ssl module +From 45fcf92ec1e89e0afd0bf2bbc7a1008b56135ba3 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:30:22 +0100 +Subject: [PATCH] Add an option to disable the ssl module Signed-off-by: Thomas Petazzoni <[email protected]> - --- - configure.in | 6 ++++++ + configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) -Index: b/configure.ac -=================================================================== +diff --git a/configure.ac b/configure.ac +index 524614c..743707a 100644 --- a/configure.ac +++ b/configure.ac -@@ -2662,6 +2662,12 @@ +@@ -2834,6 +2834,12 @@ AC_ARG_ENABLE(nis, DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} nis" fi])
@@ -23,3 +25,6 @@ Index: b/configure.ac AC_ARG_ENABLE(dbm, AS_HELP_STRING([--disable-dbm], [disable DBM]), [ if test "$enableval" = "no"; then +-- +2.7.4 +
package/python/0028-Add-an-option-to-disable-the-bz2-module.patch renamed from package/python/112-optional-bzip2.patch +11 -5
@@ -1,15 +1,18 @@ -Add an option to disable the bz2 module +From 6b10788fa040442ace100c3a28cbfff29c9db471 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:30:33 +0100 +Subject: [PATCH] Add an option to disable the bz2 module Signed-off-by: Thomas Petazzoni <[email protected]> --- - configure.in | 6 ++++++ + configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) -Index: b/configure.ac -=================================================================== +diff --git a/configure.ac b/configure.ac +index 743707a..f1762e9 100644 --- a/configure.ac +++ b/configure.ac -@@ -2668,6 +2668,12 @@ +@@ -2840,6 +2840,12 @@ AC_ARG_ENABLE(ssl, DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} ssl" fi])
@@ -22,3 +25,6 @@ Index: b/configure.ac AC_ARG_ENABLE(dbm, AS_HELP_STRING([--disable-dbm], [disable DBM]), [ if test "$enableval" = "no"; then +-- +2.7.4 +
package/python/0029-Add-an-option-to-disable-the-zlib-module.patch renamed from package/python/113-optional-zlib.patch +11 -5
@@ -1,15 +1,18 @@ -Add an option to disable the zlib module +From af2c56aa0a5900272cc2d04ce667d4b38e34b596 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:30:45 +0100 +Subject: [PATCH] Add an option to disable the zlib module Signed-off-by: Thomas Petazzoni <[email protected]> --- - configure.in | 6 ++++++ + configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) -Index: b/configure.ac -=================================================================== +diff --git a/configure.ac b/configure.ac +index f1762e9..291ba35 100644 --- a/configure.ac +++ b/configure.ac -@@ -2674,6 +2674,12 @@ +@@ -2846,6 +2846,12 @@ AC_ARG_ENABLE(bz2, DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} bz2" fi])
@@ -22,3 +25,6 @@ Index: b/configure.ac AC_ARG_ENABLE(dbm, AS_HELP_STRING([--disable-dbm], [disable DBM]), [ if test "$enableval" = "no"; then +-- +2.7.4 +
package/python/0030-Do-not-install-the-idle-editor.patch renamed from package/python/114-remove-idle-editor.patch +18 -8
@@ -1,4 +1,7 @@ -Do not install the idle editor +From 4b7c45c756dccfd3b5ece36fe572042353d1c2f0 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:30:56 +0100 +Subject: [PATCH] Do not install the idle editor IDLE is the Python IDE built with the tkinter GUI toolkit. Since it's highly unlikely to ever be useful in an embedded Linux system
@@ -7,12 +10,16 @@ idle and the related Python modules. It saves 800 KB-900 KB of installed .pyc files. Signed-off-by: Thomas Petazzoni <[email protected]> +--- + Makefile.pre.in | 2 -- + setup.py | 2 +- + 2 files changed, 1 insertion(+), 3 deletions(-) -Index: b/Makefile.pre.in -=================================================================== +diff --git a/Makefile.pre.in b/Makefile.pre.in +index 2582574..3cfc590 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -967,7 +967,6 @@ +@@ -1045,7 +1045,6 @@ LIBSUBDIRS= site-packages \ json \ logging csv importlib wsgiref \ ctypes ctypes/macholib \
@@ -20,7 +27,7 @@ Index: b/Makefile.pre.in distutils distutils/command \ multiprocessing multiprocessing/dummy \ unittest \ -@@ -982,7 +981,6 @@ +@@ -1060,7 +1059,6 @@ TESTSUBDIRS = test test/audiodata test/capath test/data \ email/test email/test/data \ json/tests \ ctypes/test \
@@ -28,11 +35,11 @@ Index: b/Makefile.pre.in distutils/tests \ unittest/test -Index: b/setup.py -=================================================================== +diff --git a/setup.py b/setup.py +index c68f6b4..8045a9b 100644 --- a/setup.py +++ b/setup.py -@@ -2212,7 +2212,7 @@ +@@ -2234,7 +2234,7 @@ def main(): import warnings warnings.filterwarnings("ignore",category=DeprecationWarning)
@@ -41,3 +48,6 @@ Index: b/setup.py if not '--disable-pydoc' in sysconfig.get_config_var("CONFIG_ARGS"): scripts += [ 'Tools/scripts/pydoc' ] if not '--disable-lib2to3' in sysconfig.get_config_var("CONFIG_ARGS"): +-- +2.7.4 +
package/python/0031-Add-an-option-to-disable-the-ossaudiodev-module.patch renamed from package/python/115-optional-ossaudiodev.patch +9 -6
@@ -1,18 +1,18 @@ -From 30351d9b41a03c43d627d52d46e49ab91bfe342d Mon Sep 17 00:00:00 2001 +From 6af0f179d3db956146bbabac8748675e3abc1f78 Mon Sep 17 00:00:00 2001 From: Zoltan Gyarmati <[email protected]> -Date: Thu, 8 Jan 2015 11:41:40 +0100 -Subject: [PATCH 1/1] Add an option to disable the ossaudiodev module +Date: Tue, 7 Mar 2017 22:31:22 +0100 +Subject: [PATCH] Add an option to disable the ossaudiodev module Signed-off-by: Zoltan Gyarmati <[email protected]> --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) -Index: b/configure.ac -=================================================================== +diff --git a/configure.ac b/configure.ac +index 291ba35..8dc573e 100644 --- a/configure.ac +++ b/configure.ac -@@ -2726,6 +2726,12 @@ +@@ -2898,6 +2898,12 @@ if test "$CURSES" = "no"; then DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _curses _curses_panel" fi
@@ -25,3 +25,6 @@ Index: b/configure.ac AC_SUBST(PYDOC) AC_ARG_ENABLE(pydoc, +-- +2.7.4 +
package/python/006-cross-compile-getaddrinfo.patch deleted +0 -13
@@ -1,13 +0,0 @@ -Index: b/configure.ac -=================================================================== ---- a/configure.ac -+++ b/configure.ac -@@ -3353,7 +3353,7 @@ - - AC_MSG_RESULT($ac_cv_buggy_getaddrinfo) - --if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes -+if test $have_getaddrinfo = no || test "$cross_compiling" != "yes" -a "$ac_cv_buggy_getaddrinfo" = yes - then - if test $ipv6 = yes - then
package/python/018-fix-add-gcc-paths-logic.patch deleted +0 -27
@@ -1,27 +0,0 @@ -Override system locale and set to default when adding gcc paths - -Forces the use of the default locale in the function -add_gcc_paths, which is called when cross compiling to add the -include and library paths. This is necessary because otherwise -the gcc output is localized and the output parsing fails, which -results in no paths added and detect_modules not able to find -any system library (eg. libz, libssl, etc.) - -[Thomas: patch taken from https://bugs.python.org/issue23767.] - -Signed-off-by: Samuel Cabrero <[email protected]> -Signed-off-by: Thomas Petazzoni <[email protected]> - -Index: b/setup.py -=================================================================== ---- a/setup.py -+++ b/setup.py -@@ -414,7 +414,7 @@ - tmpfile = os.path.join(self.build_temp, 'gccpaths') - if not os.path.exists(self.build_temp): - os.makedirs(self.build_temp) -- ret = os.system('%s -E -v - </dev/null 2>%s 1>/dev/null' % (gcc, tmpfile)) -+ ret = os.system('LC_ALL=C %s -E -v - </dev/null 2>%s 1>/dev/null' % (gcc, tmpfile)) - is_gcc = False - in_incdirs = False - inc_dirs = []
Signature · 1 line
2.7.4
PATCH 1/6 python: move to Git formatted patches
Quoted 8 lines · Thomas Petazzoni
Now that the cpython project has a nice Github repository, with tags, it's much nicer to handle the stack of Python patches with Git. The python3 package patches had already been converted, but not the python package patches. Therefore, this commit does the move.
There is no functional change, only reformatting of the patches.
Signed-off-by Thomas Petazzoni <[email protected]>
Quoted 2,027 lines
--- ...p.py-do-not-add-invalid-header-locations.patch} | 18 ++- ...Fix-get_python_inc-for-cross-compilation.patch} | 18 ++- ...he-install-location-of-_sysconfigdata.py.patch} | 38 ++++--- ...compilation-of-.pyc-and-.pyo-conditional.patch} | 29 ++++- ...st-getaddrinfo-test-for-cross-compilation.patch | 29 +++++ ...infrastructure-to-be-able-to-disable-ext.patch} | 41 +++++-- ...brary-header-paths-for-cross-compilation.patch} | 50 +++++---- ...-t-look-in-usr-lib-termcap-for-libraries.patch} | 18 ++- ... 0009-Fix-python-config-for-cross-builds.patch} | 121 ++++++++++++--------- ...-Remove-the-python-symlink-install-rules.patch} | 25 +++-- ....patch => 0011-Don-t-add-multiarch-paths.patch} | 17 ++- ...tch => 0012-Abort-on-failed-module-build.patch} | 17 ++- ...build-when-threads-are-not-used-availabl.patch} | 17 ++- ...nd.patch => 0014-Serial-ioctl-workaround.patch} | 15 ++- ...t-the-shebang-of-Python-scripts-for-cros.patch} | 18 ++- ...n-to-disable-installation-of-test-module.patch} | 27 +++-- ...h => 0017-Add-an-option-to-disable-pydoc.patch} | 37 ++++--- ...=> 0018-Add-an-option-to-disable-lib2to3.patch} | 39 ++++--- ...Add-option-to-disable-the-sqlite3-module.patch} | 65 ++++++----- ...0-Add-an-option-to-disable-the-tk-module.patch} | 31 +++--- ...d-an-option-to-disable-the-curses-module.patch} | 27 +++-- ...h => 0022-Add-an-option-to-disable-expat.patch} | 35 +++--- ...0023-Add-an-option-to-disable-CJK-codecs.patch} | 17 ++- ...tch => 0024-Add-an-option-to-disable-NIS.patch} | 17 ++- ...025-Add-an-option-to-disable-unicodedata.patch} | 17 ++- ...h => 0026-Add-an-option-to-disable-bsddb.patch} | 31 +++--- ...-Add-an-option-to-disable-the-ssl-module.patch} | 17 ++- ...-Add-an-option-to-disable-the-bz2-module.patch} | 16 ++- ...Add-an-option-to-disable-the-zlib-module.patch} | 16 ++- ...h => 0030-Do-not-install-the-idle-editor.patch} | 26 +++-- ...option-to-disable-the-ossaudiodev-module.patch} | 15 ++- package/python/006-cross-compile-getaddrinfo.patch | 13 --- package/python/018-fix-add-gcc-paths-logic.patch | 27 ----- 33 files changed, 587 insertions(+), 357 deletions(-) rename package/python/{001-remove-host-header-path.patch => 0001-setup.py-do-not-add-invalid-header-locations.patch} (78%) rename package/python/{002-fix-get-python-inc.patch => 0002-Fix-get_python_inc-for-cross-compilation.patch} (76%) rename package/python/{004-sysconfigdata-install-location.patch => 0003-Change-the-install-location-of-_sysconfigdata.py.patch} (72%) rename package/python/{005-pyc-pyo-conditional.patch => 0004-Make-the-compilation-of-.pyc-and-.pyo-conditional.patch} (68%) create mode 100644 package/python/0005-Adjust-getaddrinfo-test-for-cross-compilation.patch rename package/python/{007-disable-extensions.patch => 0006-Add-minimal-infrastructure-to-be-able-to-disable-ext.patch} (58%) rename package/python/{008-distutils-use-python-sysroot.patch => 0007-Adjust-library-header-paths-for-cross-compilation.patch} (75%) rename package/python/{009-no-termcap-host-path.patch => 0008-Don-t-look-in-usr-lib-termcap-for-libraries.patch} (67%) rename package/python/{010-fix-python-config.patch => 0009-Fix-python-config-for-cross-builds.patch} (81%) rename package/python/{011-remove-python-symlink.patch => 0010-Remove-the-python-symlink-install-rules.patch} (65%) rename package/python/{013-dont-add-multiarch-path.patch => 0011-Don-t-add-multiarch-paths.patch} (68%) rename package/python/{014-abort-on-failed-modules.patch => 0012-Abort-on-failed-module-build.patch} (57%) rename package/python/{015-fix-sqlite-without-threads.patch => 0013-sqlite3-fix-build-when-threads-are-not-used-availabl.patch} (72%) rename package/python/{016-serial-ioctl-workaround.patch => 0014-Serial-ioctl-workaround.patch} (66%) rename package/python/{017-distutils-scripts-dont-adjust-shebang.patch => 0015-Do-not-adjust-the-shebang-of-Python-scripts-for-cros.patch} (61%) rename package/python/{100-optional-test-modules.patch => 0016-Add-an-option-to-disable-installation-of-test-module.patch} (79%) rename package/python/{101-optional-pydoc.patch => 0017-Add-an-option-to-disable-pydoc.patch} (70%) rename package/python/{102-optional-2to3.patch => 0018-Add-an-option-to-disable-lib2to3.patch} (71%) rename package/python/{103-optional-sqlite.patch => 0019-Add-option-to-disable-the-sqlite3-module.patch} (59%) rename package/python/{104-optional-tk.patch => 0020-Add-an-option-to-disable-the-tk-module.patch} (65%) rename package/python/{105-optional-curses.patch => 0021-Add-an-option-to-disable-the-curses-module.patch} (62%) rename package/python/{106-optional-expat.patch => 0022-Add-an-option-to-disable-expat.patch} (75%) rename package/python/{107-optional-codecs-cjk.patch => 0023-Add-an-option-to-disable-CJK-codecs.patch} (58%) rename package/python/{108-optional-nis.patch => 0024-Add-an-option-to-disable-NIS.patch} (63%) rename package/python/{109-optional-unicodedata.patch => 0025-Add-an-option-to-disable-unicodedata.patch} (58%) rename package/python/{110-optional-db.patch => 0026-Add-an-option-to-disable-bsddb.patch} (72%) rename package/python/{111-optional-ssl.patch => 0027-Add-an-option-to-disable-the-ssl-module.patch} (57%) rename package/python/{112-optional-bzip2.patch => 0028-Add-an-option-to-disable-the-bz2-module.patch} (58%) rename package/python/{113-optional-zlib.patch => 0029-Add-an-option-to-disable-the-zlib-module.patch} (58%) rename package/python/{114-remove-idle-editor.patch => 0030-Do-not-install-the-idle-editor.patch} (63%) rename package/python/{115-optional-ossaudiodev.patch => 0031-Add-an-option-to-disable-the-ossaudiodev-module.patch} (65%) delete mode 100644 package/python/006-cross-compile-getaddrinfo.patch delete mode 100644 package/python/018-fix-add-gcc-paths-logic.patchpackage/python/0001-setup.py-do-not-add-invalid-header-locations.patch renamed from package/python/001-remove-host-header-path.patch +14
-4@@ -1,4 +1,7 @@ -setup.py: do not add invalid header locations +From 3dc31a435b67de2ba3dd3457f0c939e20b58e8de Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:17:06 +0100 +Subject: [PATCH] setup.py: do not add invalid header locations This piece of code incorrectly adds /usr/include to self.compiler.include_dirs, and results in the following invalid@@ -17,11 +20,15 @@ cc1: warning: include location "/usr/include" is unsafe for cross-compilation [- Signed-off-by: Thomas Petazzoni <[email protected]> -Index: b/setup.py -=================================================================== +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 54054c2..64001e2 100644 --- a/setup.py +++ b/setup.py -@@ -480,7 +480,7 @@ +@@ -496,7 +496,7 @@ class PyBuildExt(build_ext): for directory in reversed(options.dirs): add_dir_to_list(dir_list, directory)@@ -30,3 +37,6 @@ Index: b/setup.py and not sysconfig.get_config_var('PYTHONFRAMEWORK'): # OSX note: Don't add LIBDIR and INCLUDEDIR to building a framework # (PYTHONFRAMEWORK is set) to avoid # linking problems when +-- +2.7.4 +package/python/0002-Fix-get_python_inc-for-cross-compilation.patch renamed from package/python/002-fix-get-python-inc.patch +14
-4@@ -1,4 +1,7 @@ -Fix get_python_inc() for cross-compilation +From 367ee7d103cf9f670c3925d555edf6f6a5b9d8d5 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:17:25 +0100 +Subject: [PATCH] Fix get_python_inc() for cross-compilation When we are cross compiling, doing os.path.dirname(sys.executable) to get the build directory is incorrect, because we're executing the host@@ -21,11 +24,15 @@ This patch allows to fix the incorrectly added to the header paths. Signed-off-by: Thomas Petazzoni <[email protected]> -Index: b/Lib/distutils/sysconfig.py -=================================================================== +--- + Lib/distutils/sysconfig.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py +index de7da1d..d72b6e5 100644 --- a/Lib/distutils/sysconfig.py +++ b/Lib/distutils/sysconfig.py -@@ -79,7 +79,7 @@ +@@ -79,7 +79,7 @@ def get_python_inc(plat_specific=0, prefix=None): if os.name == "posix": if python_build:@@ -34,3 +41,6 @@ Index: b/Lib/distutils/sysconfig.py if plat_specific: # python.h is located in the buildir inc_dir = buildir +-- +2.7.4 +package/python/0003-Change-the-install-location-of-_sysconfigdata.py.patch renamed from package/python/004-sysconfigdata-install-location.patch +24
-14@@ -1,4 +1,7 @@ -Change the install location of _sysconfigdata.py +From 0ef0d4ddd3f2261e381f22061a9a451dfbb1dc9e Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:17:59 +0100 +Subject: [PATCH] Change the install location of _sysconfigdata.py The _sysconfigdata.py module contains definitions that are needed when building Python modules. In cross-compilation mode, when building@@ -16,12 +19,16 @@ this directory gets added to the PYTHONPATH of the host Python interpreter when building Python modules for the target. Signed-off-by: Thomas Petazzoni <[email protected]> +--- + Makefile.pre.in | 12 ++++++++++-- + configure.ac | 2 +- + 2 files changed, 11 insertions(+), 3 deletions(-) -Index: b/Makefile.pre.in -=================================================================== +diff --git a/Makefile.pre.in b/Makefile.pre.in +index e288964..5367df7 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -462,6 +462,9 @@ +@@ -529,6 +529,9 @@ pybuilddir.txt: $(BUILDPYTHON) rm -f ./pybuilddir.txt ; \ exit 1 ; \ fi@@ -29,9 +36,9 @@ Index: b/Makefile.pre.in + mkdir -p `cat pysysconfigdatadir.txt` + cp `cat pybuilddir.txt`/_sysconfigdata.py `cat pysysconfigdatadir.txt` - # Build the shared modules - # Under GNU make, MAKEFLAGS are sorted and normalized; the 's' for -@@ -1002,7 +1005,7 @@ + # This is shared by the math and cmath modules + Modules/_math.o: Modules/_math.c Modules/_math.h +@@ -1080,7 +1083,7 @@ libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c else true; \ fi; \ done@@ -40,7 +47,7 @@ Index: b/Makefile.pre.in do \ if test -x $$i; then \ $(INSTALL_SCRIPT) $$i $(DESTDIR)$(LIBDEST); \ -@@ -1012,6 +1015,11 @@ +@@ -1090,6 +1093,11 @@ libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c echo $(INSTALL_DATA) $$i $(LIBDEST); \ fi; \ done@@ -52,7 +59,7 @@ Index: b/Makefile.pre.in @for d in $(LIBSUBDIRS); \ do \ a=$(srcdir)/Lib/$$d; \ -@@ -1337,7 +1345,7 @@ +@@ -1418,7 +1426,7 @@ distclean: clobber Modules/Setup Modules/Setup.local Modules/Setup.config \ Modules/ld_so_aix Modules/python.exp Misc/python.pc -rm -f python*-gdb.py@@ -61,16 +68,19 @@ Index: b/Makefile.pre.in # Issue #28258: set LC_ALL to avoid issues with Estonian locale. # Expansion is performed here by shell (spawned by make) itself before # arguments are passed to find. So LC_ALL=C must be set as a separate -Index: b/configure.ac -=================================================================== +diff --git a/configure.ac b/configure.ac +index 1273465..5f89797 100644 --- a/configure.ac +++ b/configure.ac -@@ -33,7 +33,7 @@ +@@ -33,7 +33,7 @@ if test "$cross_compiling" = yes; then AC_MSG_ERROR([python$PACKAGE_VERSION interpreter not found]) fi AC_MSG_RESULT($interp) - PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib:$(srcdir)/Lib/$(PLATDIR) '$interp + PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pysysconfigdatadir.txt && echo $(abs_builddir)/`cat pysysconfigdatadir.txt`:)$(srcdir)/Lib:$(srcdir)/Lib/$(PLATDIR) '$interp fi - elif test "$cross_compiling" = maybe; then - AC_MSG_ERROR([Cross compiling required --host=HOST-TUPLE and --build=ARCH]) + # Used to comment out stuff for rebuilding generated files + GENERATED_COMMENT='#' +-- +2.7.4 +package/python/0004-Make-the-compilation-of-.pyc-and-.pyo-conditional.patch renamed from package/python/005-pyc-pyo-conditional.patch +23
-6@@ -1,8 +1,22 @@ -Index: b/Makefile.pre.in -=================================================================== +From 168e6c594e80395583de5ab0d082be119b2061fc Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:18:57 +0100 +Subject: [PATCH] Make the compilation of .pyc and .pyo conditional + +This commit adds --{enable,disable}-{pyc,pyo} options to enable/disable +the compilation of pyc/pyo files. + +Signed-off-by: Thomas Petazzoni <[email protected]> +--- + Makefile.pre.in | 8 ++++++++ + configure.ac | 11 +++++++++++ + 2 files changed, 19 insertions(+) + +diff --git a/Makefile.pre.in b/Makefile.pre.in +index 5367df7..96fc718 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -1050,24 +1050,32 @@ +@@ -1128,24 +1128,32 @@ libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c $(INSTALL_DATA) $(srcdir)/Modules/xxmodule.c \ $(DESTDIR)$(LIBDEST)/distutils/tests ; \ fi@@ -35,11 +49,11 @@ Index: b/Makefile.pre.in -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/Grammar.txt -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ -Index: b/configure.ac -=================================================================== +diff --git a/configure.ac b/configure.ac +index 5f89797..4aafc82 100644 --- a/configure.ac +++ b/configure.ac -@@ -739,6 +739,17 @@ +@@ -759,6 +759,17 @@ SunOS*) ;; esac@@ -57,3 +71,6 @@ Index: b/configure.ac AC_SUBST(LIBRARY) AC_MSG_CHECKING(LIBRARY) +-- +2.7.4 +package/python/0005-Adjust-getaddrinfo-test-for-cross-compilation.patch new file +29
-0@@ -0,0 +1,29 @@ +From 2d971c3cdca9ecc55f2da8aba12ca89e1a66519a Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:19:47 +0100 +Subject: [PATCH] Adjust getaddrinfo() test for cross-compilation + +The getaddrinfo() test in configure.ac uses AC_RUN_IFELSE(), which isn't +cross-compilation friendly. + +Signed-off-by: Thomas Petazzoni <[email protected]> +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 4aafc82..63e6918 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -3527,7 +3527,7 @@ fi + + AC_MSG_RESULT($ac_cv_buggy_getaddrinfo) + +-if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes ++if test $have_getaddrinfo = no || test "$cross_compiling" != "yes" -a "$ac_cv_buggy_getaddrinfo" = yes + then + if test $ipv6 = yes + then +-- +2.7.4 +package/python/0006-Add-minimal-infrastructure-to-be-able-to-disable-ext.patch renamed from package/python/007-disable-extensions.patch +30
-11@@ -1,8 +1,24 @@ -Index: b/Makefile.pre.in -=================================================================== +From 977de9474c1fb46359ab6a487e153fbd91a2b568 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:21:28 +0100 +Subject: [PATCH] Add minimal infrastructure to be able to disable extensions + +This commit adds some logic to the Python build system to be able to +disable Python extensions. Follow-up commits actually add options to +disable specific extensions. + +Signed-off-by: Thomas Petazzoni <[email protected]> +--- + Makefile.pre.in | 6 +++++- + configure.ac | 2 ++ + setup.py | 5 ++++- + 3 files changed, 11 insertions(+), 2 deletions(-) + +diff --git a/Makefile.pre.in b/Makefile.pre.in +index 96fc718..33b994d 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -156,6 +156,8 @@ +@@ -161,6 +161,8 @@ FILEMODE= 644 # configure script arguments CONFIG_ARGS= @CONFIG_ARGS@@@ -11,7 +27,7 @@ Index: b/Makefile.pre.in # Subdirectories with code SRCDIRS= @SRCDIRS@ -@@ -477,6 +479,7 @@ +@@ -548,6 +550,7 @@ sharedmods: $(BUILDPYTHON) pybuilddir.txt Modules/_math.o esac; \ $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' \ _TCLTK_INCLUDES='$(TCLTK_INCLUDES)' _TCLTK_LIBS='$(TCLTK_LIBS)' \@@ -19,7 +35,7 @@ Index: b/Makefile.pre.in $(PYTHON_FOR_BUILD) $(srcdir)/setup.py $$quiet build # Build static library -@@ -1191,7 +1194,8 @@ +@@ -1269,7 +1272,8 @@ libainstall: all python-config # Install the dynamically loadable modules # This goes into $(exec_prefix) sharedinstall: sharedmods@@ -29,11 +45,11 @@ Index: b/Makefile.pre.in --prefix=$(prefix) \ --install-scripts=$(BINDIR) \ --install-platlib=$(DESTSHARED) \ -Index: b/configure.ac -=================================================================== +diff --git a/configure.ac b/configure.ac +index 63e6918..5d4232f 100644 --- a/configure.ac +++ b/configure.ac -@@ -2290,6 +2290,8 @@ +@@ -2462,6 +2462,8 @@ LIBS="$withval $LIBS" PKG_PROG_PKG_CONFIG@@ -42,11 +58,11 @@ Index: b/configure.ac # Check for use of the system expat library AC_MSG_CHECKING(for --with-system-expat) AC_ARG_WITH(system_expat, -Index: b/setup.py -=================================================================== +diff --git a/setup.py b/setup.py +index 64001e2..3b51c0a 100644 --- a/setup.py +++ b/setup.py -@@ -33,7 +33,10 @@ +@@ -33,7 +33,10 @@ host_platform = get_platform() COMPILED_WITH_PYDEBUG = ('--with-pydebug' in sysconfig.get_config_var("CONFIG_ARGS")) # This global variable is used to hold the list of modules to be disabled.@@ -58,3 +74,6 @@ Index: b/setup.py def add_dir_to_list(dirlist, dir): """Add the directory 'dir' to the list 'dirlist' (at the front) if +-- +2.7.4 +package/python/0007-Adjust-library-header-paths-for-cross-compilation.patch renamed from package/python/008-distutils-use-python-sysroot.patch +30
-20@@ -1,4 +1,7 @@ -Adjust library/header paths for cross-compilation +From f3e0a677c4736f95338825a022a884f8dc7a5c14 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:22:19 +0100 +Subject: [PATCH] Adjust library/header paths for cross-compilation When cross-compiling third-party extensions, the get_python_inc() or get_python_lib() can be called, to return the path to headers or@@ -15,12 +18,32 @@ The _python_sysroot variable is also used to prefix the LIBDIR value taken from the sysconfigdata module. Signed-off-by: Thomas Petazzoni <[email protected]> +--- + Lib/distutils/command/build_ext.py | 5 ++++- + Lib/distutils/sysconfig.py | 9 +++++++-- + 2 files changed, 11 insertions(+), 3 deletions(-) -Index: b/Lib/distutils/sysconfig.py -=================================================================== +diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py +index 2c68be3..375b08c 100644 +--- a/Lib/distutils/command/build_ext.py ++++ b/Lib/distutils/command/build_ext.py +@@ -240,7 +240,10 @@ class build_ext (Command): + if (sysconfig.get_config_var('Py_ENABLE_SHARED')): + if not sysconfig.python_build: + # building third party extensions +- self.library_dirs.append(sysconfig.get_config_var('LIBDIR')) ++ libdir = sysconfig.get_config_var('LIBDIR') ++ if "_python_sysroot" in os.environ: ++ libdir = os.environ.get("_python_sysroot") + libdir ++ self.library_dirs.append(libdir) + else: + # building python standard extensions + self.library_dirs.append('.') +diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py +index d72b6e5..72151df 100644 --- a/Lib/distutils/sysconfig.py +++ b/Lib/distutils/sysconfig.py -@@ -19,8 +19,13 @@ +@@ -19,8 +19,13 @@ import sys from distutils.errors import DistutilsPlatformError # These are needed in a couple of spots, so just compute them once.@@ -36,19 +59,6 @@ Index: b/Lib/distutils/sysconfig.py # 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, -Index: b/Lib/distutils/command/build_ext.py -=================================================================== ---- a/Lib/distutils/command/build_ext.py -+++ b/Lib/distutils/command/build_ext.py -@@ -237,7 +237,10 @@ - if (sysconfig.get_config_var('Py_ENABLE_SHARED')): - if not sysconfig.python_build: - # building third party extensions -- self.library_dirs.append(sysconfig.get_config_var('LIBDIR')) -+ libdir = sysconfig.get_config_var('LIBDIR') -+ if "_python_sysroot" in os.environ: -+ libdir = os.environ.get("_python_sysroot") + libdir -+ self.library_dirs.append(libdir) - else: - # building python standard extensions - self.library_dirs.append('.') +-- +2.7.4 +package/python/0008-Don-t-look-in-usr-lib-termcap-for-libraries.patch renamed from package/python/009-no-termcap-host-path.patch +13
-5@@ -1,13 +1,18 @@ -Don't look in /usr/lib/termcap for libraries +From 87b627d8845e67fd798449b414bece04f18bd450 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:22:40 +0100 +Subject: [PATCH] Don't look in /usr/lib/termcap for libraries Signed-off-by: Thomas Petazzoni <[email protected]> +--- + setup.py | 5 +---- + 1 file changed, 1 insertion(+), 4 deletions(-) - -Index: b/setup.py -=================================================================== +diff --git a/setup.py b/setup.py +index 3b51c0a..fa32532 100644 --- a/setup.py +++ b/setup.py -@@ -764,12 +764,9 @@ +@@ -784,12 +784,9 @@ class PyBuildExt(build_ext): pass # Issue 7384: Already linked against curses or tinfo. elif curses_library: readline_libs.append(curses_library)@@ -21,3 +26,6 @@ Index: b/setup.py extra_link_args=readline_extra_link_args, libraries=readline_libs) ) else: +-- +2.7.4 +package/python/0009-Fix-python-config-for-cross-builds.patch renamed from package/python/010-fix-python-config.patch +69
-52@@ -1,55 +1,29 @@ +From e5b0d225f4343e82791cb80e4e0c01a9b49eeff4 Mon Sep 17 00:00:00 2001 +From: Gustavo Zacarias <[email protected]> +Date: Tue, 7 Mar 2017 22:23:14 +0100 +Subject: [PATCH] Fix python-config for cross-builds + Add a backport of http://bugs.python.org/issue16235 so we can use python-config for cross builds. -This basically replaces the python version of python-config with a pure-shell -version that's already preprocessed when installed and doesn't depend -on the sysconfig import that usually leads to bad data/results. + +This basically replaces the python version of python-config with a +pure-shell version that's already preprocessed when installed and +doesn't depend on the sysconfig import that usually leads to bad +data/results. Signed-off-by: Gustavo Zacarias <[email protected]> +--- + Makefile.pre.in | 13 +++--- + Misc/python-config.sh.in | 102 +++++++++++++++++++++++++++++++++++++++++++++++ + configure.ac | 7 +++- + 3 files changed, 116 insertions(+), 6 deletions(-) + create mode 100644 Misc/python-config.sh.in -Index: b/configure.ac -=================================================================== ---- a/configure.ac -+++ b/configure.ac -@@ -885,6 +885,7 @@ - - # Other platforms follow - if test $enable_shared = "yes"; then -+ PY_ENABLE_SHARED=1 - AC_DEFINE(Py_ENABLE_SHARED, 1, [Defined if Python is built as a shared library.]) - case $ac_sys_system in - BeOS*) -@@ -945,6 +946,7 @@ - - esac - else # shared is disabled -+ PY_ENABLE_SHARED=0 - case $ac_sys_system in - CYGWIN*) - BLDLIBRARY='$(LIBRARY)' -@@ -1921,6 +1923,9 @@ - AC_SUBST(BLDSHARED) - AC_SUBST(CCSHARED) - AC_SUBST(LINKFORSHARED) -+AC_SUBST(PY_ENABLE_SHARED) -+LIBPL="${prefix}/lib/python${VERSION}/config" -+AC_SUBST(LIBPL) - # SO is the extension of shared libraries `(including the dot!) - # -- usually .so, .sl on HP-UX, .dll on Cygwin - AC_MSG_CHECKING(SO) -@@ -4588,7 +4593,7 @@ - AC_SUBST(ENSUREPIP) - - # generate output files --AC_CONFIG_FILES(Makefile.pre Modules/Setup.config Misc/python.pc) -+AC_CONFIG_FILES(Makefile.pre Modules/Setup.config Misc/python.pc Misc/python-config.sh) - AC_CONFIG_FILES([Modules/ld_so_aix], [chmod +x Modules/ld_so_aix]) - AC_OUTPUT - -Index: b/Makefile.pre.in -=================================================================== +diff --git a/Makefile.pre.in b/Makefile.pre.in +index 33b994d..beb0837 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -166,7 +166,7 @@ +@@ -171,7 +171,7 @@ SRCDIRS= @SRCDIRS@ SUBDIRSTOO= Include Lib Misc Demo # Files and directories to be distributed@@ -58,16 +32,16 @@ Index: b/Makefile.pre.in DISTFILES= README ChangeLog $(CONFIGFILES) DISTDIRS= $(SUBDIRS) $(SUBDIRSTOO) Ext-dummy DIST= $(DISTFILES) $(DISTDIRS) -@@ -410,7 +410,7 @@ +@@ -431,7 +431,7 @@ LIBRARY_OBJS= \ # Default target all: @DEF_MAKE_ALL_RULE@ -build_all: $(BUILDPYTHON) oldsharedmods sharedmods gdbhooks +build_all: $(BUILDPYTHON) oldsharedmods sharedmods gdbhooks python-config - # Compile a binary with gcc profile guided optimization. + # Compile a binary with profile guided optimization. profile-opt: -@@ -1101,10 +1101,12 @@ +@@ -1179,10 +1179,12 @@ $(srcdir)/Lib/$(PLATDIR): fi; \ cd $(srcdir)/Lib/$(PLATDIR); $(RUNSHARED) ./regen@@ -82,7 +56,7 @@ Index: b/Makefile.pre.in # Install the include files INCLDIRSTOMAKE=$(INCLUDEDIR) $(CONFINCLUDEDIR) $(INCLUDEPY) $(CONFINCLUDEPY) -@@ -1163,7 +1165,7 @@ +@@ -1241,7 +1243,7 @@ libainstall: all python-config $(INSTALL_SCRIPT) $(srcdir)/Modules/makesetup $(DESTDIR)$(LIBPL)/makesetup $(INSTALL_SCRIPT) $(srcdir)/install-sh $(DESTDIR)$(LIBPL)/install-sh $(INSTALL_SCRIPT) python-config $(DESTDIR)$(BINDIR)/python$(VERSION)-config@@ -91,7 +65,7 @@ Index: b/Makefile.pre.in @if [ -s Modules/python.exp -a \ "`echo $(MACHDEP) | sed 's/^\(...\).*/\1/'`" = "aix" ]; then \ echo; echo "Installing support files for building shared extension modules on AIX:"; \ -@@ -1345,6 +1347,7 @@ +@@ -1426,6 +1428,7 @@ clobber: clean profile-removal config.cache config.log pyconfig.h Modules/config.c -rm -rf build platform -rm -rf $(PYTHONFRAMEWORKDIR)@@ -99,8 +73,9 @@ Index: b/Makefile.pre.in # Make things extra clean, before making a distribution: # remove all generated files, even Makefile[.pre] -Index: b/Misc/python-config.sh.in -=================================================================== +diff --git a/Misc/python-config.sh.in b/Misc/python-config.sh.in +new file mode 100644 +index 0000000..10db4c1 --- /dev/null +++ b/Misc/python-config.sh.in @@ -0,0 +1,102 @@@@ -206,3 +181,45 @@ Index: b/Misc/python-config.sh.in + ;; +esac +done +diff --git a/configure.ac b/configure.ac +index 5d4232f..183a903 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -905,6 +905,7 @@ fi + + # Other platforms follow + if test $enable_shared = "yes"; then ++ PY_ENABLE_SHARED=1 + AC_DEFINE(Py_ENABLE_SHARED, 1, [Defined if Python is built as a shared library.]) + case $ac_sys_system in + BeOS*) +@@ -965,6 +966,7 @@ if test $enable_shared = "yes"; then + + esac + else # shared is disabled ++ PY_ENABLE_SHARED=0 + case $ac_sys_system in + CYGWIN*) + BLDLIBRARY='$(LIBRARY)' +@@ -2096,6 +2098,9 @@ AC_SUBST(LDCXXSHARED) + AC_SUBST(BLDSHARED) + AC_SUBST(CCSHARED) + AC_SUBST(LINKFORSHARED) ++AC_SUBST(PY_ENABLE_SHARED) ++LIBPL="${prefix}/lib/python${VERSION}/config" ++AC_SUBST(LIBPL) + # SO is the extension of shared libraries `(including the dot!) + # -- usually .so, .sl on HP-UX, .dll on Cygwin + AC_MSG_CHECKING(SO) +@@ -4818,7 +4823,7 @@ AC_MSG_RESULT($ENSUREPIP) + AC_SUBST(ENSUREPIP) + + # generate output files +-AC_CONFIG_FILES(Makefile.pre Modules/Setup.config Misc/python.pc) ++AC_CONFIG_FILES(Makefile.pre Modules/Setup.config Misc/python.pc Misc/python-config.sh) + AC_CONFIG_FILES([Modules/ld_so_aix], [chmod +x Modules/ld_so_aix]) + AC_OUTPUT + +-- +2.7.4 +package/python/0010-Remove-the-python-symlink-install-rules.patch renamed from package/python/011-remove-python-symlink.patch +17
-8@@ -1,18 +1,24 @@ -Remove the python symlink install rules. +From bddfcbb8a4c011ca2fe471f7a4124cd64b5b0f00 Mon Sep 17 00:00:00 2001 +From: Samuel Martin <[email protected]> +Date: Tue, 7 Mar 2017 22:23:58 +0100 +Subject: [PATCH] Remove the python symlink install rules -The python symlink installation will be handled by Buildroot itself, because -Buildroot needs to control to what python interpreter (python2 or python3) the -python symlink points to. +The python symlink installation will be handled by Buildroot itself, +because Buildroot needs to control to what python interpreter (python2 +or python3) the python symlink points to. Signed-off-by: Samuel Martin <[email protected]> +[Bernd: rebased against version 2.7.12.] Signed-off-by: Bernd Kuhls <[email protected]> -(rebased against version 2.7.12) +--- + Makefile.pre.in | 7 ------- + 1 file changed, 7 deletions(-) -Index: b/Makefile.pre.in -=================================================================== +diff --git a/Makefile.pre.in b/Makefile.pre.in +index beb0837..dedcf61 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -974,17 +974,10 @@ +@@ -968,17 +968,10 @@ bininstall: altbininstall echo "Creating directory $(LIBPC)"; \ $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(LIBPC); \ fi@@ -30,3 +36,6 @@ Index: b/Makefile.pre.in -test -d $(DESTDIR)$(LIBPC) || $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(LIBPC) -rm -f $(DESTDIR)$(LIBPC)/python2.pc (cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(VERSION).pc python2.pc) +-- +2.7.4 +package/python/0011-Don-t-add-multiarch-paths.patch renamed from package/python/013-dont-add-multiarch-path.patch +13
-4@@ -1,4 +1,7 @@ -Don't add multiarch paths +From 50a243a9c90f95e9248ac720e42e802b5922ab90 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:24:28 +0100 +Subject: [PATCH] Don't add multiarch paths The add_multiarch_paths() function leads, in certain build environments, to the addition of host header paths to the CFLAGS,@@ -9,12 +12,15 @@ cross-compiling. Investigation done by David <[email protected]>. Signed-off-by: Thomas Petazzoni <[email protected]> +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) -Index: b/setup.py -=================================================================== +diff --git a/setup.py b/setup.py +index fa32532..0b9ea57 100644 --- a/setup.py +++ b/setup.py -@@ -445,9 +445,9 @@ +@@ -461,9 +461,9 @@ class PyBuildExt(build_ext): if not cross_compiling: add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')@@ -25,3 +31,6 @@ Index: b/setup.py # Add paths specified in the environment variables LDFLAGS and # CPPFLAGS for header and library files. +-- +2.7.4 +package/python/0012-Abort-on-failed-module-build.patch renamed from package/python/014-abort-on-failed-modules.patch +13
-4@@ -1,4 +1,7 @@ -Abort on failed module build +From a131e2ff219872d97eef6585117bd2f8ff9e310d Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:24:48 +0100 +Subject: [PATCH] Abort on failed module build When building a Python module fails, the setup.py script currently doesn't exit with an error, and simply continues. This is not a really@@ -6,12 +9,15 @@ nice behavior, so this patch changes setup.py to abort with an error, so that the build issue is clearly noticeable. Signed-off-by: Thomas Petazzoni <[email protected]> +--- + setup.py | 1 + + 1 file changed, 1 insertion(+) -Index: b/setup.py -=================================================================== +diff --git a/setup.py b/setup.py +index 0b9ea57..9a5c2b8 100644 --- a/setup.py +++ b/setup.py -@@ -283,6 +283,7 @@ +@@ -299,6 +299,7 @@ class PyBuildExt(build_ext): print "Failed to build these modules:" print_three_column(failed) print@@ -19,3 +25,6 @@ Index: b/setup.py def build_extension(self, ext): +-- +2.7.4 +package/python/0013-sqlite3-fix-build-when-threads-are-not-used-availabl.patch renamed from package/python/015-fix-sqlite-without-threads.patch +13
-4@@ -1,4 +1,7 @@ -sqlite3: fix build when threads are not used/available +From 0f0be88526ece7d2f6ee21c1f59b1546ec6dc7c0 Mon Sep 17 00:00:00 2001 +From: "Yann E. MORIN" <[email protected]> +Date: Tue, 7 Mar 2017 22:25:14 +0100 +Subject: [PATCH] sqlite3: fix build when threads are not used/available When threads are not used/available, a function in the sqlite3 extension ends up with a label at the end:@@ -34,12 +37,15 @@ Fix that by adding a dummy statement after the label, so that the label is never the last statement of the function. Signed-off-by: "Yann E. MORIN" <[email protected]> +--- + Modules/_sqlite/connection.c | 1 + + 1 file changed, 1 insertion(+) -Index: b/Modules/_sqlite/connection.c -=================================================================== +diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c +index 237d6e4..cdf69ab 100644 --- a/Modules/_sqlite/connection.c +++ b/Modules/_sqlite/connection.c -@@ -786,6 +786,7 @@ +@@ -794,6 +794,7 @@ error: #ifdef WITH_THREAD PyGILState_Release(threadstate); #endif@@ -47,3 +53,6 @@ Index: b/Modules/_sqlite/connection.c } static void _pysqlite_drop_unused_statement_references(pysqlite_Connection* self) +-- +2.7.4 +package/python/0014-Serial-ioctl-workaround.patch renamed from package/python/016-serial-ioctl-workaround.patch +12
-3@@ -1,4 +1,7 @@ -Serial ioctl() workaround +From 22e5a4c5d29ddf0856d7f68f5a613aec00e26168 Mon Sep 17 00:00:00 2001 +From: Baruch Siach <[email protected]> +Date: Tue, 7 Mar 2017 22:25:36 +0100 +Subject: [PATCH] Serial ioctl() workaround The ioctls.h of some architectures (notably xtensa) references structs from linux/serial.h. Make sure to include this header as well.@@ -8,8 +11,11 @@ but isn't actually referenced in modern kernels. Signed-off-by: Baruch Siach <[email protected]> --- -Index: b/Modules/termios.c -=================================================================== + Modules/termios.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/Modules/termios.c b/Modules/termios.c +index 57f30dc..a8c9855 100644 --- a/Modules/termios.c +++ b/Modules/termios.c @@ -16,7 +16,9 @@@@ -22,3 +28,6 @@ Index: b/Modules/termios.c /* HP-UX requires that this be included to pick up MDCD, MCTS, MDSR, * MDTR, MRI, and MRTS (appearantly used internally by some things +-- +2.7.4 +package/python/0015-Do-not-adjust-the-shebang-of-Python-scripts-for-cros.patch renamed from package/python/017-distutils-scripts-dont-adjust-shebang.patch +14
-4@@ -1,4 +1,8 @@ -Do not adjust the shebang of Python scripts for cross-compilation +From 70049366ddf1fc9084bb02cf4459380976cdf8f7 Mon Sep 17 00:00:00 2001 +From: Christophe Vu-Brugier <[email protected]> +Date: Tue, 7 Mar 2017 22:26:09 +0100 +Subject: [PATCH] Do not adjust the shebang of Python scripts for + cross-compilation The copy_scripts() method in distutils copies the scripts listed in the setup file and adjusts the first line to refer to the current@@ -9,12 +13,15 @@ This patch modifies copy_scripts() to preserve the shebang when cross-compilation is detected. Signed-off-by: Christophe Vu-Brugier <[email protected]> +--- + Lib/distutils/command/build_scripts.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) -Index: b/Lib/distutils/command/build_scripts.py -=================================================================== +diff --git a/Lib/distutils/command/build_scripts.py b/Lib/distutils/command/build_scripts.py +index 567df65..4922d50 100644 --- a/Lib/distutils/command/build_scripts.py +++ b/Lib/distutils/command/build_scripts.py -@@ -89,7 +89,7 @@ +@@ -89,7 +89,7 @@ class build_scripts (Command): adjust = 1 post_interp = match.group(1) or ''@@ -23,3 +30,6 @@ Index: b/Lib/distutils/command/build_scripts.py log.info("copying and adjusting %s -> %s", script, self.build_dir) if not self.dry_run: +-- +2.7.4 +package/python/0016-Add-an-option-to-disable-installation-of-test-module.patch renamed from package/python/100-optional-test-modules.patch +16
-11@@ -1,21 +1,23 @@ -Add an option to disable installation of test modules +From 0eac7789c0dd4aebe9e69d3c73d0c95e96922ea3 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:27:16 +0100 +Subject: [PATCH] Add an option to disable installation of test modules The Python standard distribution comes with many test modules, that are not necessarly useful on embedded targets. Signed-off-by: Thomas Petazzoni <[email protected]> Signed-off-by: Samuel Martin <[email protected]> - --- - Makefile.pre.in | 40 +++++++++++++++++++++++++++------------- - configure.in | 6 ++++++ - 2 files changed, 33 insertions(+), 13 deletions(-) + Makefile.pre.in | 48 ++++++++++++++++++++++++++++++++---------------- + configure.ac | 6 ++++++ + 2 files changed, 38 insertions(+), 16 deletions(-) -Index: b/Makefile.pre.in -=================================================================== +diff --git a/Makefile.pre.in b/Makefile.pre.in +index dedcf61..280cc4e 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -960,27 +960,43 @@ +@@ -1038,27 +1038,43 @@ PLATMACDIRS= plat-mac plat-mac/Carbon plat-mac/lib-scriptpackages \ plat-mac/lib-scriptpackages/SystemEvents \ plat-mac/lib-scriptpackages/Terminal PLATMACPATH=:plat-mac:plat-mac/lib-scriptpackages@@ -75,11 +77,11 @@ Index: b/Makefile.pre.in libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c @for i in $(SCRIPTDIR) $(LIBDEST); \ do \ -Index: b/configure.ac -=================================================================== +diff --git a/configure.ac b/configure.ac +index 183a903..a1a35f6 100644 --- a/configure.ac +++ b/configure.ac -@@ -2634,6 +2634,12 @@ +@@ -2806,6 +2806,12 @@ if test "$posix_threads" = "yes"; then fi@@ -92,3 +94,6 @@ Index: b/configure.ac # Check for enable-ipv6 AH_TEMPLATE(ENABLE_IPV6, [Define if --enable-ipv6 is specified]) AC_MSG_CHECKING([if --enable-ipv6 is specified]) +-- +2.7.4 +package/python/0017-Add-an-option-to-disable-pydoc.patch renamed from package/python/101-optional-pydoc.patch +21
-16@@ -1,22 +1,24 @@ -Add an option to disable pydoc +From 52463745b6c46a46a6f2e2bc17983bb3f7bdac6e Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:27:34 +0100 +Subject: [PATCH] Add an option to disable pydoc It removes 0.5 MB of data from the target plus the pydoc script itself. Signed-off-by: Thomas Petazzoni <[email protected]> Signed-off-by: Samuel Martin <[email protected]> - --- - Makefile.pre.in | 6 +++++- - configure.in | 5 +++++ - setup.py | 10 +++++++--- + Makefile.pre.in | 6 +++++- + configure.ac | 5 +++++ + setup.py | 10 +++++++--- 3 files changed, 17 insertions(+), 4 deletions(-) -Index: b/Makefile.pre.in -=================================================================== +diff --git a/Makefile.pre.in b/Makefile.pre.in +index 280cc4e..84d5fc6 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -974,7 +974,7 @@ +@@ -1052,7 +1052,7 @@ LIBSUBDIRS= lib-tk site-packages \ multiprocessing multiprocessing/dummy \ unittest \ lib-old \@@ -25,7 +27,7 @@ Index: b/Makefile.pre.in TESTSUBDIRS = lib-tk/test lib-tk/test/test_tkinter \ lib-tk/test/test_ttk test test/audiodata test/capath test/data \ -@@ -997,6 +997,10 @@ +@@ -1075,6 +1075,10 @@ ifeq (@TEST_MODULES@,yes) LIBSUBDIRS += $(TESTSUBDIRS) endif@@ -36,11 +38,11 @@ Index: b/Makefile.pre.in libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c @for i in $(SCRIPTDIR) $(LIBDEST); \ do \ -Index: b/configure.ac -=================================================================== +diff --git a/configure.ac b/configure.ac +index a1a35f6..8bab160 100644 --- a/configure.ac +++ b/configure.ac -@@ -2633,6 +2633,11 @@ +@@ -2805,6 +2805,11 @@ if test "$posix_threads" = "yes"; then AC_CHECK_FUNCS(pthread_atfork) fi@@ -52,11 +54,11 @@ Index: b/configure.ac AC_SUBST(TEST_MODULES) -Index: b/setup.py -=================================================================== +diff --git a/setup.py b/setup.py +index 9a5c2b8..69771e2 100644 --- a/setup.py +++ b/setup.py -@@ -2211,6 +2211,12 @@ +@@ -2233,6 +2233,12 @@ def main(): # turn off warnings when deprecated modules are imported import warnings warnings.filterwarnings("ignore",category=DeprecationWarning)@@ -69,7 +71,7 @@ Index: b/setup.py setup(# PyPI Metadata (PEP 301) name = "Python", version = sys.version.split()[0], -@@ -2231,9 +2237,7 @@ +@@ -2253,9 +2259,7 @@ def main(): ext_modules=[Extension('_struct', ['_struct.c'])], # Scripts to install@@ -80,3 +82,6 @@ Index: b/setup.py ) # --install-platlib +-- +2.7.4 +package/python/0018-Add-an-option-to-disable-lib2to3.patch renamed from package/python/102-optional-2to3.patch +22
-17@@ -1,22 +1,24 @@ -Add an option to disable lib2to3 +From d0cf9ebed6d34d820cf594578cf513797fb52772 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:27:49 +0100 +Subject: [PATCH] Add an option to disable lib2to3 lib2to3 is a library to convert Python 2.x code to Python 3.x. As such, it is probably not very useful on embedded system targets. Signed-off-by: Thomas Petazzoni <[email protected]> Signed-off-by: Samuel Martin <[email protected]> - --- - Makefile.pre.in | 24 +++++++++++++++++------- - configure.in | 6 ++++++ - setup.py | 5 +++-- - 3 files changed, 26 insertions(+), 9 deletions(-) + Makefile.pre.in | 11 ++++++++--- + configure.ac | 6 ++++++ + setup.py | 5 +++-- + 3 files changed, 17 insertions(+), 5 deletions(-) -Index: b/Makefile.pre.in -=================================================================== +diff --git a/Makefile.pre.in b/Makefile.pre.in +index 84d5fc6..b2a0490 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -967,7 +967,6 @@ +@@ -1045,7 +1045,6 @@ LIBSUBDIRS= lib-tk site-packages \ json \ sqlite3 \ logging bsddb csv importlib wsgiref \@@ -24,7 +26,7 @@ Index: b/Makefile.pre.in ctypes ctypes/macholib \ idlelib idlelib/Icons \ distutils distutils/command $(XMLLIBSUBDIRS) \ -@@ -986,8 +985,6 @@ +@@ -1064,8 +1063,6 @@ TESTSUBDIRS = lib-tk/test lib-tk/test/test_tkinter \ json/tests \ sqlite3/test \ bsddb/test \@@ -33,7 +35,7 @@ Index: b/Makefile.pre.in ctypes/test \ idlelib/idle_test \ distutils/tests \ -@@ -1001,6 +998,14 @@ +@@ -1079,6 +1076,14 @@ ifeq (@PYDOC@,yes) LIBSUBDIRS += pydoc_data endif@@ -48,11 +50,11 @@ Index: b/Makefile.pre.in libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c @for i in $(SCRIPTDIR) $(LIBDEST); \ do \ -Index: b/configure.ac -=================================================================== +diff --git a/configure.ac b/configure.ac +index 8bab160..270f337 100644 --- a/configure.ac +++ b/configure.ac -@@ -2645,6 +2645,12 @@ +@@ -2817,6 +2817,12 @@ AC_ARG_ENABLE(test-modules, AS_HELP_STRING([--disable-test-modules], [disable test modules]), [ TEST_MODULES="${enableval}" ], [ TEST_MODULES=yes ])@@ -65,11 +67,11 @@ Index: b/configure.ac # Check for enable-ipv6 AH_TEMPLATE(ENABLE_IPV6, [Define if --enable-ipv6 is specified]) AC_MSG_CHECKING([if --enable-ipv6 is specified]) -Index: b/setup.py -=================================================================== +diff --git a/setup.py b/setup.py +index 69771e2..f51ef8c 100644 --- a/setup.py +++ b/setup.py -@@ -2212,10 +2212,11 @@ +@@ -2234,10 +2234,11 @@ def main(): import warnings warnings.filterwarnings("ignore",category=DeprecationWarning)@@ -83,3 +85,6 @@ Index: b/setup.py setup(# PyPI Metadata (PEP 301) name = "Python", +-- +2.7.4 +package/python/0019-Add-option-to-disable-the-sqlite3-module.patch renamed from package/python/103-optional-sqlite.patch +35
-30@@ -1,38 +1,20 @@ -Add option to disable the sqlite3 module +From 570e1e81484d9bcbd30a7719b07d02785a5cab24 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:28:06 +0100 +Subject: [PATCH] Add option to disable the sqlite3 module Signed-off-by: Thomas Petazzoni <[email protected]> Signed-off-by: Samuel Martin <[email protected]> - --- - Makefile.pre.in | 24 +++++++++++++++++------- - configure.in | 9 +++++++++ - 2 file changed, 9 insertions(+) + Makefile.pre.in | 7 +++++-- + configure.ac | 9 +++++++++ + 2 files changed, 14 insertions(+), 2 deletions(-) -Index: b/configure.ac -=================================================================== ---- a/configure.ac -+++ b/configure.ac -@@ -2633,6 +2633,15 @@ - AC_CHECK_FUNCS(pthread_atfork) - fi - -+AC_SUBST(SQLITE3) -+AC_ARG_ENABLE(sqlite3, -+ AS_HELP_STRING([--disable-sqlite3], [disable sqlite3]), -+ [ SQLITE3="${enableval}" ], [ SQLITE3=yes ]) -+ -+if test "$SQLITE3" = "no" ; then -+ DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _sqlite3" -+fi -+ - AC_SUBST(PYDOC) - - AC_ARG_ENABLE(pydoc, -Index: b/Makefile.pre.in -=================================================================== +diff --git a/Makefile.pre.in b/Makefile.pre.in +index b2a0490..974a052 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -965,7 +965,6 @@ +@@ -1043,7 +1043,6 @@ LIBSUBDIRS= lib-tk site-packages \ email email/mime \ ensurepip ensurepip/_bundled \ json \@@ -40,7 +22,7 @@ Index: b/Makefile.pre.in logging bsddb csv importlib wsgiref \ ctypes ctypes/macholib \ idlelib idlelib/Icons \ -@@ -983,7 +982,6 @@ +@@ -1061,7 +1060,6 @@ TESTSUBDIRS = lib-tk/test lib-tk/test/test_tkinter \ test/tracedmodules \ email/test email/test/data \ json/tests \@@ -48,7 +30,7 @@ Index: b/Makefile.pre.in bsddb/test \ ctypes/test \ idlelib/idle_test \ -@@ -1006,6 +1004,11 @@ +@@ -1084,6 +1082,11 @@ TESTSUBDIRS += lib2to3/tests \ lib2to3/tests/data/fixers/myfixes endif@@ -60,3 +42,26 @@ Index: b/Makefile.pre.in libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c @for i in $(SCRIPTDIR) $(LIBDEST); \ do \ +diff --git a/configure.ac b/configure.ac +index 270f337..e9e1897 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -2805,6 +2805,15 @@ if test "$posix_threads" = "yes"; then + AC_CHECK_FUNCS(pthread_atfork) + fi + ++AC_SUBST(SQLITE3) ++AC_ARG_ENABLE(sqlite3, ++ AS_HELP_STRING([--disable-sqlite3], [disable sqlite3]), ++ [ SQLITE3="${enableval}" ], [ SQLITE3=yes ]) ++ ++if test "$SQLITE3" = "no" ; then ++ DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _sqlite3" ++fi ++ + AC_SUBST(PYDOC) + + AC_ARG_ENABLE(pydoc, +-- +2.7.4 +package/python/0020-Add-an-option-to-disable-the-tk-module.patch renamed from package/python/104-optional-tk.patch +18
-13@@ -1,18 +1,20 @@ -Add an option to disable the tk module +From 05fbe2527b6f87edeef11f288c36bcbaa378ca02 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:28:57 +0100 +Subject: [PATCH] Add an option to disable the tk module Signed-off-by: Thomas Petazzoni <[email protected]> Signed-off-by: Samuel Martin <[email protected]> - --- - Makefile.pre.in | 14 ++++++++++---- - configure.in | 9 +++++++++ - 2 files changed, 19 insertions(+), 4 deletions(-) + Makefile.pre.in | 11 ++++++++--- + configure.ac | 9 +++++++++ + 2 files changed, 17 insertions(+), 3 deletions(-) -Index: b/Makefile.pre.in -=================================================================== +diff --git a/Makefile.pre.in b/Makefile.pre.in +index 974a052..f7f025f 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -960,7 +960,7 @@ +@@ -1038,7 +1038,7 @@ PLATMACDIRS= plat-mac plat-mac/Carbon plat-mac/lib-scriptpackages \ plat-mac/lib-scriptpackages/SystemEvents \ plat-mac/lib-scriptpackages/Terminal PLATMACPATH=:plat-mac:plat-mac/lib-scriptpackages@@ -21,7 +23,7 @@ Index: b/Makefile.pre.in encodings compiler hotshot \ email email/mime \ ensurepip ensurepip/_bundled \ -@@ -974,8 +974,7 @@ +@@ -1052,8 +1052,7 @@ LIBSUBDIRS= lib-tk site-packages \ lib-old \ curses $(MACHDEPS)@@ -31,7 +33,7 @@ Index: b/Makefile.pre.in test/cjkencodings test/decimaltestdata test/xmltestdata \ test/imghdrdata \ test/subprocessdata \ -@@ -1009,6 +1008,12 @@ +@@ -1087,6 +1086,12 @@ LIBSUBDIRS += sqlite3 TESTSUBDIRS += sqlite3/test endif@@ -44,11 +46,11 @@ Index: b/Makefile.pre.in libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c @for i in $(SCRIPTDIR) $(LIBDEST); \ do \ -Index: b/configure.ac -=================================================================== +diff --git a/configure.ac b/configure.ac +index e9e1897..d0f032c 100644 --- a/configure.ac +++ b/configure.ac -@@ -2642,6 +2642,15 @@ +@@ -2814,6 +2814,15 @@ if test "$SQLITE3" = "no" ; then DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _sqlite3" fi@@ -64,3 +66,6 @@ Index: b/configure.ac AC_SUBST(PYDOC) AC_ARG_ENABLE(pydoc, +-- +2.7.4 +package/python/0021-Add-an-option-to-disable-the-curses-module.patch renamed from package/python/105-optional-curses.patch +16
-11@@ -1,18 +1,20 @@ -Add an option to disable the curses module +From dba12f15baad06cc7e17a275201cc022bb6c84f7 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:29:06 +0100 +Subject: [PATCH] Add an option to disable the curses module Signed-off-by: Thomas Petazzoni <[email protected]> Signed-off-by: Samuel Martin <[email protected]> - --- - Makefile.pre.in | 6 +++++- - configure.in | 9 +++++++++ + Makefile.pre.in | 6 +++++- + configure.ac | 9 +++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) -Index: b/Makefile.pre.in -=================================================================== +diff --git a/Makefile.pre.in b/Makefile.pre.in +index f7f025f..bd537d9 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -972,7 +972,7 @@ +@@ -1050,7 +1050,7 @@ LIBSUBDIRS= site-packages \ multiprocessing multiprocessing/dummy \ unittest \ lib-old \@@ -21,7 +23,7 @@ Index: b/Makefile.pre.in TESTSUBDIRS = test test/audiodata test/capath test/data \ test/cjkencodings test/decimaltestdata test/xmltestdata \ -@@ -1014,6 +1014,10 @@ +@@ -1092,6 +1092,10 @@ TESTSUBDIRS += lib-tk/test lib-tk/test/test_tkinter \ lib-tk/test/test_ttk endif@@ -32,11 +34,11 @@ Index: b/Makefile.pre.in libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c @for i in $(SCRIPTDIR) $(LIBDEST); \ do \ -Index: b/configure.ac -=================================================================== +diff --git a/configure.ac b/configure.ac +index d0f032c..ab081bc 100644 --- a/configure.ac +++ b/configure.ac -@@ -2651,6 +2651,15 @@ +@@ -2823,6 +2823,15 @@ if test "$TK" = "no"; then DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _tkinter" fi@@ -52,3 +54,6 @@ Index: b/configure.ac AC_SUBST(PYDOC) AC_ARG_ENABLE(pydoc, +-- +2.7.4 +package/python/0022-Add-an-option-to-disable-expat.patch renamed from package/python/106-optional-expat.patch +20
-15@@ -1,4 +1,7 @@ -Add an option to disable expat +From 5f0f30bf342cd2b13f98513c39fd8f17351b1a2f Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:29:20 +0100 +Subject: [PATCH] Add an option to disable expat This patch replaces the existing --with-system-expat option with a --with-expat={system,builtin,none} option, which allows to tell Python@@ -8,18 +11,17 @@ installation of XML modules). Signed-off-by: Thomas Petazzoni <[email protected]> Signed-off-by: Samuel Martin <[email protected]> - --- - Makefile.pre.in | 6 +++++- - configure.in | 18 +++++++++++++----- - setup.py | 2 +- + Makefile.pre.in | 6 +++++- + configure.ac | 18 +++++++++++++----- + setup.py | 2 +- 3 files changed, 19 insertions(+), 7 deletions(-) -Index: b/Makefile.pre.in -=================================================================== +diff --git a/Makefile.pre.in b/Makefile.pre.in +index bd537d9..e5d0dd7 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -968,7 +968,7 @@ +@@ -1046,7 +1046,7 @@ LIBSUBDIRS= site-packages \ logging bsddb csv importlib wsgiref \ ctypes ctypes/macholib \ idlelib idlelib/Icons \@@ -28,7 +30,7 @@ Index: b/Makefile.pre.in multiprocessing multiprocessing/dummy \ unittest \ lib-old \ -@@ -1018,6 +1018,10 @@ +@@ -1096,6 +1096,10 @@ ifeq (@CURSES@,yes) LIBSUBDIRS += curses endif@@ -39,11 +41,11 @@ Index: b/Makefile.pre.in libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c @for i in $(SCRIPTDIR) $(LIBDEST); \ do \ -Index: b/configure.ac -=================================================================== +diff --git a/configure.ac b/configure.ac +index ab081bc..63ee545 100644 --- a/configure.ac +++ b/configure.ac -@@ -2298,13 +2298,21 @@ +@@ -2470,13 +2470,21 @@ PKG_PROG_PKG_CONFIG AC_SUBST(DISABLED_EXTENSIONS) # Check for use of the system expat library@@ -70,11 +72,11 @@ Index: b/configure.ac # Check for use of the system libffi library AC_MSG_CHECKING(for --with-system-ffi) -Index: b/setup.py -=================================================================== +diff --git a/setup.py b/setup.py +index f51ef8c..c68f6b4 100644 --- a/setup.py +++ b/setup.py -@@ -1463,7 +1463,7 @@ +@@ -1483,7 +1483,7 @@ class PyBuildExt(build_ext): # # More information on Expat can be found at www.libexpat.org. #@@ -83,3 +85,6 @@ Index: b/setup.py expat_inc = [] define_macros = [] expat_lib = ['expat'] +-- +2.7.4 +package/python/0023-Add-an-option-to-disable-CJK-codecs.patch renamed from package/python/107-optional-codecs-cjk.patch +11
-6@@ -1,16 +1,18 @@ -Add an option to disable CJK codecs +From cb848dae763a3f57e31d734d3be6889f660fa0d0 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:29:31 +0100 +Subject: [PATCH] Add an option to disable CJK codecs Signed-off-by: Thomas Petazzoni <[email protected]> - --- - configure.in | 6 ++++++ + configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) -Index: b/configure.ac -=================================================================== +diff --git a/configure.ac b/configure.ac +index 63ee545..6a854ab 100644 --- a/configure.ac +++ b/configure.ac -@@ -2650,6 +2650,12 @@ +@@ -2822,6 +2822,12 @@ if test "$SQLITE3" = "no" ; then DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _sqlite3" fi@@ -23,3 +25,6 @@ Index: b/configure.ac AC_SUBST(TK) AC_ARG_ENABLE(tk, AS_HELP_STRING([--disable-tk], [disable tk]), +-- +2.7.4 +package/python/0024-Add-an-option-to-disable-NIS.patch renamed from package/python/108-optional-nis.patch +11
-6@@ -1,19 +1,21 @@ -Add an option to disable NIS +From 133776d396b8eaf0243484dc990a53576de9685f Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:29:41 +0100 +Subject: [PATCH] Add an option to disable NIS NIS is not necessarily available in uClibc, so we need an option to not compile support for it. Signed-off-by: Thomas Petazzoni <[email protected]> - --- - configure.in | 6 ++++++ + configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) -Index: b/configure.ac -=================================================================== +diff --git a/configure.ac b/configure.ac +index 6a854ab..4c2cbc1 100644 --- a/configure.ac +++ b/configure.ac -@@ -2656,6 +2656,12 @@ +@@ -2828,6 +2828,12 @@ AC_ARG_ENABLE(codecs-cjk, DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _codecs_kr _codecs_jp _codecs_cn _codecs_tw _codecs_hk" fi])@@ -26,3 +28,6 @@ Index: b/configure.ac AC_SUBST(TK) AC_ARG_ENABLE(tk, AS_HELP_STRING([--disable-tk], [disable tk]), +-- +2.7.4 +package/python/0025-Add-an-option-to-disable-unicodedata.patch renamed from package/python/109-optional-unicodedata.patch +11
-6@@ -1,16 +1,18 @@ -Add an option to disable unicodedata +From aa78e3684c0e8f7a5e910e838f9eca2631262048 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:29:52 +0100 +Subject: [PATCH] Add an option to disable unicodedata Signed-off-by: Thomas Petazzoni <[email protected]> - --- - configure.in | 6 ++++++ + configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) -Index: b/configure.ac -=================================================================== +diff --git a/configure.ac b/configure.ac +index 4c2cbc1..09cb3de 100644 --- a/configure.ac +++ b/configure.ac -@@ -2662,6 +2662,12 @@ +@@ -2834,6 +2834,12 @@ AC_ARG_ENABLE(nis, DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} nis" fi])@@ -23,3 +25,6 @@ Index: b/configure.ac AC_SUBST(TK) AC_ARG_ENABLE(tk, AS_HELP_STRING([--disable-tk], [disable tk]), +-- +2.7.4 +package/python/0026-Add-an-option-to-disable-bsddb.patch renamed from package/python/110-optional-db.patch +18
-13@@ -1,4 +1,7 @@ -Add an option to disable bsddb +From cfad2bcae8f572a9422ce5a6adb4caa7c0e521ad Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:30:06 +0100 +Subject: [PATCH] Add an option to disable bsddb bsddb has an external dependency on Berkeley DB. Since we want to be able to build Python without it, this patch adds an option to disable@@ -6,17 +9,16 @@ the build/installation of this Python module. Signed-off-by: Thomas Petazzoni <[email protected]> Signed-off-by: Samuel Martin <[email protected]> - --- - Makefile.pre.in | 10 ++++++++-- - configure.in | 22 ++++++++++++++++++++++ - 2 files changed, 30 insertions(+), 2 deletions(-) + Makefile.pre.in | 8 ++++++-- + configure.ac | 22 ++++++++++++++++++++++ + 2 files changed, 28 insertions(+), 2 deletions(-) -Index: b/Makefile.pre.in -=================================================================== +diff --git a/Makefile.pre.in b/Makefile.pre.in +index e5d0dd7..2582574 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -965,7 +965,7 @@ +@@ -1043,7 +1043,7 @@ LIBSUBDIRS= site-packages \ email email/mime \ ensurepip ensurepip/_bundled \ json \@@ -25,7 +27,7 @@ Index: b/Makefile.pre.in ctypes ctypes/macholib \ idlelib idlelib/Icons \ distutils distutils/command \ -@@ -981,7 +981,6 @@ +@@ -1059,7 +1059,6 @@ TESTSUBDIRS = test test/audiodata test/capath test/data \ test/tracedmodules \ email/test email/test/data \ json/tests \@@ -33,7 +35,7 @@ Index: b/Makefile.pre.in ctypes/test \ idlelib/idle_test \ distutils/tests \ -@@ -1022,6 +1021,11 @@ +@@ -1100,6 +1099,11 @@ ifeq (@EXPAT@,yes) LIBSUBDIRS += $(XMLLIBSUBDIRS) endif@@ -45,11 +47,11 @@ Index: b/Makefile.pre.in libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c @for i in $(SCRIPTDIR) $(LIBDEST); \ do \ -Index: b/configure.ac -=================================================================== +diff --git a/configure.ac b/configure.ac +index 09cb3de..524614c 100644 --- a/configure.ac +++ b/configure.ac -@@ -2662,6 +2662,28 @@ +@@ -2834,6 +2834,28 @@ AC_ARG_ENABLE(nis, DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} nis" fi])@@ -78,3 +80,6 @@ Index: b/configure.ac AC_ARG_ENABLE(unicodedata, AS_HELP_STRING([--disable-unicodedata], [disable unicodedata]), [ if test "$enableval" = "no"; then +-- +2.7.4 +package/python/0027-Add-an-option-to-disable-the-ssl-module.patch renamed from package/python/111-optional-ssl.patch +11
-6@@ -1,16 +1,18 @@ -Add an option to disable the ssl module +From 45fcf92ec1e89e0afd0bf2bbc7a1008b56135ba3 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:30:22 +0100 +Subject: [PATCH] Add an option to disable the ssl module Signed-off-by: Thomas Petazzoni <[email protected]> - --- - configure.in | 6 ++++++ + configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) -Index: b/configure.ac -=================================================================== +diff --git a/configure.ac b/configure.ac +index 524614c..743707a 100644 --- a/configure.ac +++ b/configure.ac -@@ -2662,6 +2662,12 @@ +@@ -2834,6 +2834,12 @@ AC_ARG_ENABLE(nis, DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} nis" fi])@@ -23,3 +25,6 @@ Index: b/configure.ac AC_ARG_ENABLE(dbm, AS_HELP_STRING([--disable-dbm], [disable DBM]), [ if test "$enableval" = "no"; then +-- +2.7.4 +package/python/0028-Add-an-option-to-disable-the-bz2-module.patch renamed from package/python/112-optional-bzip2.patch +11
-5@@ -1,15 +1,18 @@ -Add an option to disable the bz2 module +From 6b10788fa040442ace100c3a28cbfff29c9db471 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:30:33 +0100 +Subject: [PATCH] Add an option to disable the bz2 module Signed-off-by: Thomas Petazzoni <[email protected]> --- - configure.in | 6 ++++++ + configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) -Index: b/configure.ac -=================================================================== +diff --git a/configure.ac b/configure.ac +index 743707a..f1762e9 100644 --- a/configure.ac +++ b/configure.ac -@@ -2668,6 +2668,12 @@ +@@ -2840,6 +2840,12 @@ AC_ARG_ENABLE(ssl, DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} ssl" fi])@@ -22,3 +25,6 @@ Index: b/configure.ac AC_ARG_ENABLE(dbm, AS_HELP_STRING([--disable-dbm], [disable DBM]), [ if test "$enableval" = "no"; then +-- +2.7.4 +package/python/0029-Add-an-option-to-disable-the-zlib-module.patch renamed from package/python/113-optional-zlib.patch +11
-5@@ -1,15 +1,18 @@ -Add an option to disable the zlib module +From af2c56aa0a5900272cc2d04ce667d4b38e34b596 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:30:45 +0100 +Subject: [PATCH] Add an option to disable the zlib module Signed-off-by: Thomas Petazzoni <[email protected]> --- - configure.in | 6 ++++++ + configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) -Index: b/configure.ac -=================================================================== +diff --git a/configure.ac b/configure.ac +index f1762e9..291ba35 100644 --- a/configure.ac +++ b/configure.ac -@@ -2674,6 +2674,12 @@ +@@ -2846,6 +2846,12 @@ AC_ARG_ENABLE(bz2, DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} bz2" fi])@@ -22,3 +25,6 @@ Index: b/configure.ac AC_ARG_ENABLE(dbm, AS_HELP_STRING([--disable-dbm], [disable DBM]), [ if test "$enableval" = "no"; then +-- +2.7.4 +package/python/0030-Do-not-install-the-idle-editor.patch renamed from package/python/114-remove-idle-editor.patch +18
-8@@ -1,4 +1,7 @@ -Do not install the idle editor +From 4b7c45c756dccfd3b5ece36fe572042353d1c2f0 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:30:56 +0100 +Subject: [PATCH] Do not install the idle editor IDLE is the Python IDE built with the tkinter GUI toolkit. Since it's highly unlikely to ever be useful in an embedded Linux system@@ -7,12 +10,16 @@ idle and the related Python modules. It saves 800 KB-900 KB of installed .pyc files. Signed-off-by: Thomas Petazzoni <[email protected]> +--- + Makefile.pre.in | 2 -- + setup.py | 2 +- + 2 files changed, 1 insertion(+), 3 deletions(-) -Index: b/Makefile.pre.in -=================================================================== +diff --git a/Makefile.pre.in b/Makefile.pre.in +index 2582574..3cfc590 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -967,7 +967,6 @@ +@@ -1045,7 +1045,6 @@ LIBSUBDIRS= site-packages \ json \ logging csv importlib wsgiref \ ctypes ctypes/macholib \@@ -20,7 +27,7 @@ Index: b/Makefile.pre.in distutils distutils/command \ multiprocessing multiprocessing/dummy \ unittest \ -@@ -982,7 +981,6 @@ +@@ -1060,7 +1059,6 @@ TESTSUBDIRS = test test/audiodata test/capath test/data \ email/test email/test/data \ json/tests \ ctypes/test \@@ -28,11 +35,11 @@ Index: b/Makefile.pre.in distutils/tests \ unittest/test -Index: b/setup.py -=================================================================== +diff --git a/setup.py b/setup.py +index c68f6b4..8045a9b 100644 --- a/setup.py +++ b/setup.py -@@ -2212,7 +2212,7 @@ +@@ -2234,7 +2234,7 @@ def main(): import warnings warnings.filterwarnings("ignore",category=DeprecationWarning)@@ -41,3 +48,6 @@ Index: b/setup.py if not '--disable-pydoc' in sysconfig.get_config_var("CONFIG_ARGS"): scripts += [ 'Tools/scripts/pydoc' ] if not '--disable-lib2to3' in sysconfig.get_config_var("CONFIG_ARGS"): +-- +2.7.4 +package/python/0031-Add-an-option-to-disable-the-ossaudiodev-module.patch renamed from package/python/115-optional-ossaudiodev.patch +9
-6@@ -1,18 +1,18 @@ -From 30351d9b41a03c43d627d52d46e49ab91bfe342d Mon Sep 17 00:00:00 2001 +From 6af0f179d3db956146bbabac8748675e3abc1f78 Mon Sep 17 00:00:00 2001 From: Zoltan Gyarmati <[email protected]> -Date: Thu, 8 Jan 2015 11:41:40 +0100 -Subject: [PATCH 1/1] Add an option to disable the ossaudiodev module +Date: Tue, 7 Mar 2017 22:31:22 +0100 +Subject: [PATCH] Add an option to disable the ossaudiodev module Signed-off-by: Zoltan Gyarmati <[email protected]> --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) -Index: b/configure.ac -=================================================================== +diff --git a/configure.ac b/configure.ac +index 291ba35..8dc573e 100644 --- a/configure.ac +++ b/configure.ac -@@ -2726,6 +2726,12 @@ +@@ -2898,6 +2898,12 @@ if test "$CURSES" = "no"; then DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _curses _curses_panel" fi@@ -25,3 +25,6 @@ Index: b/configure.ac AC_SUBST(PYDOC) AC_ARG_ENABLE(pydoc, +-- +2.7.4 +package/python/006-cross-compile-getaddrinfo.patch deleted +0
-13@@ -1,13 +0,0 @@ -Index: b/configure.ac -=================================================================== ---- a/configure.ac -+++ b/configure.ac -@@ -3353,7 +3353,7 @@ - - AC_MSG_RESULT($ac_cv_buggy_getaddrinfo) - --if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes -+if test $have_getaddrinfo = no || test "$cross_compiling" != "yes" -a "$ac_cv_buggy_getaddrinfo" = yes - then - if test $ipv6 = yes - thenpackage/python/018-fix-add-gcc-paths-logic.patch deleted +0
-28@@ -1,27 +0,0 @@ -Override system locale and set to default when adding gcc paths - -Forces the use of the default locale in the function -add_gcc_paths, which is called when cross compiling to add the -include and library paths. This is necessary because otherwise -the gcc output is localized and the output parsing fails, which -results in no paths added and detect_modules not able to find -any system library (eg. libz, libssl, etc.) - -[Thomas: patch taken from https://bugs.python.org/issue23767.] - -Signed-off-by: Samuel Cabrero <[email protected]> -Signed-off-by: Thomas Petazzoni <[email protected]> - -Index: b/setup.py -=================================================================== ---- a/setup.py -+++ b/setup.py -@@ -414,7 +414,7 @@ - tmpfile = os.path.join(self.build_temp, 'gccpaths') - if not os.path.exists(self.build_temp): - os.makedirs(self.build_temp) -- ret = os.system('%s -E -v - </dev/null 2>%s 1>/dev/null' % (gcc, tmpfile)) -+ ret = os.system('LC_ALL=C %s -E -v - </dev/null 2>%s 1>/dev/null' % (gcc, tmpfile)) - is_gcc = False - in_incdirs = False - inc_dirs = [] --2.7.4
PATCH 2/6 python: make hashlib and readline modules really optional
In reply to Thomas PetazzoniThe BR2_PACKAGE_PYTHON_{READLINE,HASHLIB} options were so far only bringing in the necessary dependencies, relying on the Python build system to automatically detect them.
However, this means that even if one of those option was disabled, if their dependency was found, Python would build the corresponding module, which is really not what the user would expect.
For example, if you have:
BR2_PACKAGE_READLINE=y
# BR2_PACKAGE_PYTHON_READLINE is not set
Then you would still get the readline Python module built and installed.
This commit fixes that by adding new --{enable,disable} options, and use them in python.mk.
--- ...-Add-option-to-disable-the-hashlib-module.patch | 30 ++++++++++++++++++++++ ...-Add-an-option-to-disable-readline-module.patch | 30 ++++++++++++++++++++++ package/python/python.mk | 4 +++ 3 files changed, 64 insertions(+) create mode 100644 package/python/0032-Add-option-to-disable-the-hashlib-module.patch create mode 100644 package/python/0033-Add-an-option-to-disable-readline-module.patch
package/python/0032-Add-option-to-disable-the-hashlib-module.patch new file +30 -0
@@ -0,0 +1,30 @@ +From f11dc326ae216911a67bd563b619f39522c14bf2 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:33:02 +0100 +Subject: [PATCH] Add option to disable the hashlib module + +Signed-off-by: Thomas Petazzoni <[email protected]> +--- + configure.ac | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/configure.ac b/configure.ac +index 8dc573e..854724d 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -2840,6 +2840,12 @@ AC_ARG_ENABLE(ssl, + DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} ssl" + fi]) + ++AC_ARG_ENABLE(hashlib, ++ AS_HELP_STRING([--disable-hashlib], [disable hashlib]), ++ [ if test "$enableval" = "no"; then ++ DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _hashlib" ++ fi]) ++ + AC_ARG_ENABLE(bz2, + AS_HELP_STRING([--disable-bz2], [disable BZIP2]), + [ if test "$enableval" = "no"; then +-- +2.7.4 +
package/python/0033-Add-an-option-to-disable-readline-module.patch new file +30 -0
@@ -0,0 +1,30 @@ +From 6b461f698bd33b3493207baf79f4ee02286be8e8 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:33:55 +0100 +Subject: [PATCH] Add an option to disable readline module + +Signed-off-by: Thomas Petazzoni <[email protected]> +--- + configure.ac | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/configure.ac b/configure.ac +index 854724d..0a06497 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -2846,6 +2846,12 @@ AC_ARG_ENABLE(hashlib, + DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _hashlib" + fi]) + ++AC_ARG_ENABLE(readline, ++ AS_HELP_STRING([--disable-readline], [disable readline]), ++ [ if test "$enableval" = "no"; then ++ DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} readline" ++ fi]) ++ + AC_ARG_ENABLE(bz2, + AS_HELP_STRING([--disable-bz2], [disable BZIP2]), + [ if test "$enableval" = "no"; then +-- +2.7.4 +
package/python/python.mk +4 -0
@@ -62,6 +62,8 @@ PYTHON_INSTALL_STAGING = YES ifeq ($(BR2_PACKAGE_PYTHON_READLINE),y) PYTHON_DEPENDENCIES += readline +else +PYTHON_CONF_OPTS += --disable-readline endif ifeq ($(BR2_PACKAGE_PYTHON_CURSES),y)
@@ -125,6 +127,8 @@ endif ifeq ($(BR2_PACKAGE_PYTHON_HASHLIB),y) PYTHON_DEPENDENCIES += openssl +else +PYTHON_CONF_OPTS += --disable-hashlib endif ifeq ($(BR2_PACKAGE_PYTHON_OSSAUDIODEV),y)
Signature · 1 line
2.7.4
PATCH 2/6 python: make hashlib and readline modules really optional
Quoted 13 lines · Thomas Petazzoni
The BR2_PACKAGE_PYTHON_{READLINE,HASHLIB} options were so far only bringing in the necessary dependencies, relying on the Python build system to automatically detect them.
However, this means that even if one of those option was disabled, if their dependency was found, Python would build the corresponding module, which is really not what the user would expect.
For example, if you have:
BR2_PACKAGE_READLINE=y
#BR2_PACKAGE_PYTHON_READLINEis not set
Quoted 6 lines
Then you would still get the readline Python module built and installed.
This commit fixes that by adding new --{enable,disable} options, and use them in python.mk.
Signed-off-by Thomas Petazzoni <[email protected]>
Quoted 105 lines
--- ...-Add-option-to-disable-the-hashlib-module.patch | 30 ++++++++++++++++++++++ ...-Add-an-option-to-disable-readline-module.patch | 30 ++++++++++++++++++++++ package/python/python.mk | 4 +++ 3 files changed, 64 insertions(+) create mode 100644 package/python/0032-Add-option-to-disable-the-hashlib-module.patch create mode 100644 package/python/0033-Add-an-option-to-disable-readline-module.patchpackage/python/0032-Add-option-to-disable-the-hashlib-module.patch new file +30
-0@@ -0,0 +1,30 @@ +From f11dc326ae216911a67bd563b619f39522c14bf2 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:33:02 +0100 +Subject: [PATCH] Add option to disable the hashlib module + +Signed-off-by: Thomas Petazzoni <[email protected]> +--- + configure.ac | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/configure.ac b/configure.ac +index 8dc573e..854724d 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -2840,6 +2840,12 @@ AC_ARG_ENABLE(ssl, + DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} ssl" + fi]) + ++AC_ARG_ENABLE(hashlib, ++ AS_HELP_STRING([--disable-hashlib], [disable hashlib]), ++ [ if test "$enableval" = "no"; then ++ DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _hashlib" ++ fi]) ++ + AC_ARG_ENABLE(bz2, + AS_HELP_STRING([--disable-bz2], [disable BZIP2]), + [ if test "$enableval" = "no"; then +-- +2.7.4 +package/python/0033-Add-an-option-to-disable-readline-module.patch new file +30
-0@@ -0,0 +1,30 @@ +From 6b461f698bd33b3493207baf79f4ee02286be8e8 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 22:33:55 +0100 +Subject: [PATCH] Add an option to disable readline module + +Signed-off-by: Thomas Petazzoni <[email protected]> +--- + configure.ac | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/configure.ac b/configure.ac +index 854724d..0a06497 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -2846,6 +2846,12 @@ AC_ARG_ENABLE(hashlib, + DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _hashlib" + fi]) + ++AC_ARG_ENABLE(readline, ++ AS_HELP_STRING([--disable-readline], [disable readline]), ++ [ if test "$enableval" = "no"; then ++ DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} readline" ++ fi]) ++ + AC_ARG_ENABLE(bz2, + AS_HELP_STRING([--disable-bz2], [disable BZIP2]), + [ if test "$enableval" = "no"; then +-- +2.7.4 +package/python/python.mk +4
-1@@ -62,6 +62,8 @@ PYTHON_INSTALL_STAGING = YES ifeq ($(BR2_PACKAGE_PYTHON_READLINE),y) PYTHON_DEPENDENCIES += readline +else +PYTHON_CONF_OPTS += --disable-readline endif ifeq ($(BR2_PACKAGE_PYTHON_CURSES),y)@@ -125,6 +127,8 @@ endif ifeq ($(BR2_PACKAGE_PYTHON_HASHLIB),y) PYTHON_DEPENDENCIES += openssl +else +PYTHON_CONF_OPTS += --disable-hashlib endif ifeq ($(BR2_PACKAGE_PYTHON_OSSAUDIODEV),y) --2.7.4
PATCH 3/6 python: fix disabling the SSL module
In reply to Thomas PetazzoniThe Python extension is _ssl, not ssl. Due to this mistake in the patch, even with --disable-ssl passed on the command line, the _ssl.so Python extension would still be built.
--- package/python/0027-Add-an-option-to-disable-the-ssl-module.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
package/python/0027-Add-an-option-to-disable-the-ssl-module.patch +3 -3
@@ -1,4 +1,4 @@ -From 45fcf92ec1e89e0afd0bf2bbc7a1008b56135ba3 Mon Sep 17 00:00:00 2001 +From fc16ab40e3e6a5b4deed2fa7c5475fa216ff8d17 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Tue, 7 Mar 2017 22:30:22 +0100 Subject: [PATCH] Add an option to disable the ssl module
@@ -9,7 +9,7 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac -index 524614c..743707a 100644 +index 524614c..cadac82 100644 --- a/configure.ac +++ b/configure.ac @@ -2834,6 +2834,12 @@ AC_ARG_ENABLE(nis,
@@ -19,7 +19,7 @@ index 524614c..743707a 100644 +AC_ARG_ENABLE(ssl, + AS_HELP_STRING([--disable-ssl], [disable SSL]), + [ if test "$enableval" = "no"; then -+ DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} ssl" ++ DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _ssl" + fi]) + AC_ARG_ENABLE(dbm,
Signature · 1 line
2.7.4
PATCH 3/6 python: fix disabling the SSL module
Quoted 5 lines · Thomas Petazzoni
The Python extension is
_ssl, not ssl. Due to this mistake in the patch, even with --disable-ssl passed on the command line, the _ssl.so Python extension would still be built.Signed-off-by Thomas Petazzoni <[email protected]>
Quoted 35 lines
--- package/python/0027-Add-an-option-to-disable-the-ssl-module.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)package/python/0027-Add-an-option-to-disable-the-ssl-module.patch +3
-4@@ -1,4 +1,4 @@ -From 45fcf92ec1e89e0afd0bf2bbc7a1008b56135ba3 Mon Sep 17 00:00:00 2001 +From fc16ab40e3e6a5b4deed2fa7c5475fa216ff8d17 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Tue, 7 Mar 2017 22:30:22 +0100 Subject: [PATCH] Add an option to disable the ssl module@@ -9,7 +9,7 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac -index 524614c..743707a 100644 +index 524614c..cadac82 100644 --- a/configure.ac +++ b/configure.ac @@ -2834,6 +2834,12 @@ AC_ARG_ENABLE(nis,@@ -19,7 +19,7 @@ index 524614c..743707a 100644 +AC_ARG_ENABLE(ssl, + AS_HELP_STRING([--disable-ssl], [disable SSL]), + [ if test "$enableval" = "no"; then -+ DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} ssl" ++ DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _ssl" + fi]) + AC_ARG_ENABLE(dbm, --2.7.4
PATCH 4/6 python3: refresh Git formatted patches
In reply to Thomas PetazzoniThis refreshes the set of python3 patches so they apply cleanly on the v3.5.2 tag of cpython Github repository.
---
...up.py-do-not-add-invalid-header-locations.patch | 8 ++++----
...the-install-location-of-_sysconfigdata.py.patch | 22 ++++++++++----------
...3-Make-the-build-of-pyc-files-conditional.patch | 14 ++++++-------
...gy_getaddrinfo-configure-test-when-cross-.patch | 8 ++++----
...ructure-to-disable-the-build-of-certain-e.patch | 16 +++++++--------
...006-distutils-sysconfig-use-sysconfigdata.patch | 4 ++--
...ibrary-header-paths-for-cross-compilation.patch | 6 +++---
...n-t-look-in-usr-lib-termcap-for-libraries.patch | 8 ++++----
.../python3/0009-Don-t-add-multiarch-paths.patch | 8 ++++----
.../0010-Abort-on-failed-module-build.patch | 8 ++++----
package/python3/0011-Serial-ioctl-workaround.patch | 4 ++--
...st-the-shebang-of-Python-scripts-for-cros.patch | 4 ++--
...-config.sh.in-ensure-sed-invocations-only.patch | 4 ++--
...-harcode-invalid-path-to-ncursesw-headers.patch | 8 ++++----
...stem-locale-and-set-to-default-when-addin.patch | 8 ++++----
...0016-Add-importlib-fix-for-PEP-3147-issue.patch | 12 +++++------
...on-to-disable-installation-of-test-module.patch | 14 ++++++-------
.../0018-Add-an-option-to-disable-pydoc.patch | 22 ++++++++++----------
.../0019-Add-an-option-to-disable-lib2to3.patch | 24 +++++++++++-----------
...-Add-option-to-disable-the-sqlite3-module.patch | 16 +++++++--------
...21-Add-an-option-to-disable-the-tk-module.patch | 16 +++++++--------
...dd-an-option-to-disable-the-curses-module.patch | 14 ++++++-------
.../0023-Add-an-option-to-disable-expat.patch | 18 ++++++++--------
.../0024-Add-an-option-to-disable-CJK-codecs.patch | 8 ++++----
.../0025-Add-an-option-to-disable-NIS.patch | 8 ++++----
...0026-Add-an-option-to-disable-unicodedata.patch | 8 ++++----
.../0027-Add-an-option-to-disable-IDLE.patch | 20 +++++++++---------
.../0028-Add-an-option-to-disable-decimal.patch | 12 +++++------
...-option-to-disable-the-ossaudiodev-module.patch | 8 ++++----
...N_FOR_BUILD-and-FREEZE_IMPORTLIB_FOR_BUIL.patch | 20 +++++++++---------
...Add-an-option-to-disable-openssl-support.patch} | 9 +++++++-
31 files changed, 183 insertions(+), 176 deletions(-)
rename package/python3/{0031-Add-an-option-to-disable-openssl.patch => 0031-Add-an-option-to-disable-openssl-support.patch} (73%)package/python3/0001-setup.py-do-not-add-invalid-header-locations.patch +4 -4
@@ -1,4 +1,4 @@ -From d6093bad6c700312ff7ff4a7bb15c815dda6f46b Mon Sep 17 00:00:00 2001 +From 093733d806e32ef47db5c6d2379d7c93ae71524b Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:28:34 +0100 Subject: [PATCH] setup.py: do not add invalid header locations
@@ -28,10 +28,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py -index da67731..dbd2a3c 100644 +index 174ce72..b67d913 100644 --- a/setup.py +++ b/setup.py -@@ -511,7 +511,8 @@ class PyBuildExt(build_ext): +@@ -534,7 +534,8 @@ class PyBuildExt(build_ext): add_dir_to_list(dir_list, directory) if os.path.normpath(sys.base_prefix) != '/usr' \
@@ -42,5 +42,5 @@ index da67731..dbd2a3c 100644 # (PYTHONFRAMEWORK is set) to avoid # linking problems when # building a framework with different architectures than -- -2.6.4 +2.7.4
package/python3/0002-Change-the-install-location-of-_sysconfigdata.py.patch +11 -11
@@ -1,4 +1,4 @@ -From 4ac038d30ec71b3f223ac7c91613856dd82b6347 Mon Sep 17 00:00:00 2001 +From 1fca2c29a600b1eaa28da19e8c258fa0300c4eaf Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:29:04 +0100 Subject: [PATCH] Change the install location of _sysconfigdata.py
@@ -25,10 +25,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Makefile.pre.in b/Makefile.pre.in -index 823def3..4d2a061 100644 +index 87528a0..5a258e0 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -585,6 +585,9 @@ pybuilddir.txt: $(BUILDPYTHON) +@@ -588,6 +588,9 @@ pybuilddir.txt: $(BUILDPYTHON) rm -f ./pybuilddir.txt ; \ exit 1 ; \ fi
@@ -36,9 +36,9 @@ index 823def3..4d2a061 100644 + mkdir -p `cat pysysconfigdatadir.txt` + cp `cat pybuilddir.txt`/_sysconfigdata.py `cat pysysconfigdatadir.txt` - # Build the shared modules - # Under GNU make, MAKEFLAGS are sorted and normalized; the 's' for -@@ -1235,7 +1238,7 @@ libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c + # This is shared by the math and cmath modules + Modules/_math.o: Modules/_math.c Modules/_math.h +@@ -1261,7 +1264,7 @@ libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c else true; \ fi; \ done
@@ -47,7 +47,7 @@ index 823def3..4d2a061 100644 do \ if test -x $$i; then \ $(INSTALL_SCRIPT) $$i $(DESTDIR)$(LIBDEST); \ -@@ -1245,6 +1248,11 @@ libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c +@@ -1271,6 +1274,11 @@ libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c echo $(INSTALL_DATA) $$i $(LIBDEST); \ fi; \ done
@@ -59,7 +59,7 @@ index 823def3..4d2a061 100644 @for d in $(LIBSUBDIRS); \ do \ a=$(srcdir)/Lib/$$d; \ -@@ -1580,7 +1588,7 @@ clean: pycremoval +@@ -1606,7 +1614,7 @@ clean: pycremoval find build -name 'fficonfig.h' -exec rm -f {} ';' || true find build -name '*.py' -exec rm -f {} ';' || true find build -name '*.py[co]' -exec rm -f {} ';' || true
@@ -69,10 +69,10 @@ index 823def3..4d2a061 100644 -rm -f Programs/_testembed Programs/_freeze_importlib -rm -rf build diff --git a/configure.ac b/configure.ac -index 694293e..76b70a0 100644 +index 1c07c05..8d0a43b 100644 --- a/configure.ac +++ b/configure.ac -@@ -70,7 +70,7 @@ if test "$cross_compiling" = yes; then +@@ -71,7 +71,7 @@ if test "$cross_compiling" = yes; then AC_MSG_ERROR([python$PACKAGE_VERSION interpreter not found]) fi AC_MSG_RESULT($interp)
@@ -82,5 +82,5 @@ index 694293e..76b70a0 100644 elif test "$cross_compiling" = maybe; then AC_MSG_ERROR([Cross compiling required --host=HOST-TUPLE and --build=ARCH]) -- -2.6.4 +2.7.4
package/python3/0003-Make-the-build-of-pyc-files-conditional.patch +7 -7
@@ -1,4 +1,4 @@ -From 28f81597314ea3ed03935b519453a55cf6c3c20d Mon Sep 17 00:00:00 2001 +From 5df8e9556e8026dd19cf932fa8f2b726f56182d1 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:29:35 +0100 Subject: [PATCH] Make the build of pyc files conditional
@@ -13,10 +13,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 2 files changed, 8 insertions(+) diff --git a/Makefile.pre.in b/Makefile.pre.in -index 4d2a061..272f312 100644 +index 5a258e0..6a7d974 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -1283,6 +1283,7 @@ libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c +@@ -1309,6 +1309,7 @@ libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c $(INSTALL_DATA) $(srcdir)/Modules/xxmodule.c \ $(DESTDIR)$(LIBDEST)/distutils/tests ; \ fi
@@ -24,7 +24,7 @@ index 4d2a061..272f312 100644 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ $(PYTHON_FOR_BUILD) -Wi $(DESTDIR)$(LIBDEST)/compileall.py \ -d $(LIBDEST) -f \ -@@ -1310,6 +1311,7 @@ libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c +@@ -1336,6 +1337,7 @@ libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c $(PYTHON_FOR_BUILD) -Wi -OO $(DESTDIR)$(LIBDEST)/compileall.py \ -d $(LIBDEST)/site-packages -f \ -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
@@ -33,10 +33,10 @@ index 4d2a061..272f312 100644 $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/Grammar.txt -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ diff --git a/configure.ac b/configure.ac -index 76b70a0..66d4642 100644 +index 8d0a43b..db0e336 100644 --- a/configure.ac +++ b/configure.ac -@@ -1056,6 +1056,12 @@ fi +@@ -1074,6 +1074,12 @@ fi AC_MSG_CHECKING(LDLIBRARY)
@@ -50,5 +50,5 @@ index 76b70a0..66d4642 100644 # library that we build, but we do not want to link against it (we # will find it with a -framework option). For this reason there is an -- -2.6.4 +2.7.4
package/python3/0004-Disable-buggy_getaddrinfo-configure-test-when-cross-.patch +4 -4
@@ -1,4 +1,4 @@ -From 093caf46b7a742ee2f7bcf617a915ac1653aa8ac Mon Sep 17 00:00:00 2001 +From 449ac686b4c0f73bbbf0202c4a5689b5ddb37d53 Mon Sep 17 00:00:00 2001 From: Vanya Sergeev <[email protected]> Date: Wed, 23 Dec 2015 11:30:33 +0100 Subject: [PATCH] Disable buggy_getaddrinfo configure test when cross-compiling
@@ -10,10 +10,10 @@ Signed-off-by: Vanya Sergeev <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac -index 66d4642..c492594 100644 +index db0e336..f57f2eb 100644 --- a/configure.ac +++ b/configure.ac -@@ -3662,7 +3662,7 @@ fi +@@ -3744,7 +3744,7 @@ fi AC_MSG_RESULT($ac_cv_buggy_getaddrinfo)
@@ -23,5 +23,5 @@ index 66d4642..c492594 100644 if test $ipv6 = yes then -- -2.6.4 +2.7.4
package/python3/0005-Add-infrastructure-to-disable-the-build-of-certain-e.patch +8 -8
@@ -1,4 +1,4 @@ -From 3a9f4aa255909ed152883eee787313efd20dbc58 Mon Sep 17 00:00:00 2001 +From cbf8556ad057a402629a5be93dc77c906f3a86ab Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:31:08 +0100 Subject: [PATCH] Add infrastructure to disable the build of certain extensions
@@ -42,7 +42,7 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Makefile.pre.in b/Makefile.pre.in -index 272f312..9420860 100644 +index 6a7d974..d70375a 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -182,6 +182,8 @@ FILEMODE= 644
@@ -54,7 +54,7 @@ index 272f312..9420860 100644 # Subdirectories with code SRCDIRS= @SRCDIRS@ -@@ -600,6 +602,7 @@ sharedmods: $(BUILDPYTHON) pybuilddir.txt +@@ -607,6 +609,7 @@ sharedmods: $(BUILDPYTHON) pybuilddir.txt Modules/_math.o esac; \ $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' \ _TCLTK_INCLUDES='$(TCLTK_INCLUDES)' _TCLTK_LIBS='$(TCLTK_LIBS)' \
@@ -62,7 +62,7 @@ index 272f312..9420860 100644 $(PYTHON_FOR_BUILD) $(srcdir)/setup.py $$quiet build # Build static library -@@ -1425,7 +1428,8 @@ libainstall: all python-config +@@ -1451,7 +1454,8 @@ libainstall: all python-config # Install the dynamically loadable modules # This goes into $(exec_prefix) sharedinstall: sharedmods
@@ -73,10 +73,10 @@ index 272f312..9420860 100644 --install-scripts=$(BINDIR) \ --install-platlib=$(DESTSHARED) \ diff --git a/configure.ac b/configure.ac -index c492594..bfb599e 100644 +index f57f2eb..c43ff9f 100644 --- a/configure.ac +++ b/configure.ac -@@ -2588,6 +2588,8 @@ LIBS="$withval $LIBS" +@@ -2670,6 +2670,8 @@ LIBS="$withval $LIBS" PKG_PROG_PKG_CONFIG
@@ -86,7 +86,7 @@ index c492594..bfb599e 100644 AC_MSG_CHECKING(for --with-system-expat) AC_ARG_WITH(system_expat, diff --git a/setup.py b/setup.py -index dbd2a3c..1ebfa50 100644 +index b67d913..149911c 100644 --- a/setup.py +++ b/setup.py @@ -44,7 +44,10 @@ host_platform = get_platform()
@@ -102,5 +102,5 @@ index dbd2a3c..1ebfa50 100644 def add_dir_to_list(dirlist, dir): """Add the directory 'dir' to the list 'dirlist' (after any relative -- -2.6.4 +2.7.4
package/python3/0006-distutils-sysconfig-use-sysconfigdata.patch +2 -2
@@ -1,4 +1,4 @@ -From 7c560d917ee0e536c76fac275d1cb0b6136269ab Mon Sep 17 00:00:00 2001 +From 5855e029370e5636e3eb2283eaa8d11248744eac Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:32:23 +0100 Subject: [PATCH] distutils/sysconfig: use sysconfigdata
@@ -61,5 +61,5 @@ index 573724d..721edec 100644 def _init_nt(): """Initialize the module as appropriate for NT""" -- -2.6.4 +2.7.4
package/python3/0007-Adjust-library-header-paths-for-cross-compilation.patch +3 -3
@@ -1,4 +1,4 @@ -From e634929f76a45f5b683dc19bc01efed2ab83e19e Mon Sep 17 00:00:00 2001 +From f24bff04a609d30ead9776ae3b27aa579135c8bf Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:33:14 +0100 Subject: [PATCH] Adjust library/header paths for cross-compilation
@@ -21,7 +21,7 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py -index d4cb11e..e7a0ba9 100644 +index f03a4e3..0355963 100644 --- a/Lib/distutils/command/build_ext.py +++ b/Lib/distutils/command/build_ext.py @@ -232,7 +232,10 @@ class build_ext(Command):
@@ -63,5 +63,5 @@ index 721edec..d20e2d8 100644 # Path to the base directory of the project. On Windows the binary may # live in project/PCBuild/win32 or project/PCBuild/amd64. -- -2.6.4 +2.7.4
package/python3/0008-Don-t-look-in-usr-lib-termcap-for-libraries.patch +4 -4
@@ -1,4 +1,4 @@ -From d7c568632f7cb83346096ea114a06f89a0b488d6 Mon Sep 17 00:00:00 2001 +From f59154777625b039d8f76aa787817b108867ee04 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:36:00 +0100 Subject: [PATCH] Don't look in /usr/lib/termcap for libraries
@@ -9,10 +9,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/setup.py b/setup.py -index 1ebfa50..24a7153 100644 +index 149911c..1b4b981 100644 --- a/setup.py +++ b/setup.py -@@ -753,12 +753,9 @@ class PyBuildExt(build_ext): +@@ -783,12 +783,9 @@ class PyBuildExt(build_ext): pass # Issue 7384: Already linked against curses or tinfo. elif curses_library: readline_libs.append(curses_library)
@@ -27,5 +27,5 @@ index 1ebfa50..24a7153 100644 libraries=readline_libs) ) else: -- -2.6.4 +2.7.4
package/python3/0009-Don-t-add-multiarch-paths.patch +4 -4
@@ -1,4 +1,4 @@ -From bac5ac529cc0902a340a5cd03308433c6e80d1f6 Mon Sep 17 00:00:00 2001 +From f270af67f4ea6cc781f7cf05ba66e078190368df Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:36:27 +0100 Subject: [PATCH] Don't add multiarch paths
@@ -17,10 +17,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py -index 24a7153..8380a64 100644 +index 1b4b981..9a48d5f 100644 --- a/setup.py +++ b/setup.py -@@ -474,10 +474,10 @@ class PyBuildExt(build_ext): +@@ -497,10 +497,10 @@ class PyBuildExt(build_ext): if not cross_compiling: add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
@@ -33,5 +33,5 @@ index 24a7153..8380a64 100644 # Add paths specified in the environment variables LDFLAGS and # CPPFLAGS for header and library files. -- -2.6.4 +2.7.4
package/python3/0010-Abort-on-failed-module-build.patch +4 -4
@@ -1,4 +1,4 @@ -From 86ef08e36597e14cac06aef176f12375a27fdef5 Mon Sep 17 00:00:00 2001 +From 01780527e647b15f7f1aed4351c18fb4098a8707 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:43:24 +0100 Subject: [PATCH] Abort on failed module build
@@ -14,10 +14,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py -index 8380a64..15b39f5 100644 +index 9a48d5f..d02012d 100644 --- a/setup.py +++ b/setup.py -@@ -296,6 +296,7 @@ class PyBuildExt(build_ext): +@@ -312,6 +312,7 @@ class PyBuildExt(build_ext): print("Failed to build these modules:") print_three_column(failed) print()
@@ -26,5 +26,5 @@ index 8380a64..15b39f5 100644 if self.failed_on_import: failed = self.failed_on_import[:] -- -2.6.4 +2.7.4
package/python3/0011-Serial-ioctl-workaround.patch +2 -2
@@ -1,4 +1,4 @@ -From ace3ebd517ea0ac42208b6a06c7e8f82da3b9c1b Mon Sep 17 00:00:00 2001 +From 49bfbdadd4808e7868e443b2786faf513c9818ea Mon Sep 17 00:00:00 2001 From: Baruch Siach <[email protected]> Date: Wed, 23 Dec 2015 11:44:02 +0100 Subject: [PATCH] Serial ioctl() workaround
@@ -29,5 +29,5 @@ index b78d33e..58b0444 100644 /* HP-UX requires that this be included to pick up MDCD, MCTS, MDSR, * MDTR, MRI, and MRTS (appearantly used internally by some things -- -2.6.4 +2.7.4
package/python3/0012-Do-not-adjust-the-shebang-of-Python-scripts-for-cros.patch +2 -2
@@ -1,4 +1,4 @@ -From 45f482813de828415906e6a416c9c35450c38da7 Mon Sep 17 00:00:00 2001 +From c0eb115234b1c41a25c1a9e8a39e49155357c45a Mon Sep 17 00:00:00 2001 From: Christophe Vu-Brugier <[email protected]> Date: Wed, 23 Dec 2015 11:44:30 +0100 Subject: [PATCH] Do not adjust the shebang of Python scripts for
@@ -31,5 +31,5 @@ index 90a8380..bdf4cf1 100644 self.build_dir) updated_files.append(outfile) -- -2.6.4 +2.7.4
package/python3/0013-Misc-python-config.sh.in-ensure-sed-invocations-only.patch +2 -2
@@ -1,4 +1,4 @@ -From 5858abdc25acd522869103d64b60a0c9687e2ec1 Mon Sep 17 00:00:00 2001 +From a92c541ce8dd40af86642ac420e628aeeb6a5f05 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard <[email protected]> Date: Thu, 20 Nov 2014 13:24:59 +0100 Subject: [PATCH] Misc/python-config.sh.in: ensure sed invocations only match
@@ -56,5 +56,5 @@ index 30c6927..f905a71 100644 PYTHONFRAMEWORK="@PYTHONFRAMEWORK@" INCDIR="-I$includedir/python${VERSION}${ABIFLAGS}" -- -2.6.4 +2.7.4
package/python3/0014-Do-not-harcode-invalid-path-to-ncursesw-headers.patch +4 -4
@@ -1,4 +1,4 @@ -From be44636b36086ca1b6de24265b7c3cc0c2bae913 Mon Sep 17 00:00:00 2001 +From f33d59b67f26649babc8c91e38eff9bc817d0470 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:45:13 +0100 Subject: [PATCH] Do not harcode invalid path to ncursesw headers
@@ -14,10 +14,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 1 file changed, 1 deletion(-) diff --git a/setup.py b/setup.py -index 15b39f5..9e08e7e 100644 +index d02012d..cc2f00b 100644 --- a/setup.py +++ b/setup.py -@@ -1296,7 +1296,6 @@ class PyBuildExt(build_ext): +@@ -1326,7 +1326,6 @@ class PyBuildExt(build_ext): panel_library = 'panel' if curses_library == 'ncursesw': curses_defines.append(('HAVE_NCURSESW', '1'))
@@ -26,5 +26,5 @@ index 15b39f5..9e08e7e 100644 # _curses_panel.so must link with panelw. panel_library = 'panelw' -- -2.6.4 +2.7.4
package/python3/0015-Override-system-locale-and-set-to-default-when-addin.patch +4 -4
@@ -1,4 +1,4 @@ -From 46fda6fc83500bf5663397f9d28b618e6b6b20c1 Mon Sep 17 00:00:00 2001 +From 3f2764f8433f49cb7a9e647d3e4ec2ba3cffb694 Mon Sep 17 00:00:00 2001 From: Samuel Cabrero <[email protected]> Date: Wed, 23 Dec 2015 11:45:48 +0100 Subject: [PATCH] Override system locale and set to default when adding gcc
@@ -20,10 +20,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py -index 9e08e7e..3feca04 100644 +index cc2f00b..1c3b838 100644 --- a/setup.py +++ b/setup.py -@@ -441,7 +441,7 @@ class PyBuildExt(build_ext): +@@ -457,7 +457,7 @@ class PyBuildExt(build_ext): tmpfile = os.path.join(self.build_temp, 'gccpaths') if not os.path.exists(self.build_temp): os.makedirs(self.build_temp)
@@ -33,5 +33,5 @@ index 9e08e7e..3feca04 100644 in_incdirs = False inc_dirs = [] -- -2.6.4 +2.7.4
package/python3/0016-Add-importlib-fix-for-PEP-3147-issue.patch +6 -6
@@ -1,4 +1,4 @@ -From d2b5be9a0627e38d2280ef865dab3e74b7d2bde4 Mon Sep 17 00:00:00 2001 +From 66c1baaf357f75591ee2f31966385b6eb96c8eb4 Mon Sep 17 00:00:00 2001 From: Christophe Vu-Brugier <[email protected]> Date: Wed, 23 Dec 2015 11:46:14 +0100 Subject: [PATCH] Add importlib fix for PEP 3147 issue
@@ -23,10 +23,10 @@ Signed-off-by: Christophe Vu-Brugier <[email protected]> 1 file changed, 5 insertions(+), 32 deletions(-) diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py -index 616b17f..e30129c 100644 +index 9788828..dfcc27e 100644 --- a/Lib/importlib/_bootstrap_external.py +++ b/Lib/importlib/_bootstrap_external.py -@@ -255,8 +255,6 @@ def cache_from_source(path, debug_override=None, *, optimization=None): +@@ -258,8 +258,6 @@ def cache_from_source(path, debug_override=None, *, optimization=None): a True value is the same as setting 'optimization' to the empty string while a False value is equivalent to setting 'optimization' to '1'.
@@ -35,7 +35,7 @@ index 616b17f..e30129c 100644 """ if debug_override is not None: _warnings.warn('the debug_override parameter is deprecated; use ' -@@ -267,10 +265,7 @@ def cache_from_source(path, debug_override=None, *, optimization=None): +@@ -270,10 +268,7 @@ def cache_from_source(path, debug_override=None, *, optimization=None): optimization = '' if debug_override else 1 head, tail = _path_split(path) base, sep, rest = tail.rpartition('.')
@@ -47,7 +47,7 @@ index 616b17f..e30129c 100644 if optimization is None: if sys.flags.optimize == 0: optimization = '' -@@ -281,39 +276,17 @@ def cache_from_source(path, debug_override=None, *, optimization=None): +@@ -284,39 +279,17 @@ def cache_from_source(path, debug_override=None, *, optimization=None): if not optimization.isalnum(): raise ValueError('{!r} is not alphanumeric'.format(optimization)) almost_filename = '{}.{}{}'.format(almost_filename, _OPT, optimization)
@@ -92,5 +92,5 @@ index 616b17f..e30129c 100644 -- -2.6.4 +2.7.4
package/python3/0017-Add-an-option-to-disable-installation-of-test-module.patch +7 -7
@@ -1,4 +1,4 @@ -From 1d2891204c6bf05d5e2eb0e5fa2ee78f6a2b755b Mon Sep 17 00:00:00 2001 +From 78e54257cf149408036661be98be6f2650c5a8f9 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:47:00 +0100 Subject: [PATCH] Add an option to disable installation of test modules
@@ -14,10 +14,10 @@ Signed-off-by: Samuel Martin <[email protected]> 2 files changed, 42 insertions(+), 20 deletions(-) diff --git a/Makefile.pre.in b/Makefile.pre.in -index 9420860..d4c771a 100644 +index d70375a..e5a4372 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -1166,8 +1166,30 @@ maninstall: altmaninstall +@@ -1192,8 +1192,30 @@ maninstall: altmaninstall PLATDIR= @PLATDIR@ MACHDEPS= $(PLATDIR) XMLLIBSUBDIRS= xml xml/dom xml/etree xml/parsers xml/sax
@@ -50,7 +50,7 @@ index 9420860..d4c771a 100644 test/audiodata \ test/capath test/data \ test/cjkencodings test/decimaltestdata test/xmltestdata \ -@@ -1199,28 +1221,22 @@ LIBSUBDIRS= tkinter tkinter/test tkinter/test/test_tkinter \ +@@ -1225,28 +1247,22 @@ LIBSUBDIRS= tkinter tkinter/test tkinter/test/test_tkinter \ test/test_importlib/namespace_pkgs/project3/parent/child \ test/test_importlib/namespace_pkgs/module_and_namespace_package \ test/test_importlib/namespace_pkgs/module_and_namespace_package/a_test \
@@ -92,10 +92,10 @@ index 9420860..d4c771a 100644 @for i in $(SCRIPTDIR) $(LIBDEST); \ do \ diff --git a/configure.ac b/configure.ac -index bfb599e..9f3d226 100644 +index c43ff9f..8b8c249 100644 --- a/configure.ac +++ b/configure.ac -@@ -2895,6 +2895,12 @@ if test "$posix_threads" = "yes"; then +@@ -2977,6 +2977,12 @@ if test "$posix_threads" = "yes"; then fi
@@ -109,5 +109,5 @@ index bfb599e..9f3d226 100644 AH_TEMPLATE(ENABLE_IPV6, [Define if --enable-ipv6 is specified]) AC_MSG_CHECKING([if --enable-ipv6 is specified]) -- -2.6.4 +2.7.4
package/python3/0018-Add-an-option-to-disable-pydoc.patch +11 -11
@@ -1,4 +1,4 @@ -From a83b79b964700604de386800f86e5a55f53a0e17 Mon Sep 17 00:00:00 2001 +From e07206329b3a4cdecaeca7991996950f82cd8744 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:47:11 +0100 Subject: [PATCH] Add an option to disable pydoc
@@ -15,10 +15,10 @@ Signed-off-by: Samuel Martin <[email protected]> 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/Makefile.pre.in b/Makefile.pre.in -index d4c771a..a98ad65 100644 +index e5a4372..83fc343 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -1134,7 +1134,9 @@ bininstall: altbininstall +@@ -1160,7 +1160,9 @@ bininstall: altbininstall -rm -f $(DESTDIR)$(BINDIR)/idle3 (cd $(DESTDIR)$(BINDIR); $(LN) -s idle$(VERSION) idle3) -rm -f $(DESTDIR)$(BINDIR)/pydoc3
@@ -28,7 +28,7 @@ index d4c771a..a98ad65 100644 -rm -f $(DESTDIR)$(BINDIR)/2to3 (cd $(DESTDIR)$(BINDIR); $(LN) -s 2to3-$(VERSION) 2to3) -rm -f $(DESTDIR)$(BINDIR)/pyvenv -@@ -1184,7 +1186,7 @@ LIBSUBDIRS= tkinter \ +@@ -1210,7 +1212,7 @@ LIBSUBDIRS= tkinter \ multiprocessing multiprocessing/dummy \ unittest \ venv venv/scripts venv/scripts/posix \
@@ -37,7 +37,7 @@ index d4c771a..a98ad65 100644 TESTSUBDIRS = tkinter/test tkinter/test/test_tkinter tkinter/test/test_ttk \ test test/test_asyncio \ -@@ -1233,6 +1235,10 @@ TESTSUBDIRS = tkinter/test tkinter/test/test_tkinter tkinter/test/test_ttk \ +@@ -1259,6 +1261,10 @@ TESTSUBDIRS = tkinter/test tkinter/test/test_tkinter tkinter/test/test_ttk \ test/test_importlib/import_ test/test_importlib/source \ unittest/test unittest/test/testmock
@@ -49,10 +49,10 @@ index d4c771a..a98ad65 100644 LIBSUBDIRS += $(TESTSUBDIRS) endif diff --git a/configure.ac b/configure.ac -index 9f3d226..e9b6d6f 100644 +index 8b8c249..eea25d4 100644 --- a/configure.ac +++ b/configure.ac -@@ -2894,6 +2894,11 @@ if test "$posix_threads" = "yes"; then +@@ -2976,6 +2976,11 @@ if test "$posix_threads" = "yes"; then AC_CHECK_FUNCS(pthread_atfork) fi
@@ -65,10 +65,10 @@ index 9f3d226..e9b6d6f 100644 AC_SUBST(TEST_MODULES) diff --git a/setup.py b/setup.py -index 3feca04..137911d 100644 +index 1c3b838..2a01896 100644 --- a/setup.py +++ b/setup.py -@@ -2220,6 +2220,12 @@ def main(): +@@ -2253,6 +2253,12 @@ def main(): # turn off warnings when deprecated modules are imported import warnings warnings.filterwarnings("ignore",category=DeprecationWarning)
@@ -81,7 +81,7 @@ index 3feca04..137911d 100644 setup(# PyPI Metadata (PEP 301) name = "Python", version = sys.version.split()[0], -@@ -2244,8 +2250,7 @@ def main(): +@@ -2277,8 +2283,7 @@ def main(): # If you change the scripts installed here, you also need to # check the PyBuildScripts command above, and change the links # created by the bininstall target in Makefile.pre.in
@@ -92,5 +92,5 @@ index 3feca04..137911d 100644 # --install-platlib -- -2.6.4 +2.7.4
package/python3/0019-Add-an-option-to-disable-lib2to3.patch +12 -12
@@ -1,4 +1,4 @@ -From 3c877ea9f09913586f87064b7a2b9d2b49cb05aa Mon Sep 17 00:00:00 2001 +From a42283b5bee8bfd0a6a39e6805787643d075f1a5 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:48:44 +0100 Subject: [PATCH] Add an option to disable lib2to3
@@ -15,10 +15,10 @@ Signed-off-by: Samuel Martin <[email protected]> 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/Makefile.pre.in b/Makefile.pre.in -index a98ad65..3823940 100644 +index 83fc343..aeedad9 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -1138,7 +1138,9 @@ ifeq (@PYDOC@,yes) +@@ -1164,7 +1164,9 @@ ifeq (@PYDOC@,yes) (cd $(DESTDIR)$(BINDIR); $(LN) -s pydoc$(VERSION) pydoc3) endif -rm -f $(DESTDIR)$(BINDIR)/2to3
@@ -28,7 +28,7 @@ index a98ad65..3823940 100644 -rm -f $(DESTDIR)$(BINDIR)/pyvenv (cd $(DESTDIR)$(BINDIR); $(LN) -s pyvenv-$(VERSION) pyvenv) if test "x$(LIPO_32BIT_FLAGS)" != "x" ; then \ -@@ -1177,7 +1179,6 @@ LIBSUBDIRS= tkinter \ +@@ -1203,7 +1205,6 @@ LIBSUBDIRS= tkinter \ html json http dbm xmlrpc \ sqlite3 \ logging csv wsgiref urllib \
@@ -36,7 +36,7 @@ index a98ad65..3823940 100644 ctypes ctypes/macholib \ idlelib idlelib/Icons \ distutils distutils/command $(XMLLIBSUBDIRS) \ -@@ -1224,9 +1225,6 @@ TESTSUBDIRS = tkinter/test tkinter/test/test_tkinter tkinter/test/test_ttk \ +@@ -1250,9 +1251,6 @@ TESTSUBDIRS = tkinter/test tkinter/test/test_tkinter tkinter/test/test_ttk \ test/test_importlib/namespace_pkgs/module_and_namespace_package \ test/test_importlib/namespace_pkgs/module_and_namespace_package/a_test \ sqlite3/test \
@@ -46,7 +46,7 @@ index a98ad65..3823940 100644 ctypes/test \ idlelib/idle_test \ distutils/tests \ -@@ -1239,6 +1237,14 @@ ifeq (@PYDOC@,yes) +@@ -1265,6 +1263,14 @@ ifeq (@PYDOC@,yes) LIBSUBDIRS += pydoc_data endif
@@ -61,7 +61,7 @@ index a98ad65..3823940 100644 ifeq (@TEST_MODULES@,yes) LIBSUBDIRS += $(TESTSUBDIRS) endif -@@ -1337,10 +1343,12 @@ ifeq (@PYC_BUILD@,yes) +@@ -1363,10 +1369,12 @@ ifeq (@PYC_BUILD@,yes) -d $(LIBDEST)/site-packages -f \ -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages endif
@@ -75,10 +75,10 @@ index a98ad65..3823940 100644 # Create the PLATDIR source directory, if one wasn't distributed.. $(srcdir)/Lib/$(PLATDIR): diff --git a/configure.ac b/configure.ac -index e9b6d6f..652ad88 100644 +index eea25d4..32239d3 100644 --- a/configure.ac +++ b/configure.ac -@@ -2906,6 +2906,12 @@ AC_ARG_ENABLE(test-modules, +@@ -2988,6 +2988,12 @@ AC_ARG_ENABLE(test-modules, AS_HELP_STRING([--disable-test-modules], [disable test modules]), [ TEST_MODULES="${enableval}" ], [ TEST_MODULES=yes ])
@@ -92,10 +92,10 @@ index e9b6d6f..652ad88 100644 AH_TEMPLATE(ENABLE_IPV6, [Define if --enable-ipv6 is specified]) AC_MSG_CHECKING([if --enable-ipv6 is specified]) diff --git a/setup.py b/setup.py -index 137911d..722308b 100644 +index 2a01896..be27531 100644 --- a/setup.py +++ b/setup.py -@@ -2221,10 +2221,11 @@ def main(): +@@ -2254,10 +2254,11 @@ def main(): import warnings warnings.filterwarnings("ignore",category=DeprecationWarning)
@@ -110,5 +110,5 @@ index 137911d..722308b 100644 setup(# PyPI Metadata (PEP 301) name = "Python", -- -2.6.4 +2.7.4
package/python3/0020-Add-option-to-disable-the-sqlite3-module.patch +8 -8
@@ -1,4 +1,4 @@ -From 9ae1dce0a2fa01fc3dbc83d8b8c1b56e4b1b162b Mon Sep 17 00:00:00 2001 +From 3d12c6e8180bc250d77a4bbb78899ccf8566b1cb Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:49:01 +0100 Subject: [PATCH] Add option to disable the sqlite3 module
@@ -11,10 +11,10 @@ Signed-off-by: Samuel Martin <[email protected]> 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Makefile.pre.in b/Makefile.pre.in -index 3823940..c822dbd 100644 +index aeedad9..d262c04 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -1177,7 +1177,6 @@ LIBSUBDIRS= tkinter \ +@@ -1203,7 +1203,6 @@ LIBSUBDIRS= tkinter \ email email/mime \ ensurepip ensurepip/_bundled \ html json http dbm xmlrpc \
@@ -22,7 +22,7 @@ index 3823940..c822dbd 100644 logging csv wsgiref urllib \ ctypes ctypes/macholib \ idlelib idlelib/Icons \ -@@ -1224,7 +1223,6 @@ TESTSUBDIRS = tkinter/test tkinter/test/test_tkinter tkinter/test/test_ttk \ +@@ -1250,7 +1249,6 @@ TESTSUBDIRS = tkinter/test tkinter/test/test_tkinter tkinter/test/test_ttk \ test/test_importlib/namespace_pkgs/project3/parent/child \ test/test_importlib/namespace_pkgs/module_and_namespace_package \ test/test_importlib/namespace_pkgs/module_and_namespace_package/a_test \
@@ -30,7 +30,7 @@ index 3823940..c822dbd 100644 ctypes/test \ idlelib/idle_test \ distutils/tests \ -@@ -1245,6 +1243,11 @@ TESTSUBDIRS += lib2to3/tests \ +@@ -1271,6 +1269,11 @@ TESTSUBDIRS += lib2to3/tests \ lib2to3/tests/data/fixers/myfixes endif
@@ -43,10 +43,10 @@ index 3823940..c822dbd 100644 LIBSUBDIRS += $(TESTSUBDIRS) endif diff --git a/configure.ac b/configure.ac -index 652ad88..cae12ad 100644 +index 32239d3..c9d0912 100644 --- a/configure.ac +++ b/configure.ac -@@ -2894,6 +2894,15 @@ if test "$posix_threads" = "yes"; then +@@ -2976,6 +2976,15 @@ if test "$posix_threads" = "yes"; then AC_CHECK_FUNCS(pthread_atfork) fi
@@ -63,5 +63,5 @@ index 652ad88..cae12ad 100644 AC_ARG_ENABLE(pydoc, -- -2.6.4 +2.7.4
package/python3/0021-Add-an-option-to-disable-the-tk-module.patch +8 -8
@@ -1,4 +1,4 @@ -From d0d42570e5a23c3bf559e0413ec97729fd2f9e24 Mon Sep 17 00:00:00 2001 +From 61f201afe59bbfbb1094d987fd74ac9cd4764d52 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:49:14 +0100 Subject: [PATCH] Add an option to disable the tk module
@@ -11,10 +11,10 @@ Signed-off-by: Samuel Martin <[email protected]> 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/Makefile.pre.in b/Makefile.pre.in -index c822dbd..0a93c27 100644 +index d262c04..851faa3 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -1170,7 +1170,7 @@ maninstall: altmaninstall +@@ -1196,7 +1196,7 @@ maninstall: altmaninstall PLATDIR= @PLATDIR@ MACHDEPS= $(PLATDIR) XMLLIBSUBDIRS= xml xml/dom xml/etree xml/parsers xml/sax
@@ -23,7 +23,7 @@ index c822dbd..0a93c27 100644 site-packages \ asyncio \ collections concurrent concurrent/futures encodings \ -@@ -1188,8 +1188,7 @@ LIBSUBDIRS= tkinter \ +@@ -1214,8 +1214,7 @@ LIBSUBDIRS= tkinter \ venv venv/scripts venv/scripts/posix \ curses $(MACHDEPS)
@@ -33,7 +33,7 @@ index c822dbd..0a93c27 100644 test/test_email test/test_email/data \ test/test_json \ test/audiodata \ -@@ -1248,6 +1247,12 @@ LIBSUBDIRS += sqlite3 +@@ -1274,6 +1273,12 @@ LIBSUBDIRS += sqlite3 TESTSUBDIRS += sqlite3/test endif
@@ -47,10 +47,10 @@ index c822dbd..0a93c27 100644 LIBSUBDIRS += $(TESTSUBDIRS) endif diff --git a/configure.ac b/configure.ac -index cae12ad..787b185 100644 +index c9d0912..d5047ec 100644 --- a/configure.ac +++ b/configure.ac -@@ -2903,6 +2903,15 @@ if test "$SQLITE3" = "no" ; then +@@ -2985,6 +2985,15 @@ if test "$SQLITE3" = "no" ; then DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _sqlite3" fi
@@ -67,5 +67,5 @@ index cae12ad..787b185 100644 AC_ARG_ENABLE(pydoc, -- -2.6.4 +2.7.4
package/python3/0022-Add-an-option-to-disable-the-curses-module.patch +7 -7
@@ -1,4 +1,4 @@ -From d04ec780bf7c0825ab260bd1d6b7292141b2dcde Mon Sep 17 00:00:00 2001 +From 2d1a718b6fc386e718c26dec23633f478e8791a0 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:49:30 +0100 Subject: [PATCH] Add an option to disable the curses module
@@ -11,10 +11,10 @@ Signed-off-by: Samuel Martin <[email protected]> 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Makefile.pre.in b/Makefile.pre.in -index 0a93c27..b97c21e 100644 +index 851faa3..90a055c 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -1186,7 +1186,7 @@ LIBSUBDIRS= \ +@@ -1212,7 +1212,7 @@ LIBSUBDIRS= \ multiprocessing multiprocessing/dummy \ unittest \ venv venv/scripts venv/scripts/posix \
@@ -23,7 +23,7 @@ index 0a93c27..b97c21e 100644 TESTSUBDIRS = test test/test_asyncio \ test/test_email test/test_email/data \ -@@ -1253,6 +1253,10 @@ TESTSUBDIRS += tkinter/test tkinter/test/test_tkinter \ +@@ -1279,6 +1279,10 @@ TESTSUBDIRS += tkinter/test tkinter/test/test_tkinter \ tkinter/test/test_ttk endif
@@ -35,10 +35,10 @@ index 0a93c27..b97c21e 100644 LIBSUBDIRS += $(TESTSUBDIRS) endif diff --git a/configure.ac b/configure.ac -index 787b185..0be47b2 100644 +index d5047ec..3814ba0 100644 --- a/configure.ac +++ b/configure.ac -@@ -2912,6 +2912,15 @@ if test "$TK" = "no"; then +@@ -2994,6 +2994,15 @@ if test "$TK" = "no"; then DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _tkinter" fi
@@ -55,5 +55,5 @@ index 787b185..0be47b2 100644 AC_ARG_ENABLE(pydoc, -- -2.6.4 +2.7.4
package/python3/0023-Add-an-option-to-disable-expat.patch +9 -9
@@ -1,4 +1,4 @@ -From 6281850ee8c3fb6d93b4997833af0cca4a48947b Mon Sep 17 00:00:00 2001 +From cb39a3171e28ac6db79d3604959730746e50c2b4 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:49:42 +0100 Subject: [PATCH] Add an option to disable expat
@@ -18,10 +18,10 @@ Signed-off-by: Samuel Martin <[email protected]> 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/Makefile.pre.in b/Makefile.pre.in -index b97c21e..bdfee19 100644 +index 90a055c..fcb1ac4 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -1180,7 +1180,7 @@ LIBSUBDIRS= \ +@@ -1206,7 +1206,7 @@ LIBSUBDIRS= \ logging csv wsgiref urllib \ ctypes ctypes/macholib \ idlelib idlelib/Icons \
@@ -30,7 +30,7 @@ index b97c21e..bdfee19 100644 importlib \ turtledemo \ multiprocessing multiprocessing/dummy \ -@@ -1257,6 +1257,10 @@ ifeq (@CURSES@,yes) +@@ -1283,6 +1283,10 @@ ifeq (@CURSES@,yes) LIBSUBDIRS += curses endif
@@ -42,10 +42,10 @@ index b97c21e..bdfee19 100644 LIBSUBDIRS += $(TESTSUBDIRS) endif diff --git a/configure.ac b/configure.ac -index 0be47b2..e6bcacc 100644 +index 3814ba0..a7e9d16 100644 --- a/configure.ac +++ b/configure.ac -@@ -2591,13 +2591,21 @@ PKG_PROG_PKG_CONFIG +@@ -2673,13 +2673,21 @@ PKG_PROG_PKG_CONFIG AC_SUBST(DISABLED_EXTENSIONS) # Check for use of the system expat library
@@ -73,10 +73,10 @@ index 0be47b2..e6bcacc 100644 # Check for use of the system libffi library AC_MSG_CHECKING(for --with-system-ffi) diff --git a/setup.py b/setup.py -index 722308b..ecddb6a 100644 +index be27531..53a471c 100644 --- a/setup.py +++ b/setup.py -@@ -1434,7 +1434,7 @@ class PyBuildExt(build_ext): +@@ -1464,7 +1464,7 @@ class PyBuildExt(build_ext): # # More information on Expat can be found at www.libexpat.org. #
@@ -86,5 +86,5 @@ index 722308b..ecddb6a 100644 define_macros = [] expat_lib = ['expat'] -- -2.6.4 +2.7.4
package/python3/0024-Add-an-option-to-disable-CJK-codecs.patch +4 -4
@@ -1,4 +1,4 @@ -From 18265d05ee97ad0c43995acdadce2458b57d7d64 Mon Sep 17 00:00:00 2001 +From 26fb4f055203332db8a346ae80da542f721df01d Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:49:55 +0100 Subject: [PATCH] Add an option to disable CJK codecs
@@ -9,10 +9,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac -index e6bcacc..38b7515 100644 +index a7e9d16..e9ea63f 100644 --- a/configure.ac +++ b/configure.ac -@@ -2911,6 +2911,12 @@ if test "$SQLITE3" = "no" ; then +@@ -2993,6 +2993,12 @@ if test "$SQLITE3" = "no" ; then DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _sqlite3" fi
@@ -26,5 +26,5 @@ index e6bcacc..38b7515 100644 AC_ARG_ENABLE(tk, AS_HELP_STRING([--disable-tk], [disable tk]), -- -2.6.4 +2.7.4
package/python3/0025-Add-an-option-to-disable-NIS.patch +4 -4
@@ -1,4 +1,4 @@ -From 733ee65f308ec48be427463c06f372ca116ccada Mon Sep 17 00:00:00 2001 +From a2b911055f5b75e02d6a8853a9b21dfad277758e Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:50:11 +0100 Subject: [PATCH] Add an option to disable NIS
@@ -12,10 +12,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac -index 38b7515..f25733a 100644 +index e9ea63f..98d1332 100644 --- a/configure.ac +++ b/configure.ac -@@ -2917,6 +2917,12 @@ AC_ARG_ENABLE(codecs-cjk, +@@ -2999,6 +2999,12 @@ AC_ARG_ENABLE(codecs-cjk, DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _codecs_kr _codecs_jp _codecs_cn _codecs_tw _codecs_hk _codecs_iso2022" fi])
@@ -29,5 +29,5 @@ index 38b7515..f25733a 100644 AC_ARG_ENABLE(tk, AS_HELP_STRING([--disable-tk], [disable tk]), -- -2.6.4 +2.7.4
package/python3/0026-Add-an-option-to-disable-unicodedata.patch +4 -4
@@ -1,4 +1,4 @@ -From 64fa1fc3a9aea7ffba7b96d08a14df91051f2b6f Mon Sep 17 00:00:00 2001 +From 8f0bf1aac225c2a4465baeefc3e4538c27c497e7 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:50:27 +0100 Subject: [PATCH] Add an option to disable unicodedata
@@ -9,10 +9,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac -index f25733a..a7ddb2b 100644 +index 98d1332..b1a1f39 100644 --- a/configure.ac +++ b/configure.ac -@@ -2923,6 +2923,12 @@ AC_ARG_ENABLE(nis, +@@ -3005,6 +3005,12 @@ AC_ARG_ENABLE(nis, DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} nis" fi])
@@ -26,5 +26,5 @@ index f25733a..a7ddb2b 100644 AC_ARG_ENABLE(tk, AS_HELP_STRING([--disable-tk], [disable tk]), -- -2.6.4 +2.7.4
package/python3/0027-Add-an-option-to-disable-IDLE.patch +10 -10
@@ -1,4 +1,4 @@ -From 2766bcdd8f9b7395ce32a6d8480ef0a2186f2098 Mon Sep 17 00:00:00 2001 +From 6187913d2d84a8f0df85781e32a23eb053365134 Mon Sep 17 00:00:00 2001 From: Maxime Ripard <[email protected]> Date: Wed, 23 Dec 2015 11:50:42 +0100 Subject: [PATCH] Add an option to disable IDLE
@@ -14,10 +14,10 @@ Signed-off-by: Maxime Ripard <[email protected]> 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/Makefile.pre.in b/Makefile.pre.in -index bdfee19..2466615 100644 +index fcb1ac4..0c26bcf 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -1132,7 +1132,9 @@ bininstall: altbininstall +@@ -1158,7 +1158,9 @@ bininstall: altbininstall -rm -f $(DESTDIR)$(LIBPC)/python3.pc (cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(VERSION).pc python3.pc) -rm -f $(DESTDIR)$(BINDIR)/idle3
@@ -27,7 +27,7 @@ index bdfee19..2466615 100644 -rm -f $(DESTDIR)$(BINDIR)/pydoc3 ifeq (@PYDOC@,yes) (cd $(DESTDIR)$(BINDIR); $(LN) -s pydoc$(VERSION) pydoc3) -@@ -1179,7 +1181,6 @@ LIBSUBDIRS= \ +@@ -1205,7 +1207,6 @@ LIBSUBDIRS= \ html json http dbm xmlrpc \ logging csv wsgiref urllib \ ctypes ctypes/macholib \
@@ -35,7 +35,7 @@ index bdfee19..2466615 100644 distutils distutils/command \ importlib \ turtledemo \ -@@ -1261,6 +1262,10 @@ ifeq (@EXPAT@,yes) +@@ -1287,6 +1288,10 @@ ifeq (@EXPAT@,yes) LIBSUBDIRS += $(XMLLIBSUBDIRS) endif
@@ -47,10 +47,10 @@ index bdfee19..2466615 100644 LIBSUBDIRS += $(TESTSUBDIRS) endif diff --git a/configure.ac b/configure.ac -index a7ddb2b..6b59792 100644 +index b1a1f39..d1be997 100644 --- a/configure.ac +++ b/configure.ac -@@ -2965,6 +2965,12 @@ AC_ARG_ENABLE(lib2to3, +@@ -3047,6 +3047,12 @@ AC_ARG_ENABLE(lib2to3, AS_HELP_STRING([--disable-lib2to3], [disable lib2to3]), [ LIB2TO3="${enableval}" ], [ LIB2TO3=yes ])
@@ -64,10 +64,10 @@ index a7ddb2b..6b59792 100644 AH_TEMPLATE(ENABLE_IPV6, [Define if --enable-ipv6 is specified]) AC_MSG_CHECKING([if --enable-ipv6 is specified]) diff --git a/setup.py b/setup.py -index ecddb6a..7fe68e8 100644 +index 53a471c..b443987 100644 --- a/setup.py +++ b/setup.py -@@ -2221,11 +2221,13 @@ def main(): +@@ -2254,11 +2254,13 @@ def main(): import warnings warnings.filterwarnings("ignore",category=DeprecationWarning)
@@ -83,5 +83,5 @@ index ecddb6a..7fe68e8 100644 setup(# PyPI Metadata (PEP 301) name = "Python", -- -2.6.4 +2.7.4
package/python3/0028-Add-an-option-to-disable-decimal.patch +6 -6
@@ -1,4 +1,4 @@ -From ff77defc777a57d4caee5183796fd44dd265e78b Mon Sep 17 00:00:00 2001 +From 1c51f93b8244e3e3be4d125465255c5a056abe22 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:51:31 +0100 Subject: [PATCH] Add an option to disable decimal
@@ -15,10 +15,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac -index 6b59792..51e1760 100644 +index d1be997..3d08ab0 100644 --- a/configure.ac +++ b/configure.ac -@@ -2624,13 +2624,20 @@ AC_SUBST(LIBFFI_INCLUDEDIR) +@@ -2706,13 +2706,20 @@ AC_SUBST(LIBFFI_INCLUDEDIR) AC_MSG_RESULT($with_system_ffi) # Check for use of the system libmpdec library
@@ -45,10 +45,10 @@ index 6b59792..51e1760 100644 # Check for support for loadable sqlite extensions AC_MSG_CHECKING(for --enable-loadable-sqlite-extensions) diff --git a/setup.py b/setup.py -index 7fe68e8..364b350 100644 +index b443987..a1580a0 100644 --- a/setup.py +++ b/setup.py -@@ -1988,7 +1988,7 @@ class PyBuildExt(build_ext): +@@ -2021,7 +2021,7 @@ class PyBuildExt(build_ext): def _decimal_ext(self): extra_compile_args = [] undef_macros = []
@@ -58,5 +58,5 @@ index 7fe68e8..364b350 100644 libraries = [':libmpdec.so.2'] sources = ['_decimal/_decimal.c'] -- -2.6.4 +2.7.4
package/python3/0029-Add-an-option-to-disable-the-ossaudiodev-module.patch +4 -4
@@ -1,4 +1,4 @@ -From 789b0f99d7c1d25bfa9c05fd12f4d55bb70f377b Mon Sep 17 00:00:00 2001 +From ed4bf13c66a3faa186781ca8ab2978a9bc8d5f39 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:51:58 +0100 Subject: [PATCH] Add an option to disable the ossaudiodev module
@@ -9,10 +9,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac -index 51e1760..c4c2353 100644 +index 3d08ab0..4e2b88e 100644 --- a/configure.ac +++ b/configure.ac -@@ -2639,6 +2639,12 @@ else +@@ -2721,6 +2721,12 @@ else fi AC_SUBST(MPDEC)
@@ -26,5 +26,5 @@ index 51e1760..c4c2353 100644 AC_MSG_CHECKING(for --enable-loadable-sqlite-extensions) AC_ARG_ENABLE(loadable-sqlite-extensions, -- -2.6.4 +2.7.4
package/python3/0030-Support-PGEN_FOR_BUILD-and-FREEZE_IMPORTLIB_FOR_BUIL.patch +10 -10
@@ -1,4 +1,4 @@ -From 4f851142b8f3149d23654117621285df34ec768b Mon Sep 17 00:00:00 2001 +From e151b6863bd8f697f17b50eda2cecef57e433c3e Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 13:58:00 +0100 Subject: [PATCH] Support PGEN_FOR_BUILD and FREEZE_IMPORTLIB_FOR_BUILD
@@ -10,10 +10,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 2 files changed, 13 insertions(+) diff --git a/Makefile.pre.in b/Makefile.pre.in -index 2466615..fdf622d 100644 +index 0c26bcf..d1237eb 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -712,10 +712,15 @@ Programs/_testembed: Programs/_testembed.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY) +@@ -719,10 +719,15 @@ Programs/_testembed: Programs/_testembed.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY) ############################################################################ # Importlib
@@ -28,10 +28,10 @@ index 2466615..fdf622d 100644 +endif Python/importlib_external.h: $(srcdir)/Lib/importlib/_bootstrap_external.py Programs/_freeze_importlib - ./Programs/_freeze_importlib \ -@@ -789,8 +794,13 @@ $(GRAMMAR_H): $(GRAMMAR_INPUT) $(PGEN) - $(GRAMMAR_C): $(GRAMMAR_H) - touch $(GRAMMAR_C) + if test "$(cross_compiling)" != "yes"; then \ +@@ -811,8 +816,13 @@ $(GRAMMAR_C): $(GRAMMAR_H) + mv $(GRAMMAR_C).tmp $(GRAMMAR_C); \ + fi +ifeq (@PGEN_FOR_BUILD@,) $(PGEN): $(PGENOBJS)
@@ -44,10 +44,10 @@ index 2466615..fdf622d 100644 Parser/grammar.o: $(srcdir)/Parser/grammar.c \ $(srcdir)/Include/token.h \ diff --git a/configure.ac b/configure.ac -index c4c2353..750c232 100644 +index 4e2b88e..16a827c 100644 --- a/configure.ac +++ b/configure.ac -@@ -79,6 +79,9 @@ else +@@ -80,6 +80,9 @@ else fi AC_SUBST(PYTHON_FOR_BUILD)
@@ -58,5 +58,5 @@ index c4c2353..750c232 100644 dnl it does, we get path names containing '//' which is both ugly and dnl can cause trouble. -- -2.6.4 +2.7.4
package/python3/0031-Add-an-option-to-disable-openssl-support.patch renamed from package/python3/0031-Add-an-option-to-disable-openssl.patch +8 -1
@@ -1,4 +1,6 @@ +From d903da1181cedb76d8191b33aea0519844f85b22 Mon Sep 17 00:00:00 2001 From: Nicolas Cavallari <[email protected]> +Date: Tue, 7 Mar 2017 23:25:12 +0100 Subject: [PATCH] Add an option to disable openssl support. Signed-off-by: Nicolas Cavallari <[email protected]>
@@ -6,9 +8,11 @@ Signed-off-by: Nicolas Cavallari <[email protected]> configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) +diff --git a/configure.ac b/configure.ac +index 16a827c..65c0ce0 100644 --- a/configure.ac +++ b/configure.ac -@@ -3027,6 +3027,12 @@ +@@ -3027,6 +3027,12 @@ AC_ARG_ENABLE(unicodedata, DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} unicodedata" fi])
@@ -21,3 +25,6 @@ Signed-off-by: Nicolas Cavallari <[email protected]> AC_SUBST(TK) AC_ARG_ENABLE(tk, AS_HELP_STRING([--disable-tk], [disable tk]), +-- +2.7.4 +
Signature · 1 line
2.7.4
PATCH 4/6 python3: refresh Git formatted patches
Quoted 4 lines · Thomas Petazzoni
This refreshes the set of python3 patches so they apply cleanly on the v3.5.2 tag of cpython Github repository.
Signed-off-by Thomas Petazzoni <[email protected]>
Quoted 1,377 lines
--- ...up.py-do-not-add-invalid-header-locations.patch | 8 ++++---- ...the-install-location-of-_sysconfigdata.py.patch | 22 ++++++++++---------- ...3-Make-the-build-of-pyc-files-conditional.patch | 14 ++++++------- ...gy_getaddrinfo-configure-test-when-cross-.patch | 8 ++++---- ...ructure-to-disable-the-build-of-certain-e.patch | 16 +++++++-------- ...006-distutils-sysconfig-use-sysconfigdata.patch | 4 ++-- ...ibrary-header-paths-for-cross-compilation.patch | 6 +++--- ...n-t-look-in-usr-lib-termcap-for-libraries.patch | 8 ++++---- .../python3/0009-Don-t-add-multiarch-paths.patch | 8 ++++---- .../0010-Abort-on-failed-module-build.patch | 8 ++++---- package/python3/0011-Serial-ioctl-workaround.patch | 4 ++-- ...st-the-shebang-of-Python-scripts-for-cros.patch | 4 ++-- ...-config.sh.in-ensure-sed-invocations-only.patch | 4 ++-- ...-harcode-invalid-path-to-ncursesw-headers.patch | 8 ++++---- ...stem-locale-and-set-to-default-when-addin.patch | 8 ++++---- ...0016-Add-importlib-fix-for-PEP-3147-issue.patch | 12 +++++------ ...on-to-disable-installation-of-test-module.patch | 14 ++++++------- .../0018-Add-an-option-to-disable-pydoc.patch | 22 ++++++++++---------- .../0019-Add-an-option-to-disable-lib2to3.patch | 24 +++++++++++----------- ...-Add-option-to-disable-the-sqlite3-module.patch | 16 +++++++-------- ...21-Add-an-option-to-disable-the-tk-module.patch | 16 +++++++-------- ...dd-an-option-to-disable-the-curses-module.patch | 14 ++++++------- .../0023-Add-an-option-to-disable-expat.patch | 18 ++++++++-------- .../0024-Add-an-option-to-disable-CJK-codecs.patch | 8 ++++---- .../0025-Add-an-option-to-disable-NIS.patch | 8 ++++---- ...0026-Add-an-option-to-disable-unicodedata.patch | 8 ++++---- .../0027-Add-an-option-to-disable-IDLE.patch | 20 +++++++++--------- .../0028-Add-an-option-to-disable-decimal.patch | 12 +++++------ ...-option-to-disable-the-ossaudiodev-module.patch | 8 ++++---- ...N_FOR_BUILD-and-FREEZE_IMPORTLIB_FOR_BUIL.patch | 20 +++++++++--------- ...Add-an-option-to-disable-openssl-support.patch} | 9 +++++++- 31 files changed, 183 insertions(+), 176 deletions(-) rename package/python3/{0031-Add-an-option-to-disable-openssl.patch => 0031-Add-an-option-to-disable-openssl-support.patch} (73%)package/python3/0001-setup.py-do-not-add-invalid-header-locations.patch +4
-4@@ -1,4 +1,4 @@ -From d6093bad6c700312ff7ff4a7bb15c815dda6f46b Mon Sep 17 00:00:00 2001 +From 093733d806e32ef47db5c6d2379d7c93ae71524b Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:28:34 +0100 Subject: [PATCH] setup.py: do not add invalid header locations@@ -28,10 +28,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py -index da67731..dbd2a3c 100644 +index 174ce72..b67d913 100644 --- a/setup.py +++ b/setup.py -@@ -511,7 +511,8 @@ class PyBuildExt(build_ext): +@@ -534,7 +534,8 @@ class PyBuildExt(build_ext): add_dir_to_list(dir_list, directory) if os.path.normpath(sys.base_prefix) != '/usr' \@@ -42,5 +42,5 @@ index da67731..dbd2a3c 100644 # (PYTHONFRAMEWORK is set) to avoid # linking problems when # building a framework with different architectures than -- -2.6.4 +2.7.4package/python3/0002-Change-the-install-location-of-_sysconfigdata.py.patch +11
-11@@ -1,4 +1,4 @@ -From 4ac038d30ec71b3f223ac7c91613856dd82b6347 Mon Sep 17 00:00:00 2001 +From 1fca2c29a600b1eaa28da19e8c258fa0300c4eaf Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:29:04 +0100 Subject: [PATCH] Change the install location of _sysconfigdata.py@@ -25,10 +25,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Makefile.pre.in b/Makefile.pre.in -index 823def3..4d2a061 100644 +index 87528a0..5a258e0 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -585,6 +585,9 @@ pybuilddir.txt: $(BUILDPYTHON) +@@ -588,6 +588,9 @@ pybuilddir.txt: $(BUILDPYTHON) rm -f ./pybuilddir.txt ; \ exit 1 ; \ fi@@ -36,9 +36,9 @@ index 823def3..4d2a061 100644 + mkdir -p `cat pysysconfigdatadir.txt` + cp `cat pybuilddir.txt`/_sysconfigdata.py `cat pysysconfigdatadir.txt` - # Build the shared modules - # Under GNU make, MAKEFLAGS are sorted and normalized; the 's' for -@@ -1235,7 +1238,7 @@ libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c + # This is shared by the math and cmath modules + Modules/_math.o: Modules/_math.c Modules/_math.h +@@ -1261,7 +1264,7 @@ libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c else true; \ fi; \ done@@ -47,7 +47,7 @@ index 823def3..4d2a061 100644 do \ if test -x $$i; then \ $(INSTALL_SCRIPT) $$i $(DESTDIR)$(LIBDEST); \ -@@ -1245,6 +1248,11 @@ libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c +@@ -1271,6 +1274,11 @@ libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c echo $(INSTALL_DATA) $$i $(LIBDEST); \ fi; \ done@@ -59,7 +59,7 @@ index 823def3..4d2a061 100644 @for d in $(LIBSUBDIRS); \ do \ a=$(srcdir)/Lib/$$d; \ -@@ -1580,7 +1588,7 @@ clean: pycremoval +@@ -1606,7 +1614,7 @@ clean: pycremoval find build -name 'fficonfig.h' -exec rm -f {} ';' || true find build -name '*.py' -exec rm -f {} ';' || true find build -name '*.py[co]' -exec rm -f {} ';' || true@@ -69,10 +69,10 @@ index 823def3..4d2a061 100644 -rm -f Programs/_testembed Programs/_freeze_importlib -rm -rf build diff --git a/configure.ac b/configure.ac -index 694293e..76b70a0 100644 +index 1c07c05..8d0a43b 100644 --- a/configure.ac +++ b/configure.ac -@@ -70,7 +70,7 @@ if test "$cross_compiling" = yes; then +@@ -71,7 +71,7 @@ if test "$cross_compiling" = yes; then AC_MSG_ERROR([python$PACKAGE_VERSION interpreter not found]) fi AC_MSG_RESULT($interp)@@ -82,5 +82,5 @@ index 694293e..76b70a0 100644 elif test "$cross_compiling" = maybe; then AC_MSG_ERROR([Cross compiling required --host=HOST-TUPLE and --build=ARCH]) -- -2.6.4 +2.7.4package/python3/0003-Make-the-build-of-pyc-files-conditional.patch +7
-7@@ -1,4 +1,4 @@ -From 28f81597314ea3ed03935b519453a55cf6c3c20d Mon Sep 17 00:00:00 2001 +From 5df8e9556e8026dd19cf932fa8f2b726f56182d1 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:29:35 +0100 Subject: [PATCH] Make the build of pyc files conditional@@ -13,10 +13,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 2 files changed, 8 insertions(+) diff --git a/Makefile.pre.in b/Makefile.pre.in -index 4d2a061..272f312 100644 +index 5a258e0..6a7d974 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -1283,6 +1283,7 @@ libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c +@@ -1309,6 +1309,7 @@ libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c $(INSTALL_DATA) $(srcdir)/Modules/xxmodule.c \ $(DESTDIR)$(LIBDEST)/distutils/tests ; \ fi@@ -24,7 +24,7 @@ index 4d2a061..272f312 100644 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ $(PYTHON_FOR_BUILD) -Wi $(DESTDIR)$(LIBDEST)/compileall.py \ -d $(LIBDEST) -f \ -@@ -1310,6 +1311,7 @@ libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c +@@ -1336,6 +1337,7 @@ libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c $(PYTHON_FOR_BUILD) -Wi -OO $(DESTDIR)$(LIBDEST)/compileall.py \ -d $(LIBDEST)/site-packages -f \ -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages@@ -33,10 +33,10 @@ index 4d2a061..272f312 100644 $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/Grammar.txt -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ diff --git a/configure.ac b/configure.ac -index 76b70a0..66d4642 100644 +index 8d0a43b..db0e336 100644 --- a/configure.ac +++ b/configure.ac -@@ -1056,6 +1056,12 @@ fi +@@ -1074,6 +1074,12 @@ fi AC_MSG_CHECKING(LDLIBRARY)@@ -50,5 +50,5 @@ index 76b70a0..66d4642 100644 # library that we build, but we do not want to link against it (we # will find it with a -framework option). For this reason there is an -- -2.6.4 +2.7.4package/python3/0004-Disable-buggy_getaddrinfo-configure-test-when-cross-.patch +4
-4@@ -1,4 +1,4 @@ -From 093caf46b7a742ee2f7bcf617a915ac1653aa8ac Mon Sep 17 00:00:00 2001 +From 449ac686b4c0f73bbbf0202c4a5689b5ddb37d53 Mon Sep 17 00:00:00 2001 From: Vanya Sergeev <[email protected]> Date: Wed, 23 Dec 2015 11:30:33 +0100 Subject: [PATCH] Disable buggy_getaddrinfo configure test when cross-compiling@@ -10,10 +10,10 @@ Signed-off-by: Vanya Sergeev <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac -index 66d4642..c492594 100644 +index db0e336..f57f2eb 100644 --- a/configure.ac +++ b/configure.ac -@@ -3662,7 +3662,7 @@ fi +@@ -3744,7 +3744,7 @@ fi AC_MSG_RESULT($ac_cv_buggy_getaddrinfo)@@ -23,5 +23,5 @@ index 66d4642..c492594 100644 if test $ipv6 = yes then -- -2.6.4 +2.7.4package/python3/0005-Add-infrastructure-to-disable-the-build-of-certain-e.patch +8
-8@@ -1,4 +1,4 @@ -From 3a9f4aa255909ed152883eee787313efd20dbc58 Mon Sep 17 00:00:00 2001 +From cbf8556ad057a402629a5be93dc77c906f3a86ab Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:31:08 +0100 Subject: [PATCH] Add infrastructure to disable the build of certain extensions@@ -42,7 +42,7 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Makefile.pre.in b/Makefile.pre.in -index 272f312..9420860 100644 +index 6a7d974..d70375a 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -182,6 +182,8 @@ FILEMODE= 644@@ -54,7 +54,7 @@ index 272f312..9420860 100644 # Subdirectories with code SRCDIRS= @SRCDIRS@ -@@ -600,6 +602,7 @@ sharedmods: $(BUILDPYTHON) pybuilddir.txt +@@ -607,6 +609,7 @@ sharedmods: $(BUILDPYTHON) pybuilddir.txt Modules/_math.o esac; \ $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' \ _TCLTK_INCLUDES='$(TCLTK_INCLUDES)' _TCLTK_LIBS='$(TCLTK_LIBS)' \@@ -62,7 +62,7 @@ index 272f312..9420860 100644 $(PYTHON_FOR_BUILD) $(srcdir)/setup.py $$quiet build # Build static library -@@ -1425,7 +1428,8 @@ libainstall: all python-config +@@ -1451,7 +1454,8 @@ libainstall: all python-config # Install the dynamically loadable modules # This goes into $(exec_prefix) sharedinstall: sharedmods@@ -73,10 +73,10 @@ index 272f312..9420860 100644 --install-scripts=$(BINDIR) \ --install-platlib=$(DESTSHARED) \ diff --git a/configure.ac b/configure.ac -index c492594..bfb599e 100644 +index f57f2eb..c43ff9f 100644 --- a/configure.ac +++ b/configure.ac -@@ -2588,6 +2588,8 @@ LIBS="$withval $LIBS" +@@ -2670,6 +2670,8 @@ LIBS="$withval $LIBS" PKG_PROG_PKG_CONFIG@@ -86,7 +86,7 @@ index c492594..bfb599e 100644 AC_MSG_CHECKING(for --with-system-expat) AC_ARG_WITH(system_expat, diff --git a/setup.py b/setup.py -index dbd2a3c..1ebfa50 100644 +index b67d913..149911c 100644 --- a/setup.py +++ b/setup.py @@ -44,7 +44,10 @@ host_platform = get_platform()@@ -102,5 +102,5 @@ index dbd2a3c..1ebfa50 100644 def add_dir_to_list(dirlist, dir): """Add the directory 'dir' to the list 'dirlist' (after any relative -- -2.6.4 +2.7.4package/python3/0006-distutils-sysconfig-use-sysconfigdata.patch +2
-2@@ -1,4 +1,4 @@ -From 7c560d917ee0e536c76fac275d1cb0b6136269ab Mon Sep 17 00:00:00 2001 +From 5855e029370e5636e3eb2283eaa8d11248744eac Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:32:23 +0100 Subject: [PATCH] distutils/sysconfig: use sysconfigdata@@ -61,5 +61,5 @@ index 573724d..721edec 100644 def _init_nt(): """Initialize the module as appropriate for NT""" -- -2.6.4 +2.7.4package/python3/0007-Adjust-library-header-paths-for-cross-compilation.patch +3
-3@@ -1,4 +1,4 @@ -From e634929f76a45f5b683dc19bc01efed2ab83e19e Mon Sep 17 00:00:00 2001 +From f24bff04a609d30ead9776ae3b27aa579135c8bf Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:33:14 +0100 Subject: [PATCH] Adjust library/header paths for cross-compilation@@ -21,7 +21,7 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py -index d4cb11e..e7a0ba9 100644 +index f03a4e3..0355963 100644 --- a/Lib/distutils/command/build_ext.py +++ b/Lib/distutils/command/build_ext.py @@ -232,7 +232,10 @@ class build_ext(Command):@@ -63,5 +63,5 @@ index 721edec..d20e2d8 100644 # Path to the base directory of the project. On Windows the binary may # live in project/PCBuild/win32 or project/PCBuild/amd64. -- -2.6.4 +2.7.4package/python3/0008-Don-t-look-in-usr-lib-termcap-for-libraries.patch +4
-4@@ -1,4 +1,4 @@ -From d7c568632f7cb83346096ea114a06f89a0b488d6 Mon Sep 17 00:00:00 2001 +From f59154777625b039d8f76aa787817b108867ee04 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:36:00 +0100 Subject: [PATCH] Don't look in /usr/lib/termcap for libraries@@ -9,10 +9,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/setup.py b/setup.py -index 1ebfa50..24a7153 100644 +index 149911c..1b4b981 100644 --- a/setup.py +++ b/setup.py -@@ -753,12 +753,9 @@ class PyBuildExt(build_ext): +@@ -783,12 +783,9 @@ class PyBuildExt(build_ext): pass # Issue 7384: Already linked against curses or tinfo. elif curses_library: readline_libs.append(curses_library)@@ -27,5 +27,5 @@ index 1ebfa50..24a7153 100644 libraries=readline_libs) ) else: -- -2.6.4 +2.7.4package/python3/0009-Don-t-add-multiarch-paths.patch +4
-4@@ -1,4 +1,4 @@ -From bac5ac529cc0902a340a5cd03308433c6e80d1f6 Mon Sep 17 00:00:00 2001 +From f270af67f4ea6cc781f7cf05ba66e078190368df Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:36:27 +0100 Subject: [PATCH] Don't add multiarch paths@@ -17,10 +17,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py -index 24a7153..8380a64 100644 +index 1b4b981..9a48d5f 100644 --- a/setup.py +++ b/setup.py -@@ -474,10 +474,10 @@ class PyBuildExt(build_ext): +@@ -497,10 +497,10 @@ class PyBuildExt(build_ext): if not cross_compiling: add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')@@ -33,5 +33,5 @@ index 24a7153..8380a64 100644 # Add paths specified in the environment variables LDFLAGS and # CPPFLAGS for header and library files. -- -2.6.4 +2.7.4package/python3/0010-Abort-on-failed-module-build.patch +4
-4@@ -1,4 +1,4 @@ -From 86ef08e36597e14cac06aef176f12375a27fdef5 Mon Sep 17 00:00:00 2001 +From 01780527e647b15f7f1aed4351c18fb4098a8707 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:43:24 +0100 Subject: [PATCH] Abort on failed module build@@ -14,10 +14,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py -index 8380a64..15b39f5 100644 +index 9a48d5f..d02012d 100644 --- a/setup.py +++ b/setup.py -@@ -296,6 +296,7 @@ class PyBuildExt(build_ext): +@@ -312,6 +312,7 @@ class PyBuildExt(build_ext): print("Failed to build these modules:") print_three_column(failed) print()@@ -26,5 +26,5 @@ index 8380a64..15b39f5 100644 if self.failed_on_import: failed = self.failed_on_import[:] -- -2.6.4 +2.7.4package/python3/0011-Serial-ioctl-workaround.patch +2
-2@@ -1,4 +1,4 @@ -From ace3ebd517ea0ac42208b6a06c7e8f82da3b9c1b Mon Sep 17 00:00:00 2001 +From 49bfbdadd4808e7868e443b2786faf513c9818ea Mon Sep 17 00:00:00 2001 From: Baruch Siach <[email protected]> Date: Wed, 23 Dec 2015 11:44:02 +0100 Subject: [PATCH] Serial ioctl() workaround@@ -29,5 +29,5 @@ index b78d33e..58b0444 100644 /* HP-UX requires that this be included to pick up MDCD, MCTS, MDSR, * MDTR, MRI, and MRTS (appearantly used internally by some things -- -2.6.4 +2.7.4package/python3/0012-Do-not-adjust-the-shebang-of-Python-scripts-for-cros.patch +2
-2@@ -1,4 +1,4 @@ -From 45f482813de828415906e6a416c9c35450c38da7 Mon Sep 17 00:00:00 2001 +From c0eb115234b1c41a25c1a9e8a39e49155357c45a Mon Sep 17 00:00:00 2001 From: Christophe Vu-Brugier <[email protected]> Date: Wed, 23 Dec 2015 11:44:30 +0100 Subject: [PATCH] Do not adjust the shebang of Python scripts for@@ -31,5 +31,5 @@ index 90a8380..bdf4cf1 100644 self.build_dir) updated_files.append(outfile) -- -2.6.4 +2.7.4package/python3/0013-Misc-python-config.sh.in-ensure-sed-invocations-only.patch +2
-2@@ -1,4 +1,4 @@ -From 5858abdc25acd522869103d64b60a0c9687e2ec1 Mon Sep 17 00:00:00 2001 +From a92c541ce8dd40af86642ac420e628aeeb6a5f05 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard <[email protected]> Date: Thu, 20 Nov 2014 13:24:59 +0100 Subject: [PATCH] Misc/python-config.sh.in: ensure sed invocations only match@@ -56,5 +56,5 @@ index 30c6927..f905a71 100644 PYTHONFRAMEWORK="@PYTHONFRAMEWORK@" INCDIR="-I$includedir/python${VERSION}${ABIFLAGS}" -- -2.6.4 +2.7.4package/python3/0014-Do-not-harcode-invalid-path-to-ncursesw-headers.patch +4
-4@@ -1,4 +1,4 @@ -From be44636b36086ca1b6de24265b7c3cc0c2bae913 Mon Sep 17 00:00:00 2001 +From f33d59b67f26649babc8c91e38eff9bc817d0470 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:45:13 +0100 Subject: [PATCH] Do not harcode invalid path to ncursesw headers@@ -14,10 +14,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 1 file changed, 1 deletion(-) diff --git a/setup.py b/setup.py -index 15b39f5..9e08e7e 100644 +index d02012d..cc2f00b 100644 --- a/setup.py +++ b/setup.py -@@ -1296,7 +1296,6 @@ class PyBuildExt(build_ext): +@@ -1326,7 +1326,6 @@ class PyBuildExt(build_ext): panel_library = 'panel' if curses_library == 'ncursesw': curses_defines.append(('HAVE_NCURSESW', '1'))@@ -26,5 +26,5 @@ index 15b39f5..9e08e7e 100644 # _curses_panel.so must link with panelw. panel_library = 'panelw' -- -2.6.4 +2.7.4package/python3/0015-Override-system-locale-and-set-to-default-when-addin.patch +4
-4@@ -1,4 +1,4 @@ -From 46fda6fc83500bf5663397f9d28b618e6b6b20c1 Mon Sep 17 00:00:00 2001 +From 3f2764f8433f49cb7a9e647d3e4ec2ba3cffb694 Mon Sep 17 00:00:00 2001 From: Samuel Cabrero <[email protected]> Date: Wed, 23 Dec 2015 11:45:48 +0100 Subject: [PATCH] Override system locale and set to default when adding gcc@@ -20,10 +20,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py -index 9e08e7e..3feca04 100644 +index cc2f00b..1c3b838 100644 --- a/setup.py +++ b/setup.py -@@ -441,7 +441,7 @@ class PyBuildExt(build_ext): +@@ -457,7 +457,7 @@ class PyBuildExt(build_ext): tmpfile = os.path.join(self.build_temp, 'gccpaths') if not os.path.exists(self.build_temp): os.makedirs(self.build_temp)@@ -33,5 +33,5 @@ index 9e08e7e..3feca04 100644 in_incdirs = False inc_dirs = [] -- -2.6.4 +2.7.4package/python3/0016-Add-importlib-fix-for-PEP-3147-issue.patch +6
-6@@ -1,4 +1,4 @@ -From d2b5be9a0627e38d2280ef865dab3e74b7d2bde4 Mon Sep 17 00:00:00 2001 +From 66c1baaf357f75591ee2f31966385b6eb96c8eb4 Mon Sep 17 00:00:00 2001 From: Christophe Vu-Brugier <[email protected]> Date: Wed, 23 Dec 2015 11:46:14 +0100 Subject: [PATCH] Add importlib fix for PEP 3147 issue@@ -23,10 +23,10 @@ Signed-off-by: Christophe Vu-Brugier <[email protected]> 1 file changed, 5 insertions(+), 32 deletions(-) diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py -index 616b17f..e30129c 100644 +index 9788828..dfcc27e 100644 --- a/Lib/importlib/_bootstrap_external.py +++ b/Lib/importlib/_bootstrap_external.py -@@ -255,8 +255,6 @@ def cache_from_source(path, debug_override=None, *, optimization=None): +@@ -258,8 +258,6 @@ def cache_from_source(path, debug_override=None, *, optimization=None): a True value is the same as setting 'optimization' to the empty string while a False value is equivalent to setting 'optimization' to '1'.@@ -35,7 +35,7 @@ index 616b17f..e30129c 100644 """ if debug_override is not None: _warnings.warn('the debug_override parameter is deprecated; use ' -@@ -267,10 +265,7 @@ def cache_from_source(path, debug_override=None, *, optimization=None): +@@ -270,10 +268,7 @@ def cache_from_source(path, debug_override=None, *, optimization=None): optimization = '' if debug_override else 1 head, tail = _path_split(path) base, sep, rest = tail.rpartition('.')@@ -47,7 +47,7 @@ index 616b17f..e30129c 100644 if optimization is None: if sys.flags.optimize == 0: optimization = '' -@@ -281,39 +276,17 @@ def cache_from_source(path, debug_override=None, *, optimization=None): +@@ -284,39 +279,17 @@ def cache_from_source(path, debug_override=None, *, optimization=None): if not optimization.isalnum(): raise ValueError('{!r} is not alphanumeric'.format(optimization)) almost_filename = '{}.{}{}'.format(almost_filename, _OPT, optimization)@@ -92,5 +92,5 @@ index 616b17f..e30129c 100644 -- -2.6.4 +2.7.4package/python3/0017-Add-an-option-to-disable-installation-of-test-module.patch +7
-7@@ -1,4 +1,4 @@ -From 1d2891204c6bf05d5e2eb0e5fa2ee78f6a2b755b Mon Sep 17 00:00:00 2001 +From 78e54257cf149408036661be98be6f2650c5a8f9 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:47:00 +0100 Subject: [PATCH] Add an option to disable installation of test modules@@ -14,10 +14,10 @@ Signed-off-by: Samuel Martin <[email protected]> 2 files changed, 42 insertions(+), 20 deletions(-) diff --git a/Makefile.pre.in b/Makefile.pre.in -index 9420860..d4c771a 100644 +index d70375a..e5a4372 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -1166,8 +1166,30 @@ maninstall: altmaninstall +@@ -1192,8 +1192,30 @@ maninstall: altmaninstall PLATDIR= @PLATDIR@ MACHDEPS= $(PLATDIR) XMLLIBSUBDIRS= xml xml/dom xml/etree xml/parsers xml/sax@@ -50,7 +50,7 @@ index 9420860..d4c771a 100644 test/audiodata \ test/capath test/data \ test/cjkencodings test/decimaltestdata test/xmltestdata \ -@@ -1199,28 +1221,22 @@ LIBSUBDIRS= tkinter tkinter/test tkinter/test/test_tkinter \ +@@ -1225,28 +1247,22 @@ LIBSUBDIRS= tkinter tkinter/test tkinter/test/test_tkinter \ test/test_importlib/namespace_pkgs/project3/parent/child \ test/test_importlib/namespace_pkgs/module_and_namespace_package \ test/test_importlib/namespace_pkgs/module_and_namespace_package/a_test \@@ -92,10 +92,10 @@ index 9420860..d4c771a 100644 @for i in $(SCRIPTDIR) $(LIBDEST); \ do \ diff --git a/configure.ac b/configure.ac -index bfb599e..9f3d226 100644 +index c43ff9f..8b8c249 100644 --- a/configure.ac +++ b/configure.ac -@@ -2895,6 +2895,12 @@ if test "$posix_threads" = "yes"; then +@@ -2977,6 +2977,12 @@ if test "$posix_threads" = "yes"; then fi@@ -109,5 +109,5 @@ index bfb599e..9f3d226 100644 AH_TEMPLATE(ENABLE_IPV6, [Define if --enable-ipv6 is specified]) AC_MSG_CHECKING([if --enable-ipv6 is specified]) -- -2.6.4 +2.7.4package/python3/0018-Add-an-option-to-disable-pydoc.patch +11
-11@@ -1,4 +1,4 @@ -From a83b79b964700604de386800f86e5a55f53a0e17 Mon Sep 17 00:00:00 2001 +From e07206329b3a4cdecaeca7991996950f82cd8744 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:47:11 +0100 Subject: [PATCH] Add an option to disable pydoc@@ -15,10 +15,10 @@ Signed-off-by: Samuel Martin <[email protected]> 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/Makefile.pre.in b/Makefile.pre.in -index d4c771a..a98ad65 100644 +index e5a4372..83fc343 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -1134,7 +1134,9 @@ bininstall: altbininstall +@@ -1160,7 +1160,9 @@ bininstall: altbininstall -rm -f $(DESTDIR)$(BINDIR)/idle3 (cd $(DESTDIR)$(BINDIR); $(LN) -s idle$(VERSION) idle3) -rm -f $(DESTDIR)$(BINDIR)/pydoc3@@ -28,7 +28,7 @@ index d4c771a..a98ad65 100644 -rm -f $(DESTDIR)$(BINDIR)/2to3 (cd $(DESTDIR)$(BINDIR); $(LN) -s 2to3-$(VERSION) 2to3) -rm -f $(DESTDIR)$(BINDIR)/pyvenv -@@ -1184,7 +1186,7 @@ LIBSUBDIRS= tkinter \ +@@ -1210,7 +1212,7 @@ LIBSUBDIRS= tkinter \ multiprocessing multiprocessing/dummy \ unittest \ venv venv/scripts venv/scripts/posix \@@ -37,7 +37,7 @@ index d4c771a..a98ad65 100644 TESTSUBDIRS = tkinter/test tkinter/test/test_tkinter tkinter/test/test_ttk \ test test/test_asyncio \ -@@ -1233,6 +1235,10 @@ TESTSUBDIRS = tkinter/test tkinter/test/test_tkinter tkinter/test/test_ttk \ +@@ -1259,6 +1261,10 @@ TESTSUBDIRS = tkinter/test tkinter/test/test_tkinter tkinter/test/test_ttk \ test/test_importlib/import_ test/test_importlib/source \ unittest/test unittest/test/testmock@@ -49,10 +49,10 @@ index d4c771a..a98ad65 100644 LIBSUBDIRS += $(TESTSUBDIRS) endif diff --git a/configure.ac b/configure.ac -index 9f3d226..e9b6d6f 100644 +index 8b8c249..eea25d4 100644 --- a/configure.ac +++ b/configure.ac -@@ -2894,6 +2894,11 @@ if test "$posix_threads" = "yes"; then +@@ -2976,6 +2976,11 @@ if test "$posix_threads" = "yes"; then AC_CHECK_FUNCS(pthread_atfork) fi@@ -65,10 +65,10 @@ index 9f3d226..e9b6d6f 100644 AC_SUBST(TEST_MODULES) diff --git a/setup.py b/setup.py -index 3feca04..137911d 100644 +index 1c3b838..2a01896 100644 --- a/setup.py +++ b/setup.py -@@ -2220,6 +2220,12 @@ def main(): +@@ -2253,6 +2253,12 @@ def main(): # turn off warnings when deprecated modules are imported import warnings warnings.filterwarnings("ignore",category=DeprecationWarning)@@ -81,7 +81,7 @@ index 3feca04..137911d 100644 setup(# PyPI Metadata (PEP 301) name = "Python", version = sys.version.split()[0], -@@ -2244,8 +2250,7 @@ def main(): +@@ -2277,8 +2283,7 @@ def main(): # If you change the scripts installed here, you also need to # check the PyBuildScripts command above, and change the links # created by the bininstall target in Makefile.pre.in@@ -92,5 +92,5 @@ index 3feca04..137911d 100644 # --install-platlib -- -2.6.4 +2.7.4package/python3/0019-Add-an-option-to-disable-lib2to3.patch +12
-12@@ -1,4 +1,4 @@ -From 3c877ea9f09913586f87064b7a2b9d2b49cb05aa Mon Sep 17 00:00:00 2001 +From a42283b5bee8bfd0a6a39e6805787643d075f1a5 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:48:44 +0100 Subject: [PATCH] Add an option to disable lib2to3@@ -15,10 +15,10 @@ Signed-off-by: Samuel Martin <[email protected]> 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/Makefile.pre.in b/Makefile.pre.in -index a98ad65..3823940 100644 +index 83fc343..aeedad9 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -1138,7 +1138,9 @@ ifeq (@PYDOC@,yes) +@@ -1164,7 +1164,9 @@ ifeq (@PYDOC@,yes) (cd $(DESTDIR)$(BINDIR); $(LN) -s pydoc$(VERSION) pydoc3) endif -rm -f $(DESTDIR)$(BINDIR)/2to3@@ -28,7 +28,7 @@ index a98ad65..3823940 100644 -rm -f $(DESTDIR)$(BINDIR)/pyvenv (cd $(DESTDIR)$(BINDIR); $(LN) -s pyvenv-$(VERSION) pyvenv) if test "x$(LIPO_32BIT_FLAGS)" != "x" ; then \ -@@ -1177,7 +1179,6 @@ LIBSUBDIRS= tkinter \ +@@ -1203,7 +1205,6 @@ LIBSUBDIRS= tkinter \ html json http dbm xmlrpc \ sqlite3 \ logging csv wsgiref urllib \@@ -36,7 +36,7 @@ index a98ad65..3823940 100644 ctypes ctypes/macholib \ idlelib idlelib/Icons \ distutils distutils/command $(XMLLIBSUBDIRS) \ -@@ -1224,9 +1225,6 @@ TESTSUBDIRS = tkinter/test tkinter/test/test_tkinter tkinter/test/test_ttk \ +@@ -1250,9 +1251,6 @@ TESTSUBDIRS = tkinter/test tkinter/test/test_tkinter tkinter/test/test_ttk \ test/test_importlib/namespace_pkgs/module_and_namespace_package \ test/test_importlib/namespace_pkgs/module_and_namespace_package/a_test \ sqlite3/test \@@ -46,7 +46,7 @@ index a98ad65..3823940 100644 ctypes/test \ idlelib/idle_test \ distutils/tests \ -@@ -1239,6 +1237,14 @@ ifeq (@PYDOC@,yes) +@@ -1265,6 +1263,14 @@ ifeq (@PYDOC@,yes) LIBSUBDIRS += pydoc_data endif@@ -61,7 +61,7 @@ index a98ad65..3823940 100644 ifeq (@TEST_MODULES@,yes) LIBSUBDIRS += $(TESTSUBDIRS) endif -@@ -1337,10 +1343,12 @@ ifeq (@PYC_BUILD@,yes) +@@ -1363,10 +1369,12 @@ ifeq (@PYC_BUILD@,yes) -d $(LIBDEST)/site-packages -f \ -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages endif@@ -75,10 +75,10 @@ index a98ad65..3823940 100644 # Create the PLATDIR source directory, if one wasn't distributed.. $(srcdir)/Lib/$(PLATDIR): diff --git a/configure.ac b/configure.ac -index e9b6d6f..652ad88 100644 +index eea25d4..32239d3 100644 --- a/configure.ac +++ b/configure.ac -@@ -2906,6 +2906,12 @@ AC_ARG_ENABLE(test-modules, +@@ -2988,6 +2988,12 @@ AC_ARG_ENABLE(test-modules, AS_HELP_STRING([--disable-test-modules], [disable test modules]), [ TEST_MODULES="${enableval}" ], [ TEST_MODULES=yes ])@@ -92,10 +92,10 @@ index e9b6d6f..652ad88 100644 AH_TEMPLATE(ENABLE_IPV6, [Define if --enable-ipv6 is specified]) AC_MSG_CHECKING([if --enable-ipv6 is specified]) diff --git a/setup.py b/setup.py -index 137911d..722308b 100644 +index 2a01896..be27531 100644 --- a/setup.py +++ b/setup.py -@@ -2221,10 +2221,11 @@ def main(): +@@ -2254,10 +2254,11 @@ def main(): import warnings warnings.filterwarnings("ignore",category=DeprecationWarning)@@ -110,5 +110,5 @@ index 137911d..722308b 100644 setup(# PyPI Metadata (PEP 301) name = "Python", -- -2.6.4 +2.7.4package/python3/0020-Add-option-to-disable-the-sqlite3-module.patch +8
-8@@ -1,4 +1,4 @@ -From 9ae1dce0a2fa01fc3dbc83d8b8c1b56e4b1b162b Mon Sep 17 00:00:00 2001 +From 3d12c6e8180bc250d77a4bbb78899ccf8566b1cb Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:49:01 +0100 Subject: [PATCH] Add option to disable the sqlite3 module@@ -11,10 +11,10 @@ Signed-off-by: Samuel Martin <[email protected]> 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Makefile.pre.in b/Makefile.pre.in -index 3823940..c822dbd 100644 +index aeedad9..d262c04 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -1177,7 +1177,6 @@ LIBSUBDIRS= tkinter \ +@@ -1203,7 +1203,6 @@ LIBSUBDIRS= tkinter \ email email/mime \ ensurepip ensurepip/_bundled \ html json http dbm xmlrpc \@@ -22,7 +22,7 @@ index 3823940..c822dbd 100644 logging csv wsgiref urllib \ ctypes ctypes/macholib \ idlelib idlelib/Icons \ -@@ -1224,7 +1223,6 @@ TESTSUBDIRS = tkinter/test tkinter/test/test_tkinter tkinter/test/test_ttk \ +@@ -1250,7 +1249,6 @@ TESTSUBDIRS = tkinter/test tkinter/test/test_tkinter tkinter/test/test_ttk \ test/test_importlib/namespace_pkgs/project3/parent/child \ test/test_importlib/namespace_pkgs/module_and_namespace_package \ test/test_importlib/namespace_pkgs/module_and_namespace_package/a_test \@@ -30,7 +30,7 @@ index 3823940..c822dbd 100644 ctypes/test \ idlelib/idle_test \ distutils/tests \ -@@ -1245,6 +1243,11 @@ TESTSUBDIRS += lib2to3/tests \ +@@ -1271,6 +1269,11 @@ TESTSUBDIRS += lib2to3/tests \ lib2to3/tests/data/fixers/myfixes endif@@ -43,10 +43,10 @@ index 3823940..c822dbd 100644 LIBSUBDIRS += $(TESTSUBDIRS) endif diff --git a/configure.ac b/configure.ac -index 652ad88..cae12ad 100644 +index 32239d3..c9d0912 100644 --- a/configure.ac +++ b/configure.ac -@@ -2894,6 +2894,15 @@ if test "$posix_threads" = "yes"; then +@@ -2976,6 +2976,15 @@ if test "$posix_threads" = "yes"; then AC_CHECK_FUNCS(pthread_atfork) fi@@ -63,5 +63,5 @@ index 652ad88..cae12ad 100644 AC_ARG_ENABLE(pydoc, -- -2.6.4 +2.7.4package/python3/0021-Add-an-option-to-disable-the-tk-module.patch +8
-8@@ -1,4 +1,4 @@ -From d0d42570e5a23c3bf559e0413ec97729fd2f9e24 Mon Sep 17 00:00:00 2001 +From 61f201afe59bbfbb1094d987fd74ac9cd4764d52 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:49:14 +0100 Subject: [PATCH] Add an option to disable the tk module@@ -11,10 +11,10 @@ Signed-off-by: Samuel Martin <[email protected]> 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/Makefile.pre.in b/Makefile.pre.in -index c822dbd..0a93c27 100644 +index d262c04..851faa3 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -1170,7 +1170,7 @@ maninstall: altmaninstall +@@ -1196,7 +1196,7 @@ maninstall: altmaninstall PLATDIR= @PLATDIR@ MACHDEPS= $(PLATDIR) XMLLIBSUBDIRS= xml xml/dom xml/etree xml/parsers xml/sax@@ -23,7 +23,7 @@ index c822dbd..0a93c27 100644 site-packages \ asyncio \ collections concurrent concurrent/futures encodings \ -@@ -1188,8 +1188,7 @@ LIBSUBDIRS= tkinter \ +@@ -1214,8 +1214,7 @@ LIBSUBDIRS= tkinter \ venv venv/scripts venv/scripts/posix \ curses $(MACHDEPS)@@ -33,7 +33,7 @@ index c822dbd..0a93c27 100644 test/test_email test/test_email/data \ test/test_json \ test/audiodata \ -@@ -1248,6 +1247,12 @@ LIBSUBDIRS += sqlite3 +@@ -1274,6 +1273,12 @@ LIBSUBDIRS += sqlite3 TESTSUBDIRS += sqlite3/test endif@@ -47,10 +47,10 @@ index c822dbd..0a93c27 100644 LIBSUBDIRS += $(TESTSUBDIRS) endif diff --git a/configure.ac b/configure.ac -index cae12ad..787b185 100644 +index c9d0912..d5047ec 100644 --- a/configure.ac +++ b/configure.ac -@@ -2903,6 +2903,15 @@ if test "$SQLITE3" = "no" ; then +@@ -2985,6 +2985,15 @@ if test "$SQLITE3" = "no" ; then DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _sqlite3" fi@@ -67,5 +67,5 @@ index cae12ad..787b185 100644 AC_ARG_ENABLE(pydoc, -- -2.6.4 +2.7.4package/python3/0022-Add-an-option-to-disable-the-curses-module.patch +7
-7@@ -1,4 +1,4 @@ -From d04ec780bf7c0825ab260bd1d6b7292141b2dcde Mon Sep 17 00:00:00 2001 +From 2d1a718b6fc386e718c26dec23633f478e8791a0 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:49:30 +0100 Subject: [PATCH] Add an option to disable the curses module@@ -11,10 +11,10 @@ Signed-off-by: Samuel Martin <[email protected]> 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Makefile.pre.in b/Makefile.pre.in -index 0a93c27..b97c21e 100644 +index 851faa3..90a055c 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -1186,7 +1186,7 @@ LIBSUBDIRS= \ +@@ -1212,7 +1212,7 @@ LIBSUBDIRS= \ multiprocessing multiprocessing/dummy \ unittest \ venv venv/scripts venv/scripts/posix \@@ -23,7 +23,7 @@ index 0a93c27..b97c21e 100644 TESTSUBDIRS = test test/test_asyncio \ test/test_email test/test_email/data \ -@@ -1253,6 +1253,10 @@ TESTSUBDIRS += tkinter/test tkinter/test/test_tkinter \ +@@ -1279,6 +1279,10 @@ TESTSUBDIRS += tkinter/test tkinter/test/test_tkinter \ tkinter/test/test_ttk endif@@ -35,10 +35,10 @@ index 0a93c27..b97c21e 100644 LIBSUBDIRS += $(TESTSUBDIRS) endif diff --git a/configure.ac b/configure.ac -index 787b185..0be47b2 100644 +index d5047ec..3814ba0 100644 --- a/configure.ac +++ b/configure.ac -@@ -2912,6 +2912,15 @@ if test "$TK" = "no"; then +@@ -2994,6 +2994,15 @@ if test "$TK" = "no"; then DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _tkinter" fi@@ -55,5 +55,5 @@ index 787b185..0be47b2 100644 AC_ARG_ENABLE(pydoc, -- -2.6.4 +2.7.4package/python3/0023-Add-an-option-to-disable-expat.patch +9
-9@@ -1,4 +1,4 @@ -From 6281850ee8c3fb6d93b4997833af0cca4a48947b Mon Sep 17 00:00:00 2001 +From cb39a3171e28ac6db79d3604959730746e50c2b4 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:49:42 +0100 Subject: [PATCH] Add an option to disable expat@@ -18,10 +18,10 @@ Signed-off-by: Samuel Martin <[email protected]> 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/Makefile.pre.in b/Makefile.pre.in -index b97c21e..bdfee19 100644 +index 90a055c..fcb1ac4 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -1180,7 +1180,7 @@ LIBSUBDIRS= \ +@@ -1206,7 +1206,7 @@ LIBSUBDIRS= \ logging csv wsgiref urllib \ ctypes ctypes/macholib \ idlelib idlelib/Icons \@@ -30,7 +30,7 @@ index b97c21e..bdfee19 100644 importlib \ turtledemo \ multiprocessing multiprocessing/dummy \ -@@ -1257,6 +1257,10 @@ ifeq (@CURSES@,yes) +@@ -1283,6 +1283,10 @@ ifeq (@CURSES@,yes) LIBSUBDIRS += curses endif@@ -42,10 +42,10 @@ index b97c21e..bdfee19 100644 LIBSUBDIRS += $(TESTSUBDIRS) endif diff --git a/configure.ac b/configure.ac -index 0be47b2..e6bcacc 100644 +index 3814ba0..a7e9d16 100644 --- a/configure.ac +++ b/configure.ac -@@ -2591,13 +2591,21 @@ PKG_PROG_PKG_CONFIG +@@ -2673,13 +2673,21 @@ PKG_PROG_PKG_CONFIG AC_SUBST(DISABLED_EXTENSIONS) # Check for use of the system expat library@@ -73,10 +73,10 @@ index 0be47b2..e6bcacc 100644 # Check for use of the system libffi library AC_MSG_CHECKING(for --with-system-ffi) diff --git a/setup.py b/setup.py -index 722308b..ecddb6a 100644 +index be27531..53a471c 100644 --- a/setup.py +++ b/setup.py -@@ -1434,7 +1434,7 @@ class PyBuildExt(build_ext): +@@ -1464,7 +1464,7 @@ class PyBuildExt(build_ext): # # More information on Expat can be found at www.libexpat.org. #@@ -86,5 +86,5 @@ index 722308b..ecddb6a 100644 define_macros = [] expat_lib = ['expat'] -- -2.6.4 +2.7.4package/python3/0024-Add-an-option-to-disable-CJK-codecs.patch +4
-4@@ -1,4 +1,4 @@ -From 18265d05ee97ad0c43995acdadce2458b57d7d64 Mon Sep 17 00:00:00 2001 +From 26fb4f055203332db8a346ae80da542f721df01d Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:49:55 +0100 Subject: [PATCH] Add an option to disable CJK codecs@@ -9,10 +9,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac -index e6bcacc..38b7515 100644 +index a7e9d16..e9ea63f 100644 --- a/configure.ac +++ b/configure.ac -@@ -2911,6 +2911,12 @@ if test "$SQLITE3" = "no" ; then +@@ -2993,6 +2993,12 @@ if test "$SQLITE3" = "no" ; then DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _sqlite3" fi@@ -26,5 +26,5 @@ index e6bcacc..38b7515 100644 AC_ARG_ENABLE(tk, AS_HELP_STRING([--disable-tk], [disable tk]), -- -2.6.4 +2.7.4package/python3/0025-Add-an-option-to-disable-NIS.patch +4
-4@@ -1,4 +1,4 @@ -From 733ee65f308ec48be427463c06f372ca116ccada Mon Sep 17 00:00:00 2001 +From a2b911055f5b75e02d6a8853a9b21dfad277758e Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:50:11 +0100 Subject: [PATCH] Add an option to disable NIS@@ -12,10 +12,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac -index 38b7515..f25733a 100644 +index e9ea63f..98d1332 100644 --- a/configure.ac +++ b/configure.ac -@@ -2917,6 +2917,12 @@ AC_ARG_ENABLE(codecs-cjk, +@@ -2999,6 +2999,12 @@ AC_ARG_ENABLE(codecs-cjk, DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _codecs_kr _codecs_jp _codecs_cn _codecs_tw _codecs_hk _codecs_iso2022" fi])@@ -29,5 +29,5 @@ index 38b7515..f25733a 100644 AC_ARG_ENABLE(tk, AS_HELP_STRING([--disable-tk], [disable tk]), -- -2.6.4 +2.7.4package/python3/0026-Add-an-option-to-disable-unicodedata.patch +4
-4@@ -1,4 +1,4 @@ -From 64fa1fc3a9aea7ffba7b96d08a14df91051f2b6f Mon Sep 17 00:00:00 2001 +From 8f0bf1aac225c2a4465baeefc3e4538c27c497e7 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:50:27 +0100 Subject: [PATCH] Add an option to disable unicodedata@@ -9,10 +9,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac -index f25733a..a7ddb2b 100644 +index 98d1332..b1a1f39 100644 --- a/configure.ac +++ b/configure.ac -@@ -2923,6 +2923,12 @@ AC_ARG_ENABLE(nis, +@@ -3005,6 +3005,12 @@ AC_ARG_ENABLE(nis, DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} nis" fi])@@ -26,5 +26,5 @@ index f25733a..a7ddb2b 100644 AC_ARG_ENABLE(tk, AS_HELP_STRING([--disable-tk], [disable tk]), -- -2.6.4 +2.7.4package/python3/0027-Add-an-option-to-disable-IDLE.patch +10
-10@@ -1,4 +1,4 @@ -From 2766bcdd8f9b7395ce32a6d8480ef0a2186f2098 Mon Sep 17 00:00:00 2001 +From 6187913d2d84a8f0df85781e32a23eb053365134 Mon Sep 17 00:00:00 2001 From: Maxime Ripard <[email protected]> Date: Wed, 23 Dec 2015 11:50:42 +0100 Subject: [PATCH] Add an option to disable IDLE@@ -14,10 +14,10 @@ Signed-off-by: Maxime Ripard <[email protected]> 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/Makefile.pre.in b/Makefile.pre.in -index bdfee19..2466615 100644 +index fcb1ac4..0c26bcf 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -1132,7 +1132,9 @@ bininstall: altbininstall +@@ -1158,7 +1158,9 @@ bininstall: altbininstall -rm -f $(DESTDIR)$(LIBPC)/python3.pc (cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(VERSION).pc python3.pc) -rm -f $(DESTDIR)$(BINDIR)/idle3@@ -27,7 +27,7 @@ index bdfee19..2466615 100644 -rm -f $(DESTDIR)$(BINDIR)/pydoc3 ifeq (@PYDOC@,yes) (cd $(DESTDIR)$(BINDIR); $(LN) -s pydoc$(VERSION) pydoc3) -@@ -1179,7 +1181,6 @@ LIBSUBDIRS= \ +@@ -1205,7 +1207,6 @@ LIBSUBDIRS= \ html json http dbm xmlrpc \ logging csv wsgiref urllib \ ctypes ctypes/macholib \@@ -35,7 +35,7 @@ index bdfee19..2466615 100644 distutils distutils/command \ importlib \ turtledemo \ -@@ -1261,6 +1262,10 @@ ifeq (@EXPAT@,yes) +@@ -1287,6 +1288,10 @@ ifeq (@EXPAT@,yes) LIBSUBDIRS += $(XMLLIBSUBDIRS) endif@@ -47,10 +47,10 @@ index bdfee19..2466615 100644 LIBSUBDIRS += $(TESTSUBDIRS) endif diff --git a/configure.ac b/configure.ac -index a7ddb2b..6b59792 100644 +index b1a1f39..d1be997 100644 --- a/configure.ac +++ b/configure.ac -@@ -2965,6 +2965,12 @@ AC_ARG_ENABLE(lib2to3, +@@ -3047,6 +3047,12 @@ AC_ARG_ENABLE(lib2to3, AS_HELP_STRING([--disable-lib2to3], [disable lib2to3]), [ LIB2TO3="${enableval}" ], [ LIB2TO3=yes ])@@ -64,10 +64,10 @@ index a7ddb2b..6b59792 100644 AH_TEMPLATE(ENABLE_IPV6, [Define if --enable-ipv6 is specified]) AC_MSG_CHECKING([if --enable-ipv6 is specified]) diff --git a/setup.py b/setup.py -index ecddb6a..7fe68e8 100644 +index 53a471c..b443987 100644 --- a/setup.py +++ b/setup.py -@@ -2221,11 +2221,13 @@ def main(): +@@ -2254,11 +2254,13 @@ def main(): import warnings warnings.filterwarnings("ignore",category=DeprecationWarning)@@ -83,5 +83,5 @@ index ecddb6a..7fe68e8 100644 setup(# PyPI Metadata (PEP 301) name = "Python", -- -2.6.4 +2.7.4package/python3/0028-Add-an-option-to-disable-decimal.patch +6
-6@@ -1,4 +1,4 @@ -From ff77defc777a57d4caee5183796fd44dd265e78b Mon Sep 17 00:00:00 2001 +From 1c51f93b8244e3e3be4d125465255c5a056abe22 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:51:31 +0100 Subject: [PATCH] Add an option to disable decimal@@ -15,10 +15,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac -index 6b59792..51e1760 100644 +index d1be997..3d08ab0 100644 --- a/configure.ac +++ b/configure.ac -@@ -2624,13 +2624,20 @@ AC_SUBST(LIBFFI_INCLUDEDIR) +@@ -2706,13 +2706,20 @@ AC_SUBST(LIBFFI_INCLUDEDIR) AC_MSG_RESULT($with_system_ffi) # Check for use of the system libmpdec library@@ -45,10 +45,10 @@ index 6b59792..51e1760 100644 # Check for support for loadable sqlite extensions AC_MSG_CHECKING(for --enable-loadable-sqlite-extensions) diff --git a/setup.py b/setup.py -index 7fe68e8..364b350 100644 +index b443987..a1580a0 100644 --- a/setup.py +++ b/setup.py -@@ -1988,7 +1988,7 @@ class PyBuildExt(build_ext): +@@ -2021,7 +2021,7 @@ class PyBuildExt(build_ext): def _decimal_ext(self): extra_compile_args = [] undef_macros = []@@ -58,5 +58,5 @@ index 7fe68e8..364b350 100644 libraries = [':libmpdec.so.2'] sources = ['_decimal/_decimal.c'] -- -2.6.4 +2.7.4package/python3/0029-Add-an-option-to-disable-the-ossaudiodev-module.patch +4
-4@@ -1,4 +1,4 @@ -From 789b0f99d7c1d25bfa9c05fd12f4d55bb70f377b Mon Sep 17 00:00:00 2001 +From ed4bf13c66a3faa186781ca8ab2978a9bc8d5f39 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 11:51:58 +0100 Subject: [PATCH] Add an option to disable the ossaudiodev module@@ -9,10 +9,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac -index 51e1760..c4c2353 100644 +index 3d08ab0..4e2b88e 100644 --- a/configure.ac +++ b/configure.ac -@@ -2639,6 +2639,12 @@ else +@@ -2721,6 +2721,12 @@ else fi AC_SUBST(MPDEC)@@ -26,5 +26,5 @@ index 51e1760..c4c2353 100644 AC_MSG_CHECKING(for --enable-loadable-sqlite-extensions) AC_ARG_ENABLE(loadable-sqlite-extensions, -- -2.6.4 +2.7.4package/python3/0030-Support-PGEN_FOR_BUILD-and-FREEZE_IMPORTLIB_FOR_BUIL.patch +10
-10@@ -1,4 +1,4 @@ -From 4f851142b8f3149d23654117621285df34ec768b Mon Sep 17 00:00:00 2001 +From e151b6863bd8f697f17b50eda2cecef57e433c3e Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <[email protected]> Date: Wed, 23 Dec 2015 13:58:00 +0100 Subject: [PATCH] Support PGEN_FOR_BUILD and FREEZE_IMPORTLIB_FOR_BUILD@@ -10,10 +10,10 @@ Signed-off-by: Thomas Petazzoni <[email protected]> 2 files changed, 13 insertions(+) diff --git a/Makefile.pre.in b/Makefile.pre.in -index 2466615..fdf622d 100644 +index 0c26bcf..d1237eb 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -712,10 +712,15 @@ Programs/_testembed: Programs/_testembed.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY) +@@ -719,10 +719,15 @@ Programs/_testembed: Programs/_testembed.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY) ############################################################################ # Importlib@@ -28,10 +28,10 @@ index 2466615..fdf622d 100644 +endif Python/importlib_external.h: $(srcdir)/Lib/importlib/_bootstrap_external.py Programs/_freeze_importlib - ./Programs/_freeze_importlib \ -@@ -789,8 +794,13 @@ $(GRAMMAR_H): $(GRAMMAR_INPUT) $(PGEN) - $(GRAMMAR_C): $(GRAMMAR_H) - touch $(GRAMMAR_C) + if test "$(cross_compiling)" != "yes"; then \ +@@ -811,8 +816,13 @@ $(GRAMMAR_C): $(GRAMMAR_H) + mv $(GRAMMAR_C).tmp $(GRAMMAR_C); \ + fi +ifeq (@PGEN_FOR_BUILD@,) $(PGEN): $(PGENOBJS)@@ -44,10 +44,10 @@ index 2466615..fdf622d 100644 Parser/grammar.o: $(srcdir)/Parser/grammar.c \ $(srcdir)/Include/token.h \ diff --git a/configure.ac b/configure.ac -index c4c2353..750c232 100644 +index 4e2b88e..16a827c 100644 --- a/configure.ac +++ b/configure.ac -@@ -79,6 +79,9 @@ else +@@ -80,6 +80,9 @@ else fi AC_SUBST(PYTHON_FOR_BUILD)@@ -58,5 +58,5 @@ index c4c2353..750c232 100644 dnl it does, we get path names containing '//' which is both ugly and dnl can cause trouble. -- -2.6.4 +2.7.4package/python3/0031-Add-an-option-to-disable-openssl-support.patch renamed from package/python3/0031-Add-an-option-to-disable-openssl.patch +8
-2@@ -1,4 +1,6 @@ +From d903da1181cedb76d8191b33aea0519844f85b22 Mon Sep 17 00:00:00 2001 From: Nicolas Cavallari <[email protected]> +Date: Tue, 7 Mar 2017 23:25:12 +0100 Subject: [PATCH] Add an option to disable openssl support. Signed-off-by: Nicolas Cavallari <[email protected]>@@ -6,9 +8,11 @@ Signed-off-by: Nicolas Cavallari <[email protected]> configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) +diff --git a/configure.ac b/configure.ac +index 16a827c..65c0ce0 100644 --- a/configure.ac +++ b/configure.ac -@@ -3027,6 +3027,12 @@ +@@ -3027,6 +3027,12 @@ AC_ARG_ENABLE(unicodedata, DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} unicodedata" fi])@@ -21,3 +25,6 @@ Signed-off-by: Nicolas Cavallari <[email protected]> AC_SUBST(TK) AC_ARG_ENABLE(tk, AS_HELP_STRING([--disable-tk], [disable tk]), +-- +2.7.4 + --2.7.4
PATCH 5/6 python3: explicitly disable OpenSSL support for the target
In reply to Thomas PetazzoniCommit fa627738266e ("python3: do not use the system OpenSSL in the host variant") added a patch that allows to disable building the OpenSSL related modules in Python, even if OpenSSL is found.
But in this commit, it was only used to unconditionally disable OpenSSL support for the host python3.
This commit extends that to use the --disable-openssl option also for the target python3, when BR2_PACKAGE_PYTHON3_SSL. This ensures that if BR2_PACKAGE_PYTHON3_SSL is disabled, but BR2_PACKAGE_OPENSSL is enabled, we still don't get the OpenSSL modules built, as the user would expect.
--- package/python3/python3.mk | 2 ++ 1 file changed, 2 insertions(+)
package/python3/python3.mk +2 -0
@@ -90,6 +90,8 @@ endif ifeq ($(BR2_PACKAGE_PYTHON3_SSL),y) PYTHON3_DEPENDENCIES += openssl +else +PYTHON3_CONF_OPTS += --disable-openssl endif ifneq ($(BR2_PACKAGE_PYTHON3_CODECSCJK),y)
Signature · 1 line
2.7.4
PATCH 5/6 python3: explicitly disable OpenSSL support for the target
Quoted 7 lines · Thomas Petazzoni
Commit
fa627738266e("python3: do not use the system OpenSSL in the host variant") added a patch that allows to disable building the OpenSSL related modules in Python, even if OpenSSL is found.But in this commit, it was only used to unconditionally disable OpenSSL support for the host python3.
Quoted 6 lines
This commit extends that to use the --disable-openssl option also for the target python3, when
BR2_PACKAGE_PYTHON3_SSL. This ensures that ifBR2_PACKAGE_PYTHON3_SSLis disabled, butBR2_PACKAGE_OPENSSLis enabled, we still don't get the OpenSSL modules built, as the user would expect.Signed-off-by Thomas Petazzoni <[email protected]>
Quoted 20 lines
--- package/python3/python3.mk | 2 ++ 1 file changed, 2 insertions(+)package/python3/python3.mk +2
-1@@ -90,6 +90,8 @@ endif ifeq ($(BR2_PACKAGE_PYTHON3_SSL),y) PYTHON3_DEPENDENCIES += openssl +else +PYTHON3_CONF_OPTS += --disable-openssl endif ifneq ($(BR2_PACKAGE_PYTHON3_CODECSCJK),y) --2.7.4
PATCH 6/6 python3: make readline, gzip, bzip2 and xz really optional
In reply to Thomas PetazzoniThe BR2_PACKAGE_PYTHON3_{READLINE,ZLIB,BZIP2,XZ} options were so far only bringing in the necessary dependencies, relying on the Python build system to automatically detect them.
However, this means that even if one of those option was disabled, if their dependency was found, Python would build the corresponding module, which is really not what the user would expect.
For example, if you have:
BR2_PACKAGE_READLINE=y
# BR2_PACKAGE_PYTHON3_READLINE is not set
Then you would still get the readline Python module built and installed.
This commit fixes that by adding new --{enable,disable} options, and use them in python3.mk.
--- ...-an-option-to-disable-the-readline-module.patch | 30 ++++++++++++++++ ...ions-to-disable-zlib-bzip2-and-xz-modules.patch | 42 ++++++++++++++++++++++ package/python3/python3.mk | 8 +++++ 3 files changed, 80 insertions(+) create mode 100644 package/python3/0032-Add-an-option-to-disable-the-readline-module.patch create mode 100644 package/python3/0033-Add-options-to-disable-zlib-bzip2-and-xz-modules.patch
package/python3/0032-Add-an-option-to-disable-the-readline-module.patch new file +30 -0
@@ -0,0 +1,30 @@ +From c01d039d96909a6f4df6fff5f6e7ffe7e3f1e7b2 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 23:29:05 +0100 +Subject: [PATCH] Add an option to disable the readline module + +Signed-off-by: Thomas Petazzoni <[email protected]> +--- + configure.ac | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/configure.ac b/configure.ac +index 65c0ce0..c274e13 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -3033,6 +3033,12 @@ AC_ARG_ENABLE(openssl, + DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} ssl _ssl _hashlib" + fi]) + ++AC_ARG_ENABLE(readline, ++ AS_HELP_STRING([--disable-readline], [disable readline]), ++ [ if test "$enableval" = "no"; then ++ DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} readline" ++ fi]) ++ + AC_SUBST(TK) + AC_ARG_ENABLE(tk, + AS_HELP_STRING([--disable-tk], [disable tk]), +-- +2.7.4 +
package/python3/0033-Add-options-to-disable-zlib-bzip2-and-xz-modules.patch new file +42 -0
42 lines not on this page · raw message
package/python3/python3.mk +8 -0
@@ -56,6 +56,8 @@ PYTHON3_INSTALL_STAGING = YES ifeq ($(BR2_PACKAGE_PYTHON3_READLINE),y) PYTHON3_DEPENDENCIES += readline +else +PYTHON3_CONF_OPTS += --disable-readline endif ifeq ($(BR2_PACKAGE_PYTHON3_CURSES),y)
@@ -104,14 +106,20 @@ endif ifeq ($(BR2_PACKAGE_PYTHON3_BZIP2),y) PYTHON3_DEPENDENCIES += bzip2 +else +PYTHON3_CONF_OPTS += --disable-bzip2 endif ifeq ($(BR2_PACKAGE_PYTHON3_XZ),y) PYTHON3_DEPENDENCIES += xz +else +PYTHON3_CONF_OPTS += --disable-xz endif ifeq ($(BR2_PACKAGE_PYTHON3_ZLIB),y) PYTHON3_DEPENDENCIES += zlib +else +PYTHON3_CONF_OPTS += --disable-zlib endif ifeq ($(BR2_PACKAGE_PYTHON3_OSSAUDIODEV),y)
Signature · 1 line
2.7.4
PATCH 6/6 python3: make readline, gzip, bzip2 and xz really optional
Quoted 13 lines · Thomas Petazzoni
The BR2_PACKAGE_PYTHON3_{READLINE,ZLIB,BZIP2,XZ} options were so far only bringing in the necessary dependencies, relying on the Python build system to automatically detect them.
However, this means that even if one of those option was disabled, if their dependency was found, Python would build the corresponding module, which is really not what the user would expect.
For example, if you have:
BR2_PACKAGE_READLINE=y
#BR2_PACKAGE_PYTHON3_READLINEis not set
Quoted 6 lines
Then you would still get the readline Python module built and installed.
This commit fixes that by adding new --{enable,disable} options, and use them in python3.mk.
Signed-off-by Thomas Petazzoni <[email protected]>
Quoted 129 lines
--- ...-an-option-to-disable-the-readline-module.patch | 30 ++++++++++++++++ ...ions-to-disable-zlib-bzip2-and-xz-modules.patch | 42 ++++++++++++++++++++++ package/python3/python3.mk | 8 +++++ 3 files changed, 80 insertions(+) create mode 100644 package/python3/0032-Add-an-option-to-disable-the-readline-module.patch create mode 100644 package/python3/0033-Add-options-to-disable-zlib-bzip2-and-xz-modules.patchpackage/python3/0032-Add-an-option-to-disable-the-readline-module.patch new file +30
-0@@ -0,0 +1,30 @@ +From c01d039d96909a6f4df6fff5f6e7ffe7e3f1e7b2 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 23:29:05 +0100 +Subject: [PATCH] Add an option to disable the readline module + +Signed-off-by: Thomas Petazzoni <[email protected]> +--- + configure.ac | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/configure.ac b/configure.ac +index 65c0ce0..c274e13 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -3033,6 +3033,12 @@ AC_ARG_ENABLE(openssl, + DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} ssl _ssl _hashlib" + fi]) + ++AC_ARG_ENABLE(readline, ++ AS_HELP_STRING([--disable-readline], [disable readline]), ++ [ if test "$enableval" = "no"; then ++ DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} readline" ++ fi]) ++ + AC_SUBST(TK) + AC_ARG_ENABLE(tk, + AS_HELP_STRING([--disable-tk], [disable tk]), +-- +2.7.4 +package/python3/0033-Add-options-to-disable-zlib-bzip2-and-xz-modules.patch new file +42
-0@@ -0,0 +1,42 @@ +From 69a5a3b7a0307476772943da70162dfe716c674f Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Tue, 7 Mar 2017 23:31:11 +0100 +Subject: [PATCH] Add options to disable zlib, bzip2 and xz modules + +Signed-off-by: Thomas Petazzoni <[email protected]> +--- + configure.ac | 18 ++++++++++++++++++ + 1 file changed, 18 insertions(+) + +diff --git a/configure.ac b/configure.ac +index c274e13..fac9c57 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -3039,6 +3039,24 @@ AC_ARG_ENABLE(readline, + DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} readline" + fi]) + ++AC_ARG_ENABLE(bzip2, ++ AS_HELP_STRING([--disable-bzip2], [disable bzip2]), ++ [ if test "$enableval" = "no"; then ++ DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _bz2" ++ fi]) ++ ++AC_ARG_ENABLE(zlib, ++ AS_HELP_STRING([--disable-zlib], [disable zlib]), ++ [ if test "$enableval" = "no"; then ++ DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} zlib" ++ fi]) ++ ++AC_ARG_ENABLE(xz, ++ AS_HELP_STRING([--disable-xz], [disable xz]), ++ [ if test "$enableval" = "no"; then ++ DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _lzma" ++ fi]) ++ + AC_SUBST(TK) + AC_ARG_ENABLE(tk, + AS_HELP_STRING([--disable-tk], [disable tk]), +-- +2.7.4 +package/python3/python3.mk +8
-1@@ -56,6 +56,8 @@ PYTHON3_INSTALL_STAGING = YES ifeq ($(BR2_PACKAGE_PYTHON3_READLINE),y) PYTHON3_DEPENDENCIES += readline +else +PYTHON3_CONF_OPTS += --disable-readline endif ifeq ($(BR2_PACKAGE_PYTHON3_CURSES),y)@@ -104,14 +106,20 @@ endif ifeq ($(BR2_PACKAGE_PYTHON3_BZIP2),y) PYTHON3_DEPENDENCIES += bzip2 +else +PYTHON3_CONF_OPTS += --disable-bzip2 endif ifeq ($(BR2_PACKAGE_PYTHON3_XZ),y) PYTHON3_DEPENDENCIES += xz +else +PYTHON3_CONF_OPTS += --disable-xz endif ifeq ($(BR2_PACKAGE_PYTHON3_ZLIB),y) PYTHON3_DEPENDENCIES += zlib +else +PYTHON3_CONF_OPTS += --disable-zlib endif ifeq ($(BR2_PACKAGE_PYTHON3_OSSAUDIODEV),y) --2.7.4
cover python(3): fix optional modules
In reply to Thomas PetazzoniHello,
Quoted 7 lines · Thomas Petazzoni
Thomas Petazzoni (6):
python: move to Git formatted patches
python: make hashlib and readline modules really optional
python: fix disabling the SSL module
python3: refresh Git formatted patches
python3: explicitly disable OpenSSL support for the target
python3: make readline, gzip, bzip2 and xz really optional
All applied. Many thanks to Yegor for having looked at the patches!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com