Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#69554 - [ghostscript] ps2epsi doesn't work without ps2epsi.ps in the same directory

Attached to Project: Arch Linux
Opened by Vladimir (_v_l) - Saturday, 06 February 2021, 08:25 GMT
Last edited by Andreas Radke (AndyRTR) - Sunday, 07 February 2021, 20:46 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: ps2epsi script (/usr/bin/ps2epsi) doesn't work if there is no ps2epsi.ps in the same directory. This is from ps2epsi:

# Note, we expect 'ps2epsi.ps' to be in the same directory as 'ps2epsi'

Currently ps2epsi fails with following:

Error: /undefinedfilename in (/usr/bin/ps2epsi.ps)
Operand stack:

Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push
Dictionary stack:
--dict:732/1123(ro)(G)-- --dict:0/20(G)-- --dict:76/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
GPL Ghostscript 9.53.3: Unrecoverable error, exit code 1

This is due to how ps2epsi calls ps2epsi.ps. There is commit in upstream:

http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=c6166768c6e963b0fe28ccdb266629443e521381

to fix (I hope, I didn't check) this behaviour.
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Sunday, 07 February 2021, 20:46 GMT
Reason for closing:  Fixed
Additional comments about closing:  patch applied.
Comment by Andreas Radke (AndyRTR) - Saturday, 06 February 2021, 10:10 GMT
You can edit line 45 removing "$LIBDIR/ " from /usr/bin/ps2epsi and report if it solves you issue. Then I can apply this patch if that single fix is enough.
Comment by Vladimir (_v_l) - Sunday, 07 February 2021, 04:26 GMT
Yes, removing LIBDIR (i.e. making the line the same as in mentioned commit) allows to use ps2epsi.

There might be a problem with transparency if one use it in EPS file but this is known issue with recent ghostscript and should be fixed in other tools.

Loading...