Bug 233966

Summary: Support for reading read-only configuration files
Product: [Fedora] Fedora Reporter: Akira TAGOH <tagoh>
Component: ghostscriptAssignee: Tim Waugh <twaugh>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: eng-i18n-bugs
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 8.15.4-3.fc7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-04-17 10:13:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 150225    
Attachments:
Description Flags
proposed patch for ghostscript.spec
none
new file (CIDFnmap) to be installed under /usr/share/ghostscript/8.15/lib/
none
updated FAPIcidfnmap
none
an replacement of Fontmap that gs has by default.
none
updated cidfmap none

Description Akira TAGOH 2007-03-26 12:19:25 UTC
Description of problem:
Sorry for getting back this idea again, but adding the another configuration
files to Fontmap, FAPIfontmap, FAPIcidfmap, cidfmap and CIDFnmap to read is
required for silly packaging issue. where is put onto the directory that isn't
allowed to modify in general, such as /usr/share.

Will attach the proposed patch then.

Comment 1 Akira TAGOH 2007-03-26 12:36:08 UTC
I mean /etc/ghostscript would be used as the place put the user configuration
and create new place to put the files which the packages, such as
fonts-{japanese,korean,chinese} has.

Comment 2 Akira TAGOH 2007-03-26 12:49:41 UTC
Created attachment 150891 [details]
proposed patch for ghostscript.spec

The reason to put the user configuration files under the versioned directory is
to prevent the breakage for incompatible changes in the configuration since it
may be hard to solve such files but we could fix the configuration files from
the font packages with rebuilding them. and still adding /etc/ghostscript to
the font path is to keep the compatibility. %{_datadir}/%{name}/conf.d would be
used to put the files for the font packages.

Comment 3 Tim Waugh 2007-04-03 13:33:13 UTC
This hunk did not apply cleanly:

@ -110,7 +110,9 @@
 	%{_datadir}/fonts/default/amspsfnt/pfb \
 	%{_datadir}/fonts/default/cmpsfont/pfb \
 	%{_datadir}/fonts/japanese \
-	%{_sysconfdir}/%{name}
+	%{_datadir}/%{name}/conf.d \
+	%{_sysconfdir}/%{name} \
+	%{_sysconfdir}/%{name}/%{gs_dot_ver}
 do
   FONTPATH="$FONTPATH${FONTPATH:+:}$path"
 done

..because %{_datadir}/fonts/japanese is not in that list in CVS.  Is that part
of a different change?

Comment 4 Tim Waugh 2007-04-03 13:37:11 UTC
Oh, never mind, I was looking at a CVS file with a sticky tag..

Comment 5 Akira TAGOH 2007-04-10 12:44:08 UTC
Sorry for reopening. but need to append the kind of (cidfmap.local)
.runlibfileifexists in cidfmap say. and as well as in CIDFnmap, FAPIfontmap and
Fontmap.

Comment 6 Tim Waugh 2007-04-10 13:31:49 UTC
Could you provide a patch please?  I'm not sure I understand enough about it to
get it right..

Comment 7 Akira TAGOH 2007-04-17 05:36:17 UTC
Created attachment 152763 [details]
new file (CIDFnmap) to be installed under /usr/share/ghostscript/8.15/lib/

Comment 8 Akira TAGOH 2007-04-17 05:37:06 UTC
Created attachment 152764 [details]
updated FAPIcidfnmap

Comment 9 Akira TAGOH 2007-04-17 05:37:53 UTC
Created attachment 152765 [details]
an replacement of Fontmap that gs has by default.

Comment 10 Akira TAGOH 2007-04-17 05:38:44 UTC
Created attachment 152766 [details]
updated cidfmap

Comment 11 Tim Waugh 2007-04-17 10:13:10 UTC
Thanks!  Should be all done in ghostscript-8.15.4-3.fc7.