1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00
Files
guix/gnu/packages/patches/fontconfig-cache-ignore-mtime.patch
Maxim Cournoyer c5cff587eb gnu: fontconfig: Update to 2.16.0 and modernize.
* gnu/packages/fontutils.scm (fontconfig): Update to 2.16.0.
[propagated-inputs]: Remove labels.
[native-inputs]: Likewise.  Add autoconf-2.71, automake, gettext-minimal and
libtool.
[configure-flags]: Use gexps.
[phases]: Likewise.
(fontconfig-with-documentation): Streamline comment.
[arguments]: Use gexps.
[native-inputs]: Use modify-inputs.
[home-page]: Add missing trailing /.

Co-authored-by: Andreas Enge <andreas@enge.fr>
Change-Id: I8704eec8cef310c7b1122db7a65e612c8c13fbe2
2026-03-06 14:52:03 +01:00

16 lines
440 B
Diff

Pretend that stat's mtime is broken, so that the fontconfig cache does not
depend upon modification time to determine if a cache is stale.
diff --git a/src/fcstat.c b/src/fcstat.c
index 9b54e2b4..76d7780e 100644
--- a/src/fcstat.c
+++ b/src/fcstat.c
@@ -415,6 +415,7 @@ FcIsFsMmapSafe (int fd)
FcBool
FcIsFsMtimeBroken (const FcChar8 *dir)
{
+ return FcTrue;
int fd = FcOpen ((const char *) dir, O_RDONLY);
if (fd != -1)