Re: Patch: fix for fc-cache with relative path

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

 



Mike FABIAN <mfabian@xxxxxxx> さんは書きました:

> No new cache file has been generated:
>
>     mfabian@magellan:/usr/X11R6/lib/X11/fonts/Type1$ ls /var/cache/fontconfig/
>     d6867d8c7d183335b46263581b96fdc1.cache-2  stamp
>     mfabian@magellan:/usr/X11R6/lib/X11/fonts/Type1$ 
>
>>> -a similar problem happen when using : fc-cache /foo/bar and
>>> fc-cache /foo/bar/ : strings used to generate md5sum are not the same,
>>> resulting in different cache.
>>> 
>>> The attached patch fixes the issue.
>>
>> I've committed my patch.
>
> Hmm, that problem seems to persist as well:
> [ ... description how to reproduce ...]

I believe I can fix this with the attached patch:

--- fontconfig-2.3.93.20060110.orig/fc-cache/fc-cache.c	2006-01-11 13:23:52.000000000 +0100
+++ fontconfig-2.3.93.20060110/fc-cache/fc-cache.c	2006-01-12 12:47:54.000000000 +0100
@@ -122,7 +122,7 @@
      * Now scan all of the directories into separate databases
      * and write out the results
      */
-    while ((dir = FcStrListNext (list)))
+    while ((dir = FcConfigNormalizeFontDir(config, FcStrListNext (list))))
     {
 	if (verbose)
 	{
@@ -275,7 +275,7 @@
 
     if (systemOnly)
 	FcConfigEnableHome (FcFalse);
-    config = FcInitLoadConfig ();
+    config = FcInitLoadConfigAndFonts ();
     if (!config)
     {
 	fprintf (stderr, "%s: Can't init font config library\n", argv[0]);

-- 
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