[Fontconfig] Trouble forcing rescanning of font dirs

Behdad Esfahbod behdad at behdad.org
Mon Feb 2 04:05:58 PST 2009


Mike FABIAN wrote:
> I also think this is a bug, see 
> 
> https://bugzilla.novell.com/show_bug.cgi?id=438855#c23
> 
> Comment #24 of this bug has a patch which I attach here as well
> for convenience.
> 
> The line
> 
>  if (dir_stat.st_mtime <= file_stat.st_mtime) {
> 
> was removed recently from fccache.c, I think this was probably removed
> by accident and was a mistake.

I doubt you really mean "recently".  Anyway, that was not a mistake.  That
line will cause lots of problems with clock skews and changes (which are not
uncommon at new installations).  Instead, the cache stores the dir timestamp,
and the two are compared for equality.

I think the approach Diego proposes may be real the fix.  However, I'm puzzled
as live font installation and uninstallation both work for me correctly.  I'll
check it out again.

Diego, which fontconfig version are you using?

Makes me wonder, what patches do you carry around in Novell that should be
upstream?  Please file them in bugzilla and I'll take a look.  We're getting
2.7 out really soon.

behdad


More information about the Fontconfig mailing list