[asymptote] 01/01: fix ftbfs on mips with upstream git change (Closes: #808821)
This is an automated email from the git hooks/post-receive script.
preining pushed a commit to branch master
in repository asymptote.
commit 74f0061d45befde0aae071bd6f57f4e57162abe3
Author: Norbert Preining <norbert@preining.info>
Date: Wed Jan 27 19:37:35 2016 +0900
fix ftbfs on mips with upstream git change (Closes: #808821)
---
debian/changelog | 6 ++++++
debian/patches/series | 1 +
debian/patches/upstream-fix-mips-build-failure | 30 ++++++++++++++++++++++++++
3 files changed, 37 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 9ab2121..14d49d3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+asymptote (2.35-4) unstable; urgency=medium
+
+ * fix ftbfs on mips with upstream git change (Closes: #808821)
+
+ -- Norbert Preining <preining@debian.org> Wed, 27 Jan 2016 19:37:13 +0900
+
asymptote (2.35-3) unstable; urgency=medium
* switch to libgsl-dev for build-deps
diff --git a/debian/patches/series b/debian/patches/series
index f959a4d..48dcafe 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@
fix-docstring-backslash
#old-gs-use-epswrite
upstream-gsl2
+upstream-fix-mips-build-failure
diff --git a/debian/patches/upstream-fix-mips-build-failure b/debian/patches/upstream-fix-mips-build-failure
new file mode 100644
index 0000000..ae1202f
--- /dev/null
+++ b/debian/patches/upstream-fix-mips-build-failure
@@ -0,0 +1,30 @@
+fix ftbfs on mips with upstream git change (Closes: #808821)
+---
+ pair.h | 3 ++-
+ triple.h | 3 ++-
+ 2 files changed, 4 insertions(+), 2 deletions(-)
+
+--- asymptote.orig/pair.h
++++ asymptote/pair.h
+@@ -145,7 +145,8 @@
+ friend pair unit(const pair& z)
+ {
+ double scale=z.length();
+- if(scale != 0.0) scale=1.0/scale;
++ if(scale == 0.0) return z;
++ scale=1.0/scale;
+ return pair(z.x*scale,z.y*scale);
+ }
+
+--- asymptote.orig/triple.h
++++ asymptote/triple.h
+@@ -251,7 +251,8 @@
+ friend triple unit(const triple& v)
+ {
+ double scale=v.length();
+- if(scale != 0.0) scale=1.0/scale;
++ if(scale == 0.0) return v;
++ scale=1.0/scale;
+ return triple(v.x*scale,v.y*scale,v.z*scale);
+ }
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-tex/asymptote.git
Reply to: