diff --git a/packages/python/build.sh b/packages/python/build.sh index 02e12f6e8b1f14..0b6c8e51ff4341 100644 --- a/packages/python/build.sh +++ b/packages/python/build.sh @@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Python 3 programming language intended to enable clear p TERMUX_PKG_DEPENDS="libandroid-support, ncurses, readline, libffi, openssl, libutil, libbz2, libsqlite, gdbm, ncurses-ui-libs, libcrypt, liblzma" _MAJOR_VERSION=3.6 TERMUX_PKG_VERSION=${_MAJOR_VERSION}.5 +TERMUX_PKG_REVISION=1 TERMUX_PKG_SHA256=f434053ba1b5c8a5cc597e966ead3c5143012af827fd3f0697d21450bb8d87a6 TERMUX_PKG_SRCURL=https://www.python.org/ftp/python/${TERMUX_PKG_VERSION}/Python-${TERMUX_PKG_VERSION}.tar.xz @@ -24,6 +25,8 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_posix_semaphores_enabled=no" # Do not assume getaddrinfo is buggy when cross compiling: TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_buggy_getaddrinfo=no" TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --enable-loadable-sqlite-extensions" +# Fix https://github.com/termux/termux-packages/issues/2236: +TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_little_endian_double=yes" TERMUX_PKG_RM_AFTER_INSTALL=" bin/python${_MAJOR_VERSION}m bin/idle* lib/python${_MAJOR_VERSION}/idlelib diff --git a/packages/python2/build.sh b/packages/python2/build.sh index 5c2c9b27710cdb..40ee238cab1277 100644 --- a/packages/python2/build.sh +++ b/packages/python2/build.sh @@ -9,7 +9,7 @@ TERMUX_PKG_HOSTBUILD=true _MAJOR_VERSION=2.7 TERMUX_PKG_VERSION=${_MAJOR_VERSION}.14 -TERMUX_PKG_REVISION=2 +TERMUX_PKG_REVISION=3 TERMUX_PKG_SRCURL=https://www.python.org/ftp/python/${TERMUX_PKG_VERSION}/Python-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_SHA256=71ffb26e09e78650e424929b2b457b9c912ac216576e6bd9e7d204ed03296a66 @@ -25,6 +25,8 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_func_faccessat=no" TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_func_gethostbyname_r=no" # Do not assume getaddrinfo is buggy when cross compiling: TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_buggy_getaddrinfo=no" +# Fix https://github.com/termux/termux-packages/issues/2236: +TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_little_endian_double=yes" TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --build=$TERMUX_BUILD_TUPLE --with-system-ffi --without-ensurepip" TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --enable-unicode=ucs4"