Bug 690333

Summary: Small error in unixinst.mak
Product: Ghostscript Reporter: Oliver Billmann <ghostscript>
Component: Config/InstallAssignee: Hin-Tak Leung <htl10>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P4    
Version: 8.64   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---

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.