summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorsimonb <simonb@pkgsrc.org>2002-03-23 14:08:12 +0000
committersimonb <simonb@pkgsrc.org>2002-03-23 14:08:12 +0000
commit9cbe9539bbda5540015a00abd0ca10d9a39e6da2 (patch)
tree61be8b821d9492e424fbf70d5868c74ec845d2cc /print
parent35c71d336b9a0ea88a106f56b644fba277451232 (diff)
downloadpkgsrc-9cbe9539bbda5540015a00abd0ca10d9a39e6da2.tar.gz
Work around divide-by-zero core dumps on alpha.
Problem report and patch sent to the xpdf author.
Diffstat (limited to 'print')
-rw-r--r--print/xpdf/distinfo3
-rw-r--r--print/xpdf/patches/patch-ab19
2 files changed, 21 insertions, 1 deletions
diff --git a/print/xpdf/distinfo b/print/xpdf/distinfo
index 34d44c90438..1f5b831fdb0 100644
--- a/print/xpdf/distinfo
+++ b/print/xpdf/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.3 2002/02/03 05:28:51 mjl Exp $
+$NetBSD: distinfo,v 1.4 2002/03/23 14:08:12 simonb Exp $
SHA1 (xpdf-1.00.tar.gz) = 01aae7c29a916b809bc5fc29f279b97cf4b56169
Size (xpdf-1.00.tar.gz) = 397750 bytes
SHA1 (patch-aa) = 2b1a36ce71afb4c7ad2a84ac70f46fe5ffea3687
+SHA1 (patch-ab) = e8579824f1eb5517945dadf15ddf17142a075fc7
diff --git a/print/xpdf/patches/patch-ab b/print/xpdf/patches/patch-ab
new file mode 100644
index 00000000000..52f448a26d5
--- /dev/null
+++ b/print/xpdf/patches/patch-ab
@@ -0,0 +1,19 @@
+$NetBSD: patch-ab,v 1.1 2002/03/23 14:08:12 simonb Exp $
+
+--- xpdf/TextOutputDev.cc.orig Sat Feb 2 10:15:45 2002
++++ xpdf/TextOutputDev.cc
+@@ -154,8 +154,12 @@
+ dx -= dx2;
+ dy -= dy2;
+ state->transformDelta(dx, dy, &w1, &h1);
+- w1 /= uLen;
+- h1 /= uLen;
++ if (uLen == 0) {
++ w1 = h1 = 0.;
++ } else {
++ w1 /= uLen;
++ h1 /= uLen;
++ }
+ for (i = 0; i < uLen; ++i) {
+ curStr->addChar(state, x1 + i*w1, y1 + i*h1, w1, h1, u[i]);
+ }