[dune-common] 01/02: patch: quotient must be representable without error

Ansgar Burchardt ansgar at moszumanska.debian.org
Tue Nov 14 07:07:16 UTC 2017


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

ansgar pushed a commit to annotated tag debian/2.6_20171113-2
in repository dune-common.

commit b839b4e6725ae057941d71a9c45c5861f2bd902f
Author: Ansgar Burchardt <ansgar at debian.org>
Date:   Tue Nov 14 08:00:32 2017 +0100

    patch: quotient must be representable without error
    
    This should correct the build failure on i386.
---
 ...tient-must-be-representable-without-error.patch | 28 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 29 insertions(+)

diff --git a/debian/patches/0001-quotient-must-be-representable-without-error.patch b/debian/patches/0001-quotient-must-be-representable-without-error.patch
new file mode 100644
index 0000000..32d60f8
--- /dev/null
+++ b/debian/patches/0001-quotient-must-be-representable-without-error.patch
@@ -0,0 +1,28 @@
+From 7c32abc10b33191164b00b08588878ed5d0f6712 Mon Sep 17 00:00:00 2001
+From: Ansgar Burchardt <Ansgar.Burchardt at tu-dresden.de>
+Date: Tue, 14 Nov 2017 07:43:55 +0100
+Subject: [PATCH] quotient must be representable without error
+
+The quotient must be representable exactly for the division test to
+work on i386 as `1./3. == 1./3.` can be false when using the FPU due
+to store/load cycles.
+---
+ dune/common/test/arithmetictestsuite.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/dune/common/test/arithmetictestsuite.hh b/dune/common/test/arithmetictestsuite.hh
+index 89123fd8..b62a8430 100644
+--- a/dune/common/test/arithmetictestsuite.hh
++++ b/dune/common/test/arithmetictestsuite.hh
+@@ -671,7 +671,7 @@ namespace Dune {
+     void checkAssign##name(Tag) {}
+ 
+     DUNE_TEST_ASSIGN(*,      Mul,    Arithmetic, (0, 1, 2, 3), (0, 1, 2, 3))
+-    DUNE_TEST_ASSIGN(/,      Div,    Arithmetic, (0, 1, 2, 3), (   1, 2, 3))
++    DUNE_TEST_ASSIGN(/,      Div,    Arithmetic, (0, 1, 2, 3), (   1, 2, 4))
+     DUNE_TEST_ASSIGN(%,      Rem,    Arithmetic, (0, 1, 2, 3), (   1, 2, 3))
+     DUNE_TEST_ASSIGN_DISABLE(Rem,    Floating)
+ 
+-- 
+2.15.0
+
diff --git a/debian/patches/series b/debian/patches/series
index c1e38b1..d2ee7ec 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 soname.patch
 skip-dirs-starting-with-dot.patch
 rename-git-whitespace-hook.patch
+0001-quotient-must-be-representable-without-error.patch

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



More information about the debian-science-commits mailing list