Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#56455 closed defect (fixed)

fig2dev @3.2.7 has problems generating PDF files

Reported by: josephsacco Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc: Schamschula (Marius Schamschula)
Port: fig2dev

Description

There is something amiss with fig2dev @3.2.7:

/opt/local/bin/fig2dev -L pdf arrows.fig
sh: -q: command not found
Error in ghostcript command
command was:  -q -sAutoRotatePages=None -dAutoFilterColorImages=false -dColorImageFilter=/DCTEncode -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -o '-' -

The latest version of fig2dev, version 3.2.7a, does not have this problem. A patch for the Portfile to update to version 3.2.7a is attached.

-Joseph

Attachments (1)

Portfile.diff (811 bytes) - added by josephsacco 6 years ago.
diff for Portfile

Download all attachments as: .zip

Change History (6)

Changed 6 years ago by josephsacco

Attachment: Portfile.diff added

diff for Portfile

comment:1 Changed 6 years ago by mf2k (Frank Schima)

Keywords: haspatch added

comment:2 Changed 6 years ago by Schamschula (Marius Schamschula)

Owner: set to Schamschula
Resolution: fixed
Status: newclosed

In 4fbe48ba1723a0b2a446d3c7c008a27cabd331a2/macports-ports (master):

fig2dev: update to version 3.2.7a

Closes: #56455

comment:3 Changed 6 years ago by charles-c-allen

Both exporting PDF from within xfig and using fig2dev to generate a PDF file still give the above error, after an uninstall and reinstall to version 3.2.7a.

Error during EXPORT. Messages:

sh: -q: command not found Error in ghostcript command command was: -q -sAutoRotatePages=None -dAutoFilterColorImages=false -dColorImageFilter=/DCTEncode -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -o 'snark.pdf' -

comment:4 Changed 6 years ago by josephsacco

Hmmm.... That looks just like the same ghostscript error I saw when running fig2dev @3.2.7.

I just tested the two operations you mentioned on a late 2015 iMac running OSX 10.13.4 and all seems well. Both xfig and fig2dev are at version 3.2.7a:

$ port installed xfig
The following ports are currently installed:
  xfig @3.2.7a_0 (active)

$ port installed fig2dev
The following ports are currently installed:
  fig2dev @3.2.7a_0 (active)

What platform are you running on?

-Joseph

comment:5 Changed 6 years ago by charles-c-allen

I installed via source (thanks to #56474 for reminding me of that) and it works now. The binary appears to be out of sync.

Note: See TracTickets for help on using tickets.