From 587ae08ed5aa5d21e42d332fa07587033ada839a Mon Sep 17 00:00:00 2001 From: simonb Date: Mon, 19 Apr 2004 04:14:35 +0000 Subject: 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. --- fonts/t1lib/distinfo | 3 ++- fonts/t1lib/patches/patch-ab | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 fonts/t1lib/patches/patch-ab (limited to 'fonts') 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 */ -- cgit v1.2.3