[Fontconfig] Re: Structure of cache files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le mardi 06 d?cembre 2005 ? 23:04 -0500, Patrick Lam a ?crit :
> Josselin Mouette wrote:
> > It would indeed solve both problems simultaneously.
> > Maybe, for performance, would it be better to
> > use /var/cache/fontconfig/$hash.cache files, $hash being generated from
> > the original pathname ?
> 
> How does the attached patch look?

Great ! I don't have enough knowledge of the fontconfig internals, but
it looks simple enough to work. Although, I'd have the same remark as
Keith about the hash: using a MD5 hash would be much better, as the code
isn't collision-safe.

> Is fontconfig supposed to be
> responsible for creating /var/cache/fontconfig, or can it rely on the
> packager? Also is hardcoding /var/cache/fontconfig the right thing?

I think you should use ${localstatedir}/cache/fontconfig instead.
Furthermore, the makefiles should create this directory in DESTDIR in
the install target. Packagers will either use this directory or create
it themselves, this isn't a problem.

Regards,
-- 
 .''`.           Josselin Mouette        /\./\
: :' :           josselin.mouette@xxxxxxxxxxxx
`. `'                        joss@xxxxxxxxxx
   `-  Debian GNU/Linux -- The power of freedom


[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux