Subject: reachover X11 -- fonts.cache-1 problem
To: None <current-users@netbsd.org>
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>
List: current-users
Date: 02/29/2004 17:31:30
Using build.sh -x to build X11 there is a problem regarding font caches.

The install is done by pax which doesn't preserve the directory modification
times. This leaves the fonts.cache-1 files with older modification times
than the corresponding directories.

From xsrc/xfree/xc/lib/fontconfig/src/fccache.c:

	FcBool
	FcDirCacheValid (const FcChar8 *dir)
	...
	/*
	 * If the directory has been modified more recently than
	 * the cache file, the cache is not valid
	 */

So after a fresh install the font caches are invalid and fc-list returns
no fonts. Applications using pango->fontconfig now die with 

	No fonts found; this probably means that the fontconfig
	library is not correctly configured. You may need to
	edit the fonts.conf configuration file. More information
	about fontconfig can be found in the fontconfig(3) manual
	page and on http://fontconfig.org

Touching all fonts.cache-1 files after install works. What could be the
real solution?
-- 
Juergen Hannken-Illjes - hannken@eis.cs.tu-bs.de - TU Braunschweig (Germany)