RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 629941 - Fontmap.local file created by package is never used
Summary: Fontmap.local file created by package is never used
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ghostscript
Version: 6.0
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Tim Waugh
QA Contact: QE Internationalization Bugs
URL:
Whiteboard:
Depends On: 610301 629943
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-03 10:58 UTC by Tim Waugh
Modified: 2011-05-19 12:28 UTC (History)
3 users (show)

Fixed In Version: ghostscript-8.70-10.el6
Doc Type: Bug Fix
Doc Text:
The Fontmap.local file installed with the ghostscript package allows a system administrator to override font substitutions. However, previous versions of the Ghostscript suite did not use this file at all. This error has been fixed, and the file is now used as expected.
Clone Of: 610301
Environment:
The Fontmap.local file is supposed to be used for over-riding font substitutions. However, this file was not being used by ghostscript.
Last Closed: 2011-05-19 12:28:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0527 0 normal SHIPPED_LIVE ghostscript bug fix update 2011-05-18 17:57:49 UTC

Description Tim Waugh 2010-09-03 10:58:50 UTC
Also affects Red Hat Enterprise Linux 6.

+++ This bug was initially created as a clone of Bug #610301 +++

Description of problem:
The spec file for the ghostscript package creates the following
three files in /etc/ghostscript/8.71:
  cidfmap.local
  CIDFnmap.local
  Fontmap.local

The files under /etc/ghostscript are important because they are
the only ones marked as %config(noreplace), and so if you make
customizations to the system-wide files in
/usr/share/ghostscript/8.71/Resource/Init, they may be clobbered
if the upstream version of the file changes.

The system-wide cidfmap and CIDFnmap files contain lines like
these at the end:

% must be at the bottom of line to allow people overriding everything.
(cidfmap.local) .runlibfileifexists

% must be at the bottom of line to allow people overriding everything.
(CIDFnmap.local) .runlibfileifexists

No such line exists at the end of the global Fontmap file.  As a
result, making customizations in the obvious place (the
/etc/ghostscript/8.71/Fontmap.local file that the package helpfully
creates for you) results in your customizations never being read
in by gs.

Version-Release number of selected component (if applicable):
8.71-6.fc11.x86_64, 8.71-9.fc13.x86_64, and presumably also the
current versions in F12 and Rawhide

Steps to Reproduce:
1. yum install ghostscript strace
2. strace gs >/tmp/gstrace 2>&1
3. search for Fontmap in /tmp/gstrace with your favorite editor
   and note that several locations including /etc/ghostscript and
   /etc/ghostscript/8.71 are searched for a file called Fontmap,
   but Fontmap.local is never tried
  
One way to tackle this would be to patch the upstream Fontmap
file to add something like this to the end of the global file:
(Fontmap.local) .runlibfileifexists
I recommend this solution.

Another approach would be to discontinue creating the
/etc/ghostscript/8.71/Fontmap.local file and instead create
one named Fontmap.  However, all systems with ghostscript
already installed may still have the Fontmap.local file present
and be confused when they try to use it.

--- Additional comment from twaugh on 2010-09-03 06:58:04 EDT ---

The patch to get ghostscript to read Fontmap.local was dropped after ghostscript-8.15.4-3.fc7.  I think that was just a mistake at the time -- those files were reorganised upstream.

Thanks for reporting it.

Comment 2 Kenichi Takemura 2011-02-01 00:32:09 UTC
Hi is this bug fixed and included in following patches?

# rpm -qa ghostscript*
ghostscript-8.70-8.el6.i686
ghostscript-fonts-5.50-23.1.el6.noarch
ghostscript-gtk-8.70-8.el6.i686
ghostscript-devel-8.70-8.el6.i686
ghostscript-debuginfo-8.70-8.el6.i686
ghostscript-doc-8.70-8.el6.i686

#  strace gs >/tmp/gstrace 2>&1
# grep Fontmap.local /tmp/gstrace
# 
# gs </dev/null
# tail -n1 /usr/share/ghostscript/8.70/Resource/Init/Fontmap
(Fontmap.GS) .runlibfile
#

Comment 3 Kenichi Takemura 2011-02-01 00:37:34 UTC
I tested on both i386 and x86_64 but the results are same.

Comment 4 Tim Waugh 2011-02-01 11:13:32 UTC
Oops, patch wasn't applied.

Comment 5 Kenichi Takemura 2011-02-02 03:45:17 UTC
I see it's fixed.

Comment 7 Jaromir Hradilek 2011-02-18 11:44:31 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
The Fontmap.local file installed with the ghostscript package allows a system administrator to override font substitutions. However, previous versions of the Ghostscript suite did not use this file at all. This error has been fixed, and the file is now used as expected.

Comment 8 errata-xmlrpc 2011-05-19 12:28:15 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0527.html


Note You need to log in before you can comment on or make changes to this bug.