Bug 690333 - Small error in unixinst.mak
Summary: Small error in unixinst.mak
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Config/Install (show other bugs)
Version: 8.64
Hardware: PC Linux
: P4 normal
Assignee: Hin-Tak Leung
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-16 11:15 UTC by Oliver Billmann
Modified: 2010-06-26 23:41 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Billmann 2009-03-16 11:15:49 UTC
Hi,

I found a small problem in unixinst.mak when creating the ps2* files and
friends...

The problem is the sed command will also replace the GS_EXECUTABLE="$gs"
line which basically makes the determination of the correct gs executable
useless. And if gs is not found in the path this will even result in an
error when calling the ps2* programs...

The solution is pretty easy, simply change the sed command in line 46
of src/unixinst.mak from

sed -e "s/GS_EXECUTABLE=[^ \t]*/GS_EXECUTABLE=$(GS)/"

to

sed -e "s/GS_EXECUTABLE=[^ \t\"].*/GS_EXECUTABLE=$(GS)/"

:-)

Oliver
Comment 1 Hin-Tak Leung 2010-05-02 03:12:28 UTC
Grabbing a Ralph's bugs.
Comment 2 Hin-Tak Leung 2010-06-26 23:41:34 UTC
Reporter's comment no-longer apply - the problematic line was changed in commit r10349 in relation to Bug 686863 about 8 months after this report, for essentially the same problem. i.e. a different fix was committed than suggested here, which fixed the reported problem.