[fontconfig] Fix failing on updating cache with --really-force.

Akira TAGOH tagoh at fedoraproject.org
Fri Apr 11 03:44:05 UTC 2014


commit f6b9d2097d7b993f6793157772912820eca61cb4
Author: Akira TAGOH <tagoh at redhat.com>
Date:   Fri Apr 11 12:43:49 2014 +0900

    Fix failing on updating cache with --really-force.

 fontconfig-fix-fccache-fail.patch |   29 +++++++++++++++++++++++++++++
 fontconfig.spec                   |   10 ++++++++--
 2 files changed, 37 insertions(+), 2 deletions(-)
---
diff --git a/fontconfig-fix-fccache-fail.patch b/fontconfig-fix-fccache-fail.patch
new file mode 100644
index 0000000..4b87bb2
--- /dev/null
+++ b/fontconfig-fix-fccache-fail.patch
@@ -0,0 +1,29 @@
+From f44157c809d280e2a0ce87fb078fc4b278d24a67 Mon Sep 17 00:00:00 2001
+From: Akira TAGOH <akira at tagoh.org>
+Date: Thu, 10 Apr 2014 19:27:55 +0900
+Subject: [PATCH] Fix fc-cache fail with -r
+
+Do not unlink the cache even if --really-force is given.
+because re-scanning process expects the cache exists.
+
+https://bugs.freedesktop.org/show_bug.cgi?id=77252
+---
+ fc-cache/fc-cache.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/fc-cache/fc-cache.c b/fc-cache/fc-cache.c
+index 99e0e9f..90ebad3 100644
+--- a/fc-cache/fc-cache.c
++++ b/fc-cache/fc-cache.c
+@@ -388,7 +388,7 @@ main (int argc, char **argv)
+     list = FcStrListCreate (updateDirs);
+     if (list)
+     {
+-	ret += scanDirs (list, config, FcTrue, really_force, verbose, FcFalse, &changed, NULL);
++	ret += scanDirs (list, config, FcTrue, FcFalse, verbose, FcFalse, &changed, NULL);
+ 	FcStrListDone (list);
+     }
+     FcStrSetDestroy (updateDirs);
+-- 
+1.9.0
+
diff --git a/fontconfig.spec b/fontconfig.spec
index 82f82a9..c0b87e4 100644
--- a/fontconfig.spec
+++ b/fontconfig.spec
@@ -3,7 +3,7 @@
 Summary:	Font configuration and customization library
 Name:		fontconfig
 Version:	2.11.1
-Release:	1%{?dist}
+Release:	2%{?dist}
 # src/ftglue.[ch] is in Public Domain
 # src/fccache.c contains Public Domain code
 # fc-case/CaseFolding.txt is in the UCD
@@ -15,7 +15,9 @@ URL:		http://fontconfig.org
 Source1:	25-no-bitmap-fedora.conf
 
 # https://bugzilla.redhat.com/show_bug.cgi?id=140335
-Patch0:		fontconfig-sleep-less.patch
+Patch0:		%{name}-sleep-less.patch
+# https://bugs.freedesktop.org/show_bug.cgi?id=77252
+Patch1:		%{name}-fix-fccache-fail.patch
 
 BuildRequires:	expat-devel
 BuildRequires:	freetype-devel >= %{freetype_version}
@@ -58,6 +60,7 @@ which is useful for developing applications that uses fontconfig.
 %prep
 %setup -q
 %patch0 -p1 -b .sleep-less
+%patch1 -p1 -b .cache-fail
 
 %build
 # We don't want to rebuild the docs, but we want to install the included ones.
@@ -134,6 +137,9 @@ fi
 %doc fontconfig-devel.txt fontconfig-devel
 
 %changelog
+* Fri Apr 11 2014 Akira TAGOH <tagoh at redhat.com> - 2.11.1-2
+- Fix failing on updating cache with --really-force.
+
 * Mon Mar 24 2014 Akira TAGOH <tagoh at redhat.com> - 2.11.1-1
 - New upstream release.
 


More information about the fonts-bugs mailing list