[numexpr] 01/02: Fix build failure on ppc64el and powerpc

Antonio Valentino a_valentino-guest at moszumanska.debian.org
Sat Nov 26 16:18:23 UTC 2016


This is an automated email from the git hooks/post-receive script.

a_valentino-guest pushed a commit to branch master
in repository numexpr.

commit 5c1edd14c6cf8f1258514faca2010380be75bb37
Author: Antonio Valentino <antonio.valentino at tiscali.it>
Date:   Sat Nov 26 16:08:19 2016 +0000

    Fix build failure on ppc64el and powerpc
---
 debian/changelog                                   |  8 ++++++++
 .../0001-fix-test-on-powerpc-and-ppc64el.patch     | 24 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 3 files changed, 33 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 699f449..50d45d2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+numexpr (2.6.1-2) UNRELEASED; urgency=high
+
+  * debian/patches
+    - new patch to fix test failures on ppc64el and powerpc
+      See also upstream bug #224 (https://github.com/pydata/numexpr/issues/224)
+
+ -- Antonio Valentino <antonio.valentino at tiscali.it>  Sat, 26 Nov 2016 16:06:19 +0000
+
 numexpr (2.6.1-1) unstable; urgency=medium
 
   * New upstream release
diff --git a/debian/patches/0001-fix-test-on-powerpc-and-ppc64el.patch b/debian/patches/0001-fix-test-on-powerpc-and-ppc64el.patch
new file mode 100644
index 0000000..6c830b0
--- /dev/null
+++ b/debian/patches/0001-fix-test-on-powerpc-and-ppc64el.patch
@@ -0,0 +1,24 @@
+From: Antonio Valentino <antonio.valentino at tiscali.it>
+Date: Sat, 26 Nov 2016 16:02:27 +0000
+Subject: fix test on powerpc and ppc64el
+
+See also upstream bug #224 [1]
+
+[1] https://github.com/pydata/numexpr/issues/224
+---
+ numexpr/interp_body.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/numexpr/interp_body.cpp b/numexpr/interp_body.cpp
+index 475a89f..a8c2911 100644
+--- a/numexpr/interp_body.cpp
++++ b/numexpr/interp_body.cpp
+@@ -271,7 +271,7 @@
+         case OP_SUB_LLL: VEC_ARG2(l_dest = l1 - l2);
+         case OP_MUL_LLL: VEC_ARG2(l_dest = l1 * l2);
+         case OP_DIV_LLL: VEC_ARG2(l_dest = l2 ? (l1 / l2) : 0);
+-        case OP_POW_LLL: VEC_ARG2(l_dest = (l2 < 0) ? (1 / l1) : (long long)pow((long double)l1, (long double)l2));
++        case OP_POW_LLL: VEC_ARG2(l_dest = (l2 < 0) ? (1 / l1) : (long long)round(pow((long double)l1, (long double)l2)));
+         case OP_MOD_LLL: VEC_ARG2(l_dest = l2 ? (l1 % l2) : 0);
+         case OP_LSHIFT_LLL: VEC_ARG2(l_dest = l1 << l2);
+         case OP_RSHIFT_LLL: VEC_ARG2(l_dest = l1 >> l2);
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..70f3d60
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-fix-test-on-powerpc-and-ppc64el.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/numexpr.git



More information about the debian-science-commits mailing list