From e604e2006de9c53e6a82f0f4f6d99c50ee2d4b2a Mon Sep 17 00:00:00 2001 From: its-pointless Date: Tue, 3 Apr 2018 09:15:00 +1000 Subject: [PATCH 1/2] fixing rounding --- packages/python/pyconf.h.in.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 packages/python/pyconf.h.in.patch diff --git a/packages/python/pyconf.h.in.patch b/packages/python/pyconf.h.in.patch new file mode 100644 index 000000000000000..7cef17528221827 --- /dev/null +++ b/packages/python/pyconf.h.in.patch @@ -0,0 +1,11 @@ +--- ../cache/Python-3.6.5/pyconfig.h.in 2018-03-28 09:19:31.000000000 +0000 ++++ ./pyconfig.h.in 2018-04-02 23:09:11.381919940 +0000 +@@ -25,7 +25,7 @@ + + /* Define if C doubles are 64-bit IEEE 754 binary format, stored with the + least significant byte first */ +-#undef DOUBLE_IS_LITTLE_ENDIAN_IEEE754 ++#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 + + /* Define if --enable-ipv6 is specified */ + #undef ENABLE_IPV6 From c095e882ffb0ededf10b5ff3bd4171cd84ae9d42 Mon Sep 17 00:00:00 2001 From: its-pointless Date: Tue, 3 Apr 2018 15:53:52 +1000 Subject: [PATCH 2/2] Less confusing patch --- packages/python/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/python/build.sh b/packages/python/build.sh index 02e12f6e8b1f144..e1669060cb728bc 100644 --- a/packages/python/build.sh +++ b/packages/python/build.sh @@ -15,7 +15,7 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_func_ftime=no" # Avoid trying to use AT_EACCESS which is not defined: TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_func_faccessat=no" # The gethostbyname_r function does not exist on device libc: -TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_func_gethostbyname_r=no" +TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_func_gethostbyname_r=no" TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --build=$TERMUX_BUILD_TUPLE --with-system-ffi --without-ensurepip" # Hard links does not work on Android 6: TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_func_linkat=no" @@ -24,6 +24,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" +# Match same behavior as compiled with gcc +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