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

j. van den hoff veedeehjay at googlemail.com
Wed Aug 25 12:05:50 PDT 2010


hi,

FYI: after doing a `port selfupdate; port upgrade outdated' this bug  
surfaced again, i.e. it is still not patched
in the macports `gv' package.

if I knew how to do it I would help out, but I presume it's easy for  
someone from the macports core group (one-line
patch to /opt/local/share/ghostscript/8.71/lib/pdf2dsc.ps).

regards,

joerg


On Fri, 21 May 2010 16:19:50 +0200, Joshua Root <jmr at macports.org> wrote:

> 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...


-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/


More information about the macports-users mailing list