3fe572792f
- Add ghostscript-fix-debug-use.patch from upstream to fix broken printing with some drivers (especially Fuji Xerox and Dell Printers) from https://bugs.ghostscript.com/show_bug.cgi?id=698837 - Fix build for SLE targets OBS-URL: https://build.opensuse.org/request/show/580811 OBS-URL: https://build.opensuse.org/package/show/Printing/ghostscript?expand=0&rev=84
47 lines
1.7 KiB
Diff
47 lines
1.7 KiB
Diff
From f0fe2481a2e9b0b632a1d4e804a5a1d27fe9c017 Mon Sep 17 00:00:00 2001
|
|
From: Chris Liddell <chris.liddell@artifex.com>
|
|
Date: Wed, 17 Jan 2018 12:29:00 +0000
|
|
Subject: [PATCH] Prevent undefined error with -DDEBUG
|
|
|
|
The procedure for dumping VM stats with -DDEBUG and -DINITDEBUG was not being
|
|
bound, so the .<operator> internal operators we now undefine after
|
|
initialization were missing by the time the procedure was called.
|
|
|
|
Now, simply bind the procedure
|
|
---
|
|
Resource/Init/gs_init.ps | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/Resource/Init/gs_init.ps b/Resource/Init/gs_init.ps
|
|
index eb4db02..335e3b1 100644
|
|
--- a/Resource/Init/gs_init.ps
|
|
+++ b/Resource/Init/gs_init.ps
|
|
@@ -113,6 +113,7 @@ PDFSTEP { /PDFDEBUG //true def } if
|
|
currentdict /PDFSTOPONERROR known /PDFSTOPONERROR exch def
|
|
currentdict /PDFSTOPONWARNING known {/PDFSTOPONWARNING true def /PDFSTOPONERROR true def}{/PDFSTOPONWARNING false def} ifelse
|
|
currentdict /PDFNOCIDFALLBACK known /PDFNOCIDFALLBACK exch def
|
|
+/.bind /bind load def
|
|
|
|
/VMDEBUG
|
|
INITDEBUG {{print mark
|
|
@@ -133,7 +134,7 @@ currentdict /PDFNOCIDFALLBACK known /PDFNOCIDFALLBACK exch def
|
|
{{pop
|
|
}}
|
|
ifelse
|
|
- def
|
|
+ .bind def
|
|
|
|
currentdict /BATCH known /BATCH exch def
|
|
currentdict /DELAYBIND known /DELAYBIND exch def
|
|
@@ -145,7 +146,6 @@ currentdict /FIXEDMEDIA known /FIXEDMEDIA exch def
|
|
currentdict /FIXEDRESOLUTION known /FIXEDRESOLUTION exch def
|
|
currentdict /LOCALFONTS known /LOCALFONTS exch def
|
|
currentdict /JOBSERVER known /JOBSERVER exch def
|
|
-/.bind /bind load def
|
|
currentdict /NOCACHE known /NOCACHE exch def
|
|
currentdict /NOCCFONTS known /NOCCFONTS exch def
|
|
currentdict /NOCIE known /NOCIE exch def
|
|
--
|
|
2.9.1
|
|
|