Bug 691322

Summary: Init/gs_init.ps must exist or -sGenericResourceDir doesn't work.
Product: Ghostscript Reporter: Marcos H. Woehrmann <marcos.woehrmann>
Component: Config/InstallAssignee: Default assignee <ghostpdl-bugs>
Status: NOTIFIED FIXED    
Severity: normal    
Priority: P2    
Version: master   
Hardware: PC   
OS: All   
Customer: 130 Word Size: ---

Description Marcos H. Woehrmann 2010-05-18 19:03:51 UTC

    
Comment 1 Marcos H. Woehrmann 2010-05-18 19:05:35 UTC
bin/gs -sGenericResourceDir=/Users/marcos/artifex/test-8.71/test/ -I./Resource/Init -sDEVICE=ppmraw -o test.ppm ./examples/tiger.eps

produces:

*** Warning: GenericResourceDir doesn't point to a valid resource directory.
               the -sGenericResourceDir=... option can be used to set this.



where:

touch test/Init/gs_init.ps
bin/gs -sGenericResourceDir=/Users/marcos/artifex/test-8.71/test/ -I./Resource/Init -sDEVICE=ppmraw -o test.ppm ./examples/tiger.eps

works as expected.
Comment 2 Marcos H. Woehrmann 2010-05-18 19:07:35 UTC
This broke between 8.64 and 8.70, searching for the precise revision now.
Comment 3 Marcos H. Woehrmann 2010-05-18 19:39:16 UTC
This appears to be a feature and not a bug, though at least one of customers does not think so:

r9495 | alexcher | 2009-02-20 11:10:04 -0800 (Fri, 20 Feb 2009) | 6 lines

Check that gs_init.ps can be found at $(GenericResourceDir)Init/gs_init.ps
Issue a warning if this file cannot be found. Bug 690289.
Comment 4 Ray Johnston 2010-09-27 00:51:02 UTC
With Alex's changes to make SEARCH_HERE_FIRST=0 (-P-) the default in 9.00,
I believe all of these issues are resolved. The GenericResourceDir now
seems to always resolve to a valid location, due to separate testing process
compared to the testing for gs_init.ps.

Note that  most of this is moot since by default, COMPILE_INITS=1 is used
to put the Resource path in the exectuable as %rom%Resource with all of the
required subdirectories such as Init (for gs_init.ps, etc.) CMap and Font.