[pynac] 01/01: Apply static-python-fix.patch from sagemath.
Tobias Hansen
thansen at moszumanska.debian.org
Sun Jun 18 14:49:03 UTC 2017
This is an automated email from the git hooks/post-receive script.
thansen pushed a commit to branch master
in repository pynac.
commit ec94737830a1d230145dbfcb3980a918a9c3ca89
Author: Tobias Hansen <thansen at debian.org>
Date: Sun Jun 18 15:48:35 2017 +0100
Apply static-python-fix.patch from sagemath.
---
debian/changelog | 8 ++++++++
debian/patches/series | 1 +
debian/patches/static-python-fix.patch | 21 +++++++++++++++++++++
3 files changed, 30 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index e27f8fd..5aa5d95 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+pynac (0.7.8-2) UNRELEASED; urgency=medium
+
+ * Team upload.
+ * Apply static-python-fix.patch, fixing a segfault after the docbuild
+ od sagemath.
+
+ -- Tobias Hansen <thansen at debian.org> Sun, 18 Jun 2017 15:47:28 +0100
+
pynac (0.7.8-1) experimental; urgency=medium
* Updated to latest upstream.
diff --git a/debian/patches/series b/debian/patches/series
index 89d54fa..d4c0931 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
find_singular.patch
+static-python-fix.patch
diff --git a/debian/patches/static-python-fix.patch b/debian/patches/static-python-fix.patch
new file mode 100644
index 0000000..f10902b
--- /dev/null
+++ b/debian/patches/static-python-fix.patch
@@ -0,0 +1,21 @@
+Description: This fixes a segfault occurring after the docbuild of sagemath.
+Author: Ralf Stephan <ralf at ark.in-berlin.de>
+Origin: https://trac.sagemath.org/ticket/23134
+
+--- a/ginac/numeric.cpp
++++ b/ginac/numeric.cpp
+@@ -1500,8 +1500,12 @@
+ return c;
+ else if (d.is_minus_one()
+ and expo.denom().is_equal(*_num2_p)) {
+- static numeric a[] = { *_num1_p, I, *_num_1_p, -I };
+- return a[expo.numer().to_long() % 4] * c;
++ switch (expo.numer().to_long() % 4) {
++ case 0: return c;
++ case 1: return I*c;
++ case 2: return -c;
++ case 3: return -I*c;
++ };
+ }
+ else if (not c_unit)
+ return d.power(expo) * c;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pynac.git
More information about the debian-science-commits
mailing list