Bug 689253 - postscript library files shouldn't be installed with COMPILE_INITS=1
Summary: postscript library files shouldn't be installed with COMPILE_INITS=1
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Config/Install (show other bugs)
Version: master
Hardware: PC Linux
: P4 normal
Assignee: Default assignee
URL:
Keywords:
Depends on: 691449
Blocks:
  Show dependency tree
 
Reported: 2007-05-29 20:43 UTC by Ralph Giles
Modified: 2010-07-31 15:08 UTC (History)
1 user (show)

See Also:
Customer:
Word Size: ---


Attachments
not to install Resources/* and iccprofiles/* if compile-inits=1 (1.94 KB, patch)
2010-07-12 02:18 UTC, Hin-Tak Leung
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Giles 2007-05-29 20:43:22 UTC
The lib/gs_init.ps and its referenced files shouldn't be installed in
$(gsdatadir)/lib/ when COMPILE_INITS is enabled. It's confusing since the files
are there, but not used.
Comment 1 Hin-Tak Leung 2010-05-02 03:12:50 UTC
Grabbing a Ralph's bugs.
Comment 2 Hin-Tak Leung 2010-06-27 03:42:57 UTC
One way of implementing this is to test for the creation of the generation and existence of gsromfs1.c or romfs1.dev (a direct consequence of setting COMPILE_INIT=1) .
Comment 3 Hin-Tak Leung 2010-07-12 02:18:42 UTC
Created attachment 6457 [details]
not to install Resources/* and iccprofiles/* if compile-inits=1

Patch to not install Resources/* and iccprofiles/* if COMPILE_INITS=1  . This patch works similarly to SHARE_JPEG=0/1 , SHARE_LIBTIFF=0/1 , SHARE_LIBPNG=0/1
where the graphic library depends on one target e.g. "target$SHARE_JPEG" but target0 and target1 are defined which does different things.

In this case, COMPILE_INITS=1 does nothing (not to copy files).

Since Ralph wrote, lib has splitted into "lib" and "Resources" . "lib" is optional functional and still needed regardless of COMPILE_INITS, so this part does not touch the "install-libdata" target.

This patch can be (and was) tested with 
./configure --with-/--without-compile-inits --prefix=/tmp/gsinst ; make -k install

and just look at what files are copied.
Comment 4 Hin-Tak Leung 2010-07-12 02:24:31 UTC
Since romfs is now built with the content of Resources/* and iccprofiles/*, this patch to optionally _not_ install iccprofiles with compile-init=1 depends on the patch for bug 691449 for installing iccprofiles.

Reassign back to support for review and commit.
Comment 5 Till Kamppeter 2010-07-31 15:08:05 UTC
Committed Hin-Tak's most recent patch as rev. 11580.