[fontconfig/f20] Fix the race condition issue on updating caches. (#921706)

Akira TAGOH tagoh at fedoraproject.org
Tue Jul 8 09:11:43 UTC 2014


commit 9d82696ed60ceca1baffda51bc7513d7b1e71bff
Author: Akira TAGOH <tagoh at redhat.com>
Date:   Tue Jul 8 18:11:53 2014 +0900

    Fix the race condition issue on updating caches. (#921706)

 FcDirCacheRescan.3 |   17 +++++++++++++++++
 fontconfig.spec    |    2 ++
 2 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/FcDirCacheRescan.3 b/FcDirCacheRescan.3
new file mode 100644
index 0000000..52cfe24
--- /dev/null
+++ b/FcDirCacheRescan.3
@@ -0,0 +1,17 @@
+.\" auto-generated by docbook2man-spec from docbook-utils package
+.TH "FcDirCacheRescan" "3" "04 7月 2014" "Fontconfig 2.11.1" ""
+.SH NAME
+FcDirCacheRescan \- Re-scan a directory cache
+.SH SYNOPSIS
+.nf
+\fB#include <fontconfig/fontconfig.h>
+.sp
+FcCache * FcDirCacheRescan (const FcChar8 *\fIdir\fB, FcConfig *\fIconfig\fB);
+.fi\fR
+.SH "DESCRIPTION"
+.PP
+Re-scan directories only at \fIdir\fR and update the cache.
+returns NULL if failed.
+.SH "SINCE"
+.PP
+version 2.11.1
diff --git a/fontconfig.spec b/fontconfig.spec
index 1bd3fdc..b568dbe 100644
--- a/fontconfig.spec
+++ b/fontconfig.spec
@@ -13,6 +13,7 @@ Group:		System Environment/Libraries
 Source:		http://fontconfig.org/release/%{name}-%{version}.tar.bz2
 URL:		http://fontconfig.org
 Source1:	25-no-bitmap-fedora.conf
+Source2:	FcDirCacheRescan.3
 
 # https://bugzilla.redhat.com/show_bug.cgi?id=140335
 Patch0:		fontconfig-sleep-less.patch
@@ -59,6 +60,7 @@ which is useful for developing applications that uses fontconfig.
 %setup -q
 %patch0 -p1 -b .sleep-less
 %patch1 -p1 -b .race
+cp %{SOURCE2} doc/
 
 %build
 # We don't want to rebuild the docs, but we want to install the included ones.


More information about the scm-commits mailing list