Subject: xsrc/24620: Reachover x11 fonts.cache invalid
To: None <>
From: Juergen Hannken-Illjes <>
List: netbsd-bugs
Date: 03/01/2004 13:34:23
>Number:         24620
>Category:       xsrc
>Synopsis:       Reachover x11 fonts.cache invalid
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    xsrc-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 01 12:35:00 UTC 2004
>Originator:     Juergen Hannken-Illjes
>Release:        NetBSD 1.6N
System: NetBSD watcher 1.6N NetBSD 1.6N (LOCAL) #40: Thu Feb 20 13:12:49 MET 2003 hannken@watcher:/build/local/obj/sys/arch/i386/compile/LOCAL i386
Architecture: i386
Machine: i386
	Using -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:

	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
	Build X11 with " -x".