Bug 6028

Summary: encodings.dir files in system encodings dirs generated incorrectly
Product: xorg Reporter: Mike A. Harris <mharris>
Component: Fonts/otherAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: high    
Version: 7.0.0   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Mike A. Harris 2006-02-25 00:57:06 UTC
When the "encodings" package builds, it gzips the *.enc files then invokes
mkfontscale to generate an encodings.dir file in the same directory.  It does
this in both the main dir and the "large" dir.  However, it attempts to do
this directly in /usr/...  rather than in DESTDIR prefixed location.

The resulting installation into DESTDIR ends up with bogus encodings.dir
files somehow, which contain entries for *.enc files that don't even
exist. Some of them are compressed and others are not.

Manually running "mkfontscale -e $DESTDIR/path/to/encodings -n" after
"make install" causes the encodings.dir files to be regenerated correctly
however.
Comment 1 Mike A. Harris 2006-02-25 01:03:29 UTC
Instead of running mkfontscale to generate encodings.dir files in the
encodings directories during "make", it should be ran during "make install"
instead, and it should honour DESTDIR so that it is not trying to invoke
on the installed OS, but in the fake root DESTDIR points at instead.
Comment 2 Mike A. Harris 2006-02-25 01:05:55 UTC
Here's a bug reference to illustrate the problem this issue causes:

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=173875
Comment 3 Mike A. Harris 2006-08-31 07:32:22 UTC
Uninteresting bug.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.