[psurface] 01/04: Fix build failure with GCC 6.
Ansgar Burchardt
ansgar at moszumanska.debian.org
Mon Jul 18 10:13:32 UTC 2016
This is an automated email from the git hooks/post-receive script.
ansgar pushed a commit to tag debian/2.0.0-2
in repository psurface.
commit 01188c064d6f6ae69b41f22945525ae05ba0fd2a
Author: Ansgar Burchardt <ansgar at debian.org>
Date: Mon Jul 18 12:04:51 2016 +0200
Fix build failure with GCC 6.
---
debian/patches/build-failure-with-gcc-6.patch | 26 ++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 27 insertions(+)
diff --git a/debian/patches/build-failure-with-gcc-6.patch b/debian/patches/build-failure-with-gcc-6.patch
new file mode 100644
index 0000000..fecf6b2
--- /dev/null
+++ b/debian/patches/build-failure-with-gcc-6.patch
@@ -0,0 +1,26 @@
+From: Ansgar Burchardt <ansgar at debian.org>
+Date: Mon, 18 Jul 2016 12:03:45 +0200
+Subject: Fix build failure with gcc-6
+
+Bug-Debian: https://bugs.debian.org/831159
+
+--- a/NormalProjector.cpp
++++ b/NormalProjector.cpp
+@@ -1331,6 +1331,8 @@
+
+ // computation of the other components is unstable
+ for (int j=0;j<3; j++) {
++ using std::isinf;
++ using std::isnan;
+
+ r[1] = c[j]/d[j];
+
+@@ -1479,6 +1481,8 @@
+ StaticVector<ctype,3> c =(p0q0+eta*n0).cross(q10);
+ StaticVector<ctype,3> d =q10.cross(p10+eta*n10);
+ for (int j=0;j<3; j++) {
++ using std::isinf;
++ using std::isnan;
+
+ r[0] = c[j]/d[j];
+ if (isnan(r[0]) || isinf(r[0]))
diff --git a/debian/patches/series b/debian/patches/series
index 43928a1..4dd8038 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
hdf5.patch
+build-failure-with-gcc-6.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/psurface.git
More information about the debian-science-commits
mailing list