GfA-buildroot_fontconfig_mtime_always_ok.patch 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. diff --git a/package/fontconfig/001-mtime-always-ok.patch b/package/fontconfig/001-mtime-always-ok.patch
  2. new file mode 100644
  3. index 0000000..671c1f1
  4. --- /dev/null
  5. +++ b/package/fontconfig/001-mtime-always-ok.patch
  6. @@ -0,0 +1,12 @@
  7. +diff -Naurp a/src/fccache.c b/src/fccache.c
  8. +--- a/src/fccache.c 2016-08-05 07:35:05.000000000 +0200
  9. ++++ b/src/fccache.c 2017-11-26 00:51:18.800927077 +0100
  10. +@@ -585,7 +585,7 @@ FcCacheTimeValid (FcConfig *config, FcCa
  11. + FcCacheDir (cache), cache->checksum, (int) dir_stat->st_mtime);
  12. + #endif
  13. +
  14. +- return cache->checksum == (int) dir_stat->st_mtime && fnano;
  15. ++ return FcTrue;
  16. + }
  17. +
  18. + static FcBool
  19. diff --git a/package/fontconfig/fontconfig.mk b/package/fontconfig/fontconfig.mk
  20. index 93f2a15..a470d1f 100644
  21. --- a/package/fontconfig/fontconfig.mk
  22. +++ b/package/fontconfig/fontconfig.mk
  23. @@ -15,7 +15,7 @@ FONTCONFIG_LICENSE_FILES = COPYING
  24. FONTCONFIG_CONF_OPTS = \
  25. --with-arch=$(GNU_TARGET_NAME) \
  26. - --with-cache-dir=/var/cache/fontconfig \
  27. + --with-cache-dir=/fontconfig_cache \
  28. --disable-docs
  29. HOST_FONTCONFIG_CONF_OPTS = \