Bug 44856

Summary: xfs startup doesn't strip missing fonts
Product: [Retired] Red Hat Raw Hide Reporter: Jonathan Kamens <h1k6zn2m>
Component: XFree86Assignee: Mike A. Harris <mharris>
Status: CLOSED WONTFIX QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: otaylor, redhat
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-11-01 12:52:59 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:
Attachments:
Description Flags
patch to /etc/rc.d/init.d/xfs to rebuild font dir if fonts are missing none

Description Jonathan Kamens 2001-06-18 14:37:15 UTC
The files /usr/X11R6/lib/X11/fonts/100dpi/fonts.dir and
/usr/X11R6/lib/X11/fonts/75dpi/fonts.dir both list fonts that aren't
actually included in the XFree86-100dpi-fonts or XFree86-75dpi-fonts
package.

It could be argued that that's a bug, but the more significant bug is that
the xfs startup script doesn't compensate for this problem by running
mkfontdir before starting xfs.

Logic has been added to the script to only run mkfontdir when it is
"needed", but one case where it is "needed" is not detected in that logic
-- when fonts are listed in fonts.dir which don't actually exist in the
font directory.

I will attach a patch that adds this logic to the script.

Comment 1 Jonathan Kamens 2001-06-18 14:37:40 UTC
Created attachment 21246 [details]
patch to /etc/rc.d/init.d/xfs to rebuild font dir if fonts are missing

Comment 2 Owen Taylor 2001-07-10 19:28:52 UTC
The fact that xfs regenerates fonts.dir, fonts.scale on startup
is already rather questionable. I believe extending this behavior
would be a bad idea.

(The current script has the slight problem that if you have a directory
with mixed Type1 and TrueType fonts, your fonts.scale will
be overwritten.)

The problem is simply that an incorrect fonts.dir was packaged,
and I believe this has been fixed now.

Comment 3 Mike A. Harris 2001-09-18 07:25:34 UTC
I am not sure exactly how I would like to see this handled, so I
am defering it for the future.  We'll come back to it some other
time.