Bug 703270 - ps2epsi: Error: /undefinedfilename in (/usr/bin/ps2epsi.ps)
Summary: ps2epsi: Error: /undefinedfilename in (/usr/bin/ps2epsi.ps)
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Regression (show other bugs)
Version: 9.53.3
Hardware: PC Linux
: P4 normal
Assignee: Default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-14 15:14 UTC by Thomas Deutschmann
Modified: 2020-12-14 20:11 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
ps2espi_script.diff (585 bytes, patch)
2020-12-14 16:48 UTC, Ray Johnston
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!