Re: Status about fontconfig CVS regarding cache handling

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

 



Frederic Crozat <fcrozat@xxxxxxxxxxxx> さんは書きました:

> Le samedi 18 février 2006 à 13:23 -0500, Patrick Lam a écrit :
>> Mike FABIAN wrote:
>> > is true and it returns with FcFalse;
>> 
>> I've fixed the underlying problem which gets triggered by this too.
>
> Ok, I can confirm that the crash is fixed.

Yes, I can also confirm that.

> The cache being always updated by fc-cache if old version (but with
> correct magic) in present in the font directory is still there but I'm
> not sure we can fix it with something more than --really-force (which is
> fixing the issue). WDYT ?

How do you reproduce that?

I think I cannot reproduce it. If I copy a cache file from
/var/cache/fontconfig to the appropriate font directory, rename it to
fonts.cache-2 and then touch that font directory, "fc-cache -v"
correctly removes the cache file in the directory and
updates the cache file in /var/cache/fontconfig.

I tried to make the font directory readonly by adding a
font directory to a readonly partition to make it impossible
for fontconfig to remove the cache file in the directory.
But even in that case it seems to work correctly:

    root@magellan:/var/cache/fontconfig# grep local/test-fonts *
    バイナリー・ファイルfac913a0a223655c1409661e791e1833.cache-2は一致しました
    root@magellan:/var/cache/fontconfig# cp  fac913a0a223655c1409661e791e1833.cache-2   /local/test-fonts/fonts.cache-2
    root@magellan:/var/cache/fontconfig# touch /local/test-fonts
    root@magellan:/var/cache/fontconfig# mount -o remount,ro /local
    root@magellan:/var/cache/fontconfig# mount | grep hda2
    /dev/hda2 on /local type ext3 (ro)
    root@magellan:/var/cache/fontconfig# 
    root@magellan:/var/cache/fontconfig# ll --full -d /local/test-fonts
    drwxr-xr-x 2 root root 4096 2006-02-20 15:37:36.000000000 +0100 /local/test-fonts/
    root@magellan:/var/cache/fontconfig# ls --full /local/test-fonts/fonts.cache-2 /var/cache/fontconfig/fac913a0a223655c1409661e791e1833.cache-2
    -rw-r--r-- 1 root root 45056 2006-02-20 15:28:30.000000000 +0100 /local/test-fonts/fonts.cache-2
    -rw-r--r-- 1 root root 45056 2006-02-20 15:36:29.000000000 +0100 /var/cache/fontconfig/fac913a0a223655c1409661e791e1833.cache-2
    root@magellan:/var/cache/fontconfig# fc-cache -v /local/test-fonts
    fc-cache: "/local/test-fonts": caching, 20 fonts, 0 dirs
    fc-cache: succeeded
    root@magellan:/var/cache/fontconfig# fc-cache -v /local/test-fonts
    fc-cache: "/local/test-fonts": skipping, 20 fonts, 0 dirs
    fc-cache: succeeded
    root@magellan:/var/cache/fontconfig# 
    root@magellan:/var/cache/fontconfig# ls --full -d /local/test-fonts
    drwxr-xr-x 2 root root 4096 2006-02-20 15:37:36.000000000 +0100 /local/test-fonts/
    root@magellan:/var/cache/fontconfig# ls --full /local/test-fonts/fonts.cache-2 /var/cache/fontconfig/fac913a0a223655c1409661e791e1833.cache-2
    -rw-r--r-- 1 root root 45056 2006-02-20 15:28:30.000000000 +0100 /local/test-fonts/fonts.cache-2
    -rw-r--r-- 1 root root 45056 2006-02-20 15:38:41.000000000 +0100 /var/cache/fontconfig/fac913a0a223655c1409661e791e1833.cache-2
    root@magellan:/var/cache/fontconfig#

-- 
Mike FABIAN   <mfabian@xxxxxxx>   http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。

_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig

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

  Powered by Linux