Subject: pkg/30609: ghostscript-using packages likely broken.
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <dgriffi@cs.csubak.edu>
List: pkgsrc-bugs
Date: 06/27/2005 09:21:00
>Number:         30609
>Category:       pkg
>Synopsis:       ghostscript-using packages likely broken.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 27 09:21:00 +0000 2005
>Originator:     David Griffith
>Release:        2.0
>Organization:
>Environment:
NetBSD zaphod 2.0 NetBSD 2.0 (ZAPHOD) #0: Thu Jan 20 11:46:18 PST 2005  dave@zaphod:/usr/src/sys/arch/i386/compile/ZAPHOD i386

>Description:
I first thought this was an xfig problem, but I soon discovered that ghostscript was the most likely culprit.  I strongly suspect that all packages making use of Ghostscript are now subtly broken.

I've made some drawings with xfig and I'd now like to convert them to postscript for printing.  If I export to ps or eps formats, it goes okay, but viewing the resulting file gives me this:

gs stage1_panel.ps 
Aladdin Ghostscript 6.01 (2000-03-17)
Copyright (C) 2000 Aladdin Enterprises, Menlo Park, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Loading NimbusRomNo9L-Regu font from /usr/pkg/share/ghostscript/fonts/n021003l.pfb... 4973320 3617196 1556964 261658 0 done.
Loading NimbusSanL-Regu font from /usr/pkg/share/ghostscript/fonts/n019003l.pfb... 5348280 3948492 1577060 269210 0 done.
Error: /limitcheck in --arc--
Operand stack:
   --nostringval--   0   0   1   0   360
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1   3   %oparray_pop   1   3   %oparray_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   --nostringval--
Dictionary stack:
   --dict:936/983(ro)(G)--   --dict:0/20(G)--   --dict:124/200(L)--   --dict:107/200(L)--
Current allocation mode is local
Current file position is 8455
Aladdin Ghostscript 6.01: Unrecoverable error, exit code 1


I tried exporting to .gif and got this in an error dialog generated by xfig:

Error during EXPORT.  Messages:
 Aladdin Ghostscript 6.01: Unrecoverable error, exit code 1
 Error in ghostcript command
 command was: gs -q -dSAFER -sDEVICE=ppmraw -r80 -g364x9555438
-sOutputFile=/tmp/f2d13296.ppm -

fig2ps creates the same buggy postscript file.

fig2ps2tex does this:

$ fig2ps2tex stage1_panel.fig 
bbox: Subscript out of range.
bbox: Subscript out of range.
\makebox[in][l]{
  \vbox to in{
    \vfill
    \special{psfile=stage1_panel.fig}
  }
  \vspace{-\baselineskip}
}
$
>How-To-Repeat:
Install graphics/xfig and print/ghostscript.  Load into xfig the file at this URL(http://www.cs.csubak.edu/~dgriffi/stage1_panel.fig) and export to postscript.  Do it again to .gif or .png.


>Fix:
$ pkg_info | grep ghostscript
ghostscript-fonts-8.11 Postscript fonts for Aladdin Ghostscript
ghostscript-6.01nb5 Aladdin Postscript interpreter

Notice that the ghostscript currently installed by print/ghostscript is 6.01.  fonts/ghostscript-fonts was updated three weeks ago to install ghostscript-fonts-std-8.11.tar.gz alongside ghostscript-fonts-other-6.0.tar.gz.  I think using those standard fonts for 8.11 with version 6.01 is the cause of this trouble.  Shouldn't print/ghostscript have been updated at the same time?