summaryrefslogtreecommitdiff
path: root/fonts
diff options
context:
space:
mode:
authorsimonb <simonb>2004-04-19 04:14:35 +0000
committersimonb <simonb>2004-04-19 04:14:35 +0000
commit78c4d559f935e01952f561c34b41742e86443776 (patch)
tree26b689adf8bf28b7fd811ba719fa49c146cc7bf9 /fonts
parent468d098fdda09cd1a2a5a69a7844b0c822704d13 (diff)
downloadpkgsrc-78c4d559f935e01952f561c34b41742e86443776.tar.gz
Add a hack so that T1_InitLib() doesn't run more than once.
Don't know if this is correct or not, but at least now xpdf works again.
Diffstat (limited to 'fonts')
-rw-r--r--fonts/t1lib/distinfo3
-rw-r--r--fonts/t1lib/patches/patch-ab17
2 files changed, 19 insertions, 1 deletions
diff --git a/fonts/t1lib/distinfo b/fonts/t1lib/distinfo
index ed2e93f67c4..b2de1e1ecb6 100644
--- a/fonts/t1lib/distinfo
+++ b/fonts/t1lib/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.4 2004/04/15 14:14:34 minskim Exp $
+$NetBSD: distinfo,v 1.5 2004/04/19 04:14:35 simonb Exp $
SHA1 (t1lib-5.0.2.tar.gz) = 71a6ec6c84a2e28a21f261be865e0dabe52daeb5
Size (t1lib-5.0.2.tar.gz) = 1697086 bytes
SHA1 (patch-aa) = 1a09e0f8c3b35987a963bd73b2d18722c0a67fba
+SHA1 (patch-ab) = 808dfa0b4cb8289078e3eb7d44428e6c2e57bc5e
SHA1 (patch-ac) = aae10307ac7da8f095e7b294273503b5900e52aa
diff --git a/fonts/t1lib/patches/patch-ab b/fonts/t1lib/patches/patch-ab
new file mode 100644
index 00000000000..60190a5ab8b
--- /dev/null
+++ b/fonts/t1lib/patches/patch-ab
@@ -0,0 +1,17 @@
+$NetBSD: patch-ab,v 1.1 2004/04/19 04:14:35 simonb Exp $
+
+--- lib/t1lib/t1base.c.orig Sat Mar 6 12:58:04 2004
++++ lib/t1lib/t1base.c
+@@ -138,7 +138,11 @@ void *T1_InitLib( int log)
+ char *logfilepath=NULL;
+ char *envlogreq=NULL;
+ int usrforcelog=0;
+-
++ static int initdone;
++
++ if (initdone)
++ return (pFontBase);
++ initdone++;
+
+
+ /* Reset T1_errno */