[MacPorts] #26264: gv: pdf display not operational: error /undefined in copy_trailer_attrs (was: pdf display in `gv' not operational: error /undefined in copy_trailer_attrs)

MacPorts noreply at macports.org
Fri Aug 27 16:06:55 PDT 2010


#26264: gv: pdf display not operational: error /undefined in copy_trailer_attrs
---------------------------------------+------------------------------------
 Reporter:  veedeehjay@…               |       Owner:  takanori@…           
     Type:  defect                     |      Status:  new                  
 Priority:  Normal                     |   Milestone:                       
Component:  ports                      |     Version:  1.9.1                
 Keywords:                             |        Port:  ghostscript, gv      
---------------------------------------+------------------------------------
Changes (by ryandesign@…):

 * cc: "Ryan, Schmidt", <ryandesign@…> (removed)
 * cc: ryandesign@… (added)
  * owner:  macports-tickets@… => takanori@…
  * port:  gv @3.7.1 (print) => ghostscript, gv


Old description:

> `gv' does not display pdf-files but throws an error.
> the bug is principally known.
>
> the bug is in file:
>
> /opt/local/share/ghostscript/8.71/lib/pdf2dsc.ps.
>
> here's the diff of the patch solving the problem:
>
> @@ -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

New description:

 `gv' does not display pdf-files but throws an error.
 the bug is principally known.

 the bug is in file:

 /opt/local/share/ghostscript/8.71/lib/pdf2dsc.ps.

 here's the diff of the patch solving the problem:

 {{{
 @@ -116,7 +116,7 @@
     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
 }}}

--

Comment:

 The file /opt/local/share/ghostscript/8.71/lib/pdf2dsc.ps  is part of the
 port ghostscript, not part of the port gv.

 What do you mean "the bug is principally known"? Known by whom? Is there
 an upstream bug report? If so where? Where did this patch come from? Is
 this an upstream fix? If you invented this patch yourself, have you
 already reported it to the developers of ghostscript?

-- 
Ticket URL: <http://trac.macports.org/ticket/26264#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list