From 7fb90aa5b340b4a910ec8dd0f84ac8a630cf7ffa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Mon, 9 Jul 2018 16:14:19 +0000 Subject: vars/build.vars:python3{,_host}:${PKG_CONFIGURE_ARGS{,_EXTRA}: build w/ --with-system-expat --with-system-ffi. vars/python3{,_host}.vars:pkg_configure_pre(): remove in-tree Modules/zlib/ (via Redfoxmoon.) --- vars/build.vars | 4 ++-- vars/python3.vars | 1 + vars/python3_host.vars | 4 ++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/vars/build.vars b/vars/build.vars index caa232aa..7e2300a3 100644 --- a/vars/build.vars +++ b/vars/build.vars @@ -380,7 +380,7 @@ HOST_PACKAGES_DEPS_PREFIX="${PREFIX}"; : ${PKG_PYTHON3_HOST_SHA256SUM:=687e067d9f391da645423c7eda8205bae9d35edc0c76ef5218dcbe4cc770d0d7}; : ${PKG_PYTHON3_HOST_VERSION:=3.5.1}; : ${PKG_PYTHON3_HOST_URL:=https://www.python.org/ftp/python/${PKG_PYTHON3_HOST_VERSION}/Python-${PKG_PYTHON3_HOST_VERSION}.tgz}; -: ${PKG_PYTHON3_HOST_CONFIGURE_ARGS_EXTRA:="--enable-ipv6 --enable-shared --without-ensurepip --with-system-expat"}; +: ${PKG_PYTHON3_HOST_CONFIGURE_ARGS_EXTRA:="--enable-ipv6 --enable-shared --with-system-expat --with-system-ffi --without-ensurepip"}; : ${PKG_PYTHON3_HOST_SUBDIR:=Python-${PKG_PYTHON3_HOST_VERSION}}; : ${PKG_RUBY_HOST_SHA256SUM:=ba5ba60e5f1aa21b4ef8e9bf35b9ddb57286cb546aac4b5a28c71f459467e507}; : ${PKG_RUBY_HOST_VERSION:=2.3.0}; @@ -1061,7 +1061,7 @@ patch patchutils perl python2 python3 ruby smallbasic tcl"; : ${PKG_PYTHON3_SHA256SUM:=687e067d9f391da645423c7eda8205bae9d35edc0c76ef5218dcbe4cc770d0d7}; : ${PKG_PYTHON3_VERSION:=3.5.1}; : ${PKG_PYTHON3_URL:=https://www.python.org/ftp/python/${PKG_PYTHON3_VERSION}/Python-${PKG_PYTHON3_VERSION}.tgz}; -: ${PKG_PYTHON3_CONFIGURE_ARGS:="--build=x86_64 -C --enable-ipv6 --enable-shared --host=${DEFAULT_TARGET} --prefix=${PREFIX_NATIVE} --without-ensurepip"}; +: ${PKG_PYTHON3_CONFIGURE_ARGS:="--build=x86_64 -C --enable-ipv6 --enable-shared --host=${DEFAULT_TARGET} --prefix=${PREFIX_NATIVE} --with-system-expat --with-system-ffi --without-ensurepip"}; : ${PKG_PYTHON3_ENV_VARS_EXTRA:="BLDSHARED=${DEFAULT_TARGET}-gcc -shared -mout-dsolib --sysroot=${PREFIX_NATIVE}:CC=${DEFAULT_TARGET}-gcc:CFLAGS=--sysroot=${PREFIX_NATIVE}:CPPFLAGS=--sysroot=${PREFIX_NATIVE}:LDFLAGS=-L${PREFIX_NATIVE}/lib"}: : ${PKG_PYTHON3_INSTALL_FILES:="@python3=bin/python"}; : ${PKG_PYTHON3_SUBDIR:=Python-${PKG_PYTHON3_VERSION}}; diff --git a/vars/python3.vars b/vars/python3.vars index b193fa5e..3c3fb58f 100644 --- a/vars/python3.vars +++ b/vars/python3.vars @@ -12,6 +12,7 @@ pkg_python3_configure_pre() { PGEN=Parser/hostpgen Parser/hostpgen; make distclean); ex_rtl_fileop mv "../${PKG_SUBDIR}/config.cache" .; + ex_rtl_fileop rm "../${PKG_SUBDIR}/Modules/zlib"; }; # vim:filetype=sh diff --git a/vars/python3_host.vars b/vars/python3_host.vars index 8f4817c2..51705fbe 100644 --- a/vars/python3_host.vars +++ b/vars/python3_host.vars @@ -2,6 +2,10 @@ # set -o errexit -o noglob are assumed. # +pkg_python3_host_configure_pre() { + ex_rtl_fileop rm "${PKG_SUBDIR}/Modules/zlib"; +}; + pkg_python3_host_install_make_post() { if ex_rtl_fileop test "${PKG_DESTDIR}/bin/python3"; then ex_rtl_fileop rm "${PKG_DESTDIR}/bin/python3"; -- cgit v1.2.3