[MacPorts] #26264: pdf display in `gv' not operational: error /undefined in copy_trailer_attrs
#26264: pdf display in `gv' not operational: error /undefined in copy_trailer_attrs ---------------------------------------+------------------------------------ Reporter: veedeehjay@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: gv @3.7.1 (print) ---------------------------------------+------------------------------------ `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 -- Ticket URL: <http://trac.macports.org/ticket/26264> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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
#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 ---------------------------------------+------------------------------------ Comment(by ryandesign@…): Is there any update to this issue? Any responses to my questions above? -- Ticket URL: <https://trac.macports.org/ticket/26264#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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 ---------------------------------------+------------------------------------ Comment(by ryandesign@…): I found a response the reporter sent by email in August 2010:
The file /opt/local/share/ghostscript/8.71/lib/pdf2dsc.ps is part of the port ghostscript, not part of the port gv.
right. I did not not recall my old mails. of course this is actually a ghostscript issue. sorry for that.
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
at the time I found the solution in red hat's bugzilla: [[br]] https://bugzilla.redhat.com/attachment.cgi?id=395186&action=edit [[br]] [[br]] and here is another reference to the problem: [[br]] http://savannah.gnu.org/bugs/?29023 [[br]] [[br]] here, too: [[br]]
http://groups.google.de/group/comp.lang.postscript/browse_thread/thread/24ad... [[br]]
[[br]] if I recall correctly back in May I also found some remarks that it indeed had been reported upstream. right now I cannot locate these remarks again.
this an upstream fix? If you invented this patch yourself, have you already reported it to the developers of ghostscript?
no since I presumed that had already happened (it seemed that the problem had already been noted month ago in several linux distros). but maybe this is not correct...
-- Ticket URL: <https://trac.macports.org/ticket/26264#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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 ---------------------------------------+------------------------------------ Comment(by veedeehjay@…): Replying to [comment:2 ryandesign@…]:
Is there any update to this issue? Any responses to my questions above?
it seems that it has been fixed somewhere upstream and pdf display works at least with ghostscript 9.04 (and /opt/local/share/ghostscript/9.04/lib/pdf2dsc.ps implements the previously reported patch in line 119) -- Ticket URL: <https://trac.macports.org/ticket/26264#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26264: gv: pdf display not operational: error /undefined in copy_trailer_attrs ----------------------------------------+----------------------------------- Reporter: veedeehjay@… | Owner: takanori@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Resolution: fixed | Keywords: Port: ghostscript, gv | ----------------------------------------+----------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Comment: Ok, thanks. -- Ticket URL: <https://trac.macports.org/ticket/26264#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts