From 6945bd1ee236d63c1025e8965e904d47389f52b9 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Wed, 18 May 2016 18:49:44 -0400 Subject: [PATCH] python: float=hard -> float=softfp for arm --- packages/python/build.sh | 2 +- packages/python/mathmodule.c.patch | 47 ------------------------------ 2 files changed, 1 insertion(+), 48 deletions(-) delete mode 100644 packages/python/mathmodule.c.patch diff --git a/packages/python/build.sh b/packages/python/build.sh index 583fbebd4..f03778672 100644 --- a/packages/python/build.sh +++ b/packages/python/build.sh @@ -9,7 +9,7 @@ TERMUX_PKG_HOSTBUILD=true _MAJOR_VERSION=3.5 TERMUX_PKG_VERSION=${_MAJOR_VERSION}.1 -TERMUX_PKG_BUILD_REVISION=4 +TERMUX_PKG_BUILD_REVISION=5 TERMUX_PKG_SRCURL=http://www.python.org/ftp/python/${TERMUX_PKG_VERSION}/Python-${TERMUX_PKG_VERSION}.tar.xz # The flag --with(out)-pymalloc (disable/enable specialized mallocs) is enabled by default and causes m suffix versions of python. diff --git a/packages/python/mathmodule.c.patch b/packages/python/mathmodule.c.patch deleted file mode 100644 index 7f611409b..000000000 --- a/packages/python/mathmodule.c.patch +++ /dev/null @@ -1,47 +0,0 @@ -The math module uses function pointers to math functions, which breaks -using the system libm on ARM since we compile with -mhard-float. - -diff -u -r ../Python-3.4.3/Modules/mathmodule.c ./Modules/mathmodule.c ---- ../Python-3.4.3/Modules/mathmodule.c 2015-02-25 06:27:46.000000000 -0500 -+++ ./Modules/mathmodule.c 2015-04-29 16:50:52.895371496 -0400 -@@ -727,7 +727,7 @@ - */ - - static PyObject * --math_1_to_whatever(PyObject *arg, double (*func) (double), -+math_1_to_whatever(PyObject *arg, __NDK_FPABI_MATH__ double (*func) (double), - PyObject *(*from_double_func) (double), - int can_overflow) - { -@@ -765,7 +765,7 @@ - errno = ERANGE for overflow). */ - - static PyObject * --math_1a(PyObject *arg, double (*func) (double)) -+math_1a(PyObject *arg, __NDK_FPABI_MATH__ double (*func) (double)) - { - double x, r; - x = PyFloat_AsDouble(arg); -@@ -808,19 +808,19 @@ - */ - - static PyObject * --math_1(PyObject *arg, double (*func) (double), int can_overflow) -+math_1(PyObject *arg, __NDK_FPABI_MATH__ double (*func) (double), int can_overflow) - { - return math_1_to_whatever(arg, func, PyFloat_FromDouble, can_overflow); - } - - static PyObject * --math_1_to_int(PyObject *arg, double (*func) (double), int can_overflow) -+math_1_to_int(PyObject *arg, __NDK_FPABI_MATH__ double (*func) (double), int can_overflow) - { - return math_1_to_whatever(arg, func, PyLong_FromDouble, can_overflow); - } - - static PyObject * --math_2(PyObject *args, double (*func) (double, double), char *funcname) -+math_2(PyObject *args, __NDK_FPABI_MATH__ double (*func) (double, double), char *funcname) - { - PyObject *ox, *oy; - double x, y, r;