Fri Apr 9 19:39:06 2010 UTC ()
Do some initialization of global stuff earlier, in particular before
"@file" args get processed, fixes PR pkg/42984 from T. M. Pederson.
I'm not 100% sure that this has no side effects (the initialization
order in gs is messy and undocumented) but I haven't found any within
some weeks of testing.
bump PKGREVISION


(drochner)
diff -r1.76 -r1.77 pkgsrc/print/ghostscript/Makefile
diff -r1.31 -r1.32 pkgsrc/print/ghostscript/distinfo
diff -r0 -r1.3 pkgsrc/print/ghostscript/patches/patch-an

cvs diff -r1.76 -r1.77 pkgsrc/print/ghostscript/Makefile (expand / switch to unified diff)

--- pkgsrc/print/ghostscript/Makefile 2010/03/11 12:53:52 1.76
+++ pkgsrc/print/ghostscript/Makefile 2010/04/09 19:39:06 1.77
@@ -1,17 +1,17 @@ @@ -1,17 +1,17 @@
1# $NetBSD: Makefile,v 1.76 2010/03/11 12:53:52 drochner Exp $ 1# $NetBSD: Makefile,v 1.77 2010/04/09 19:39:06 drochner Exp $
2 2
3DISTNAME= ghostscript-8.71 3DISTNAME= ghostscript-8.71
4PKGREVISION= 1 4PKGREVISION= 2
5CATEGORIES= print 5CATEGORIES= print
6MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ghostscript/} 6MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ghostscript/}
7MASTER_SITES+= http://ghostscript.com/releases/ 7MASTER_SITES+= http://ghostscript.com/releases/
8 8
9MAINTAINER= pkgsrc-users@NetBSD.org 9MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= http://ghostscript.sourceforge.net/ 10HOMEPAGE= http://ghostscript.sourceforge.net/
11COMMENT= Postscript interpreter 11COMMENT= Postscript interpreter
12 12
13# Plus adobe verbatim for Resources/CMap. 13# Plus adobe verbatim for Resources/CMap.
14LICENSE= gnu-gpl-v3 14LICENSE= gnu-gpl-v3
15 15
16DEPENDS+= ghostscript-fonts>=6.0:../../fonts/ghostscript-fonts 16DEPENDS+= ghostscript-fonts>=6.0:../../fonts/ghostscript-fonts
17 17

cvs diff -r1.31 -r1.32 pkgsrc/print/ghostscript/Attic/distinfo (expand / switch to unified diff)

--- pkgsrc/print/ghostscript/Attic/distinfo 2010/03/11 12:53:52 1.31
+++ pkgsrc/print/ghostscript/Attic/distinfo 2010/04/09 19:39:06 1.32
@@ -1,16 +1,17 @@ @@ -1,16 +1,17 @@
1$NetBSD: distinfo,v 1.31 2010/03/11 12:53:52 drochner Exp $ 1$NetBSD: distinfo,v 1.32 2010/04/09 19:39:06 drochner Exp $
2 2
3SHA1 (ghostscript-8.71.tar.gz) = 629299140f612fac32f6289be0904107dfd1b555 3SHA1 (ghostscript-8.71.tar.gz) = 629299140f612fac32f6289be0904107dfd1b555
4RMD160 (ghostscript-8.71.tar.gz) = efce74cf22cf99b2b1a145df466e79a86e3dfefb 4RMD160 (ghostscript-8.71.tar.gz) = efce74cf22cf99b2b1a145df466e79a86e3dfefb
5Size (ghostscript-8.71.tar.gz) = 25240801 bytes 5Size (ghostscript-8.71.tar.gz) = 25240801 bytes
6SHA1 (patch-aa) = 31f2107c474398a350916df6fe793a5920f81169 6SHA1 (patch-aa) = 31f2107c474398a350916df6fe793a5920f81169
7SHA1 (patch-ab) = 7a98cad37f94394f172bdac23f5dd73fb1f08006 7SHA1 (patch-ab) = 7a98cad37f94394f172bdac23f5dd73fb1f08006
8SHA1 (patch-ac) = b1f71dc446f433be0b07b0511dc1028e8e3b77f3 8SHA1 (patch-ac) = b1f71dc446f433be0b07b0511dc1028e8e3b77f3
9SHA1 (patch-ad) = 8b3b743b2d6405ea35bfb16970942ecd55702401 9SHA1 (patch-ad) = 8b3b743b2d6405ea35bfb16970942ecd55702401
10SHA1 (patch-af) = 13aa7b5159cbd5413353b48380d5665ed879fe64 10SHA1 (patch-af) = 13aa7b5159cbd5413353b48380d5665ed879fe64
11SHA1 (patch-ag) = bdfbe40c849537d84ac2b3def4a0a3a87ecc152f 11SHA1 (patch-ag) = bdfbe40c849537d84ac2b3def4a0a3a87ecc152f
12SHA1 (patch-ah) = 8cdf9cc1a62e3eb34ca8edf7bbaf9d542b612519 12SHA1 (patch-ah) = 8cdf9cc1a62e3eb34ca8edf7bbaf9d542b612519
13SHA1 (patch-ai) = ad69ddd4a4bd50cf2263ac6c6d17a59798ef3124 13SHA1 (patch-ai) = ad69ddd4a4bd50cf2263ac6c6d17a59798ef3124
14SHA1 (patch-aj) = 620d921210b5c0efec0a84e33bc416e4ab4bd11c 14SHA1 (patch-aj) = 620d921210b5c0efec0a84e33bc416e4ab4bd11c
15SHA1 (patch-al) = 86489b704c60320385794c3eb68170d9b9f1f6cc 15SHA1 (patch-al) = 86489b704c60320385794c3eb68170d9b9f1f6cc
16SHA1 (patch-am) = 47a994e902d565f2a06b054766d6fa93c7534d21 16SHA1 (patch-am) = 47a994e902d565f2a06b054766d6fa93c7534d21
 17SHA1 (patch-an) = 875360319e486f4606627d8cfa3dbffd48d76130

File Added: pkgsrc/print/ghostscript/patches/Attic/patch-an
$NetBSD: patch-an,v 1.3 2010/04/09 19:39:06 drochner Exp $

--- psi/imainarg.c.orig	2009-12-08 06:31:51.000000000 +0000
+++ psi/imainarg.c
@@ -194,6 +194,11 @@ gs_main_init_with_args(gs_main_instance 
 		return e_Fatal;
 	}
     }
+
+    code = gs_main_init1(minst);
+    if (code < 0)
+	return code;
+
     while ((arg = arg_next(&args, &code)) != 0) {
 	switch (*arg) {
 	    case '-':