Bug 703270

Summary: ps2epsi: Error: /undefinedfilename in (/usr/bin/ps2epsi.ps)
Product: Ghostscript Reporter: Thomas Deutschmann <whissi>
Component: RegressionAssignee: Default assignee <ghostpdl-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P4    
Version: 9.53.3   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---
Attachments: ps2espi_script.diff

Description Thomas Deutschmann 2020-12-14 15:14:39 UTC
Since http://git.ghostscript.com/?p=ghostpdl.git;a=commit;f=lib/ps2epsi;h=7c96228899ea05b40cdb31dc5a4c3f61aa0d39e6, /usr/bin/ps2epsi expects that ps2epsi.ps exists in same directory. However, build system will install ps2epsi.ps still below /usr/share/ghostscript/... causing ps2epsi fail with

> Error: /undefinedfilename in (/usr/bin/ps2epsi.ps)
Comment 1 Ray Johnston 2020-12-14 16:48:19 UTC
Created attachment 20363 [details]
ps2espi_script.diff

This simple change fixes the issue for me (tested on ubuntu linux)
Comment 2 Ray Johnston 2020-12-14 16:49:18 UTC
I did not test on a 'clean' gs install after make install, and so it managed
to pass my (admittedly perfunctory) testing.

The problem is confirmed, although I do get a different location (the exact
location depends on the 'flavor' of linux). I get:
   Error: /undefinedfilename in (/usr/local/bin/ps2epsi.ps)

This is fixed by a patch awaiting review.
Comment 3 Ray Johnston 2020-12-14 17:06:17 UTC
Fixed in commit c6166768c6e963b0fe28ccdb266629443e521381

This was tested on current code as well as 9.53.3
Comment 4 Thomas Deutschmann 2020-12-14 20:11:31 UTC
Confirmed, thank you for the quick fix!