[sagemath] 02/02: Apply patch to fix 3 doctests with wrong brial hashes.
Tobias Hansen
thansen at moszumanska.debian.org
Tue Nov 15 00:27:39 UTC 2016
This is an automated email from the git hooks/post-receive script.
thansen pushed a commit to branch master
in repository sagemath.
commit 66885fb2ad5fb71e071cdc18513789c855d4bb25
Author: Tobias Hansen <thansen at broeselmaschine.fc.up.pt>
Date: Tue Nov 15 00:27:02 2016 +0000
Apply patch to fix 3 doctests with wrong brial hashes.
---
.../patches/fixsage-pbori-boost1.62-hashes.patch | 41 ++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 42 insertions(+)
diff --git a/debian/patches/fixsage-pbori-boost1.62-hashes.patch b/debian/patches/fixsage-pbori-boost1.62-hashes.patch
new file mode 100644
index 0000000..d9635e6
--- /dev/null
+++ b/debian/patches/fixsage-pbori-boost1.62-hashes.patch
@@ -0,0 +1,41 @@
+Description: Change expected brial hashes for change in hash_combine in boost 1.62
+ The hash function for boost::hash_combine() which is called in
+ libbrial/include/polybori/routines/pbori_routines_hash.h was changed for
+ boost 1.62 in the commit
+ https://github.com/boostorg/functional/commit/45eeb170f2b1372b4b5e52744d3c51eddb285b42
+ .
+ Therefore the hashes changed. For the same reason brial in Debian has the patch
+ testsuite-boost-1.62.patch.
+ .
+ TODO: Also change the expected values for 32-bit.
+Author: Tobias Hansen <thansen at debian.org>
+
+--- a/sage/src/sage/rings/polynomial/pbori.pyx
++++ b/sage/src/sage/rings/polynomial/pbori.pyx
+@@ -2340,7 +2340,7 @@
+ sage: m = x.lm()
+ sage: m.stable_hash()
+ -845955105 # 32-bit
+- 173100285919 # 64-bit
++ -3935177168673893893 # 64-bit
+
+ .. note::
+
+@@ -4648,7 +4648,7 @@
+ sage: B.<x,y> = BooleanPolynomialRing()
+ sage: x.stable_hash()
+ -845955105 # 32-bit
+- 173100285919 # 64-bit
++ -3935177168673893893 # 64-bit
+
+ .. note::
+
+@@ -5732,7 +5732,7 @@
+ sage: s = x.set()
+ sage: s.stable_hash()
+ -845955105 # 32-bit
+- 173100285919 # 64-bit
++ -3935177168673893893 # 64-bit
+
+ .. note::
+
diff --git a/debian/patches/series b/debian/patches/series
index 7da6c7c..652ddd8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -16,6 +16,7 @@ fixsage-allow-override-sage-local.patch
# due to us using a different version of a dependency than what Sage uses
# we'll probably drop these when importing the next version of Sage
+fixsage-pbori-boost1.62-hashes.patch
version-python-2.7.11.patch
version-ecm-7.patch
version-singular-4.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagemath.git
More information about the debian-science-commits
mailing list