Rework previous patch in order to be general (and probably also upstream-able). - pkgsrc-localpatches - leot's pkgsrc LOCALPATCHES
 (HTM) hg clone https://bitbucket.org/iamleot/pkgsrc-localpatches
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) changeset 261c2c0a30e0774e482754a48462621c9f677c82
 (DIR) parent 79be17de7af34f78e4024a0b42604869a95beb63
 (HTM) Author: Leonardo Taccari <iamleot@gmail.com>
       Date:   Mon, 12 Nov 2018 21:38:59 
       
       Rework previous patch in order to be general (and probably also upstream-able).
       
       Diffstat:
        print/ghostscript-agpl/patch-Resource_Init_pdf__draw.ps |  23 -----------------
        print/ghostscript-agpl/patch-Resource_Init_pdf__main.ps |  19 ++++++++++++++
        2 files changed, 19 insertions(+), 23 deletions(-)
       ---
       diff -r 79be17de7af3 -r 261c2c0a30e0 print/ghostscript-agpl/patch-Resource_Init_pdf__draw.ps
       --- a/print/ghostscript-agpl/patch-Resource_Init_pdf__draw.ps   Mon Nov 12 20:52:53 2018 +0100
       +++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
       @@ -1,23 +0,0 @@
       -$NetBSD$
       -
       -Avoid errors that sometimes happens with PDF processed via
       -pdfjoin/pdfnup.
       -While the error messages are probably handy when interactively
       -using ghostscript, wasting paper before every page is printed is
       -bad.
       -
       ---- Resource/Init/pdf_draw.ps.orig     2018-09-13 10:02:01.000000000 +0000
       -+++ Resource/Init/pdf_draw.ps
       -@@ -2525,9 +2525,9 @@ currentdict /last-ditch-bpc-csp undef
       -     countdictstack eq {end} if
       -   } loop
       -   1 gt {
       --    (   **** Error: Form stream has unbalanced q/Q operators \(too many q's\)\n)
       --    pdfformaterror
       --    (               Output may be incorrect.\n) pdfformaterror
       -+    %% (   **** Error: Form stream has unbalanced q/Q operators \(too many q's\)\n)
       -+    %% pdfformaterror
       -+    %% (               Output may be incorrect.\n) pdfformaterror
       -   } if
       -   pop
       -   /pdfemptycount exch store
       diff -r 79be17de7af3 -r 261c2c0a30e0 print/ghostscript-agpl/patch-Resource_Init_pdf__main.ps
       --- /dev/null   Thu Jan 01 00:00:00 1970 +0000
       +++ b/print/ghostscript-agpl/patch-Resource_Init_pdf__main.ps   Mon Nov 12 21:38:59 2018 +0100
       @@ -0,0 +1,19 @@
       +$NetBSD$
       +
       +Use stderr for errors.
       +
       +Printing to stdout, when really printing on paper, will ends up
       +wasting one page every time there is an error. Use stderr to avoid
       +that.
       +
       +--- Resource/Init/pdf_main.ps.orig     2018-09-13 10:02:01.000000000 +0000
       ++++ Resource/Init/pdf_main.ps
       +@@ -1633,7 +1633,7 @@ currentdict /xref-char-dict undef
       + } bind executeonly def
       + 
       + /pdfformaterror {     % <string> pdfformaterror -
       +-  stdoutprint
       ++  stderrprint
       +   /Repaired //true store
       +   /RepairedAnError //true store
       + } bind executeonly def