persisting problems with pdf display in `gv': error /undefined in copy_trailer_attrs

Joshua Root jmr at macports.org
Fri May 21 07:19:50 PDT 2010


On 2010-5-21 19:06 , joerg van den hoff wrote:
> I followed your advice, contacting the `gv' maintainer, who thankfully
> responded quickly and to the point:
> this is not a `gv' bug but rather a bug in ghostscript 8.71. the
> affected file is at (for macports):
> 
> /opt/local/share/ghostscript/8.71/lib/pdf2dsc.ps
> 
> and here is the diff to patch it:
> 
> ==========CUT=============
> --- ghostscript-8.71/lib/pdf2dsc.ps.copy_trailer_attrs    2008-02-25
> 05:48:45.000000000 +0000
> +++ ghostscript-8.71/lib/pdf2dsc.ps.copy_trailer_attrs    2010-02-19
> 21:35:15.000000000 +0000
> @@ -116,7 +116,7 @@ systemdict /.setsafe known { .setsafe }
>     DSCfile PDFname write==only
>     ( \(r\) file { DELAYSAFER { .setsafe } if } stopped pop\n) puts
>     ( pdfopen begin\n) puts
> -   ( copy_trailer_attrs\n) puts
> +   ( process_trailer_attrs\n) puts
>     (%%EndSetup\n) puts
> 
>     /.hasPageLabels false def % see "Page Labels" in the PDF Reference
> ==========CUT=============
> 
> found here:
> https://bugzilla.redhat.com/attachment.cgi?id=395186&action=edit
> 
> after this patch `gv' displays pdf just fine as it used to do.
> 
> I think this should of course be patched upstream, but if this does not
> work right now, it should be done during the macports install process
> (sorry, I don't know
> the internals of `ports', otherwise I would do it...)

Just adding the maintainer of ghostscript to cc...


More information about the macports-users mailing list