From 17243e2e88e669ff44d26d908f44df4bd9505f8c Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Tue, 6 Aug 2013 00:51:27 +0200 Subject: [PATCH] fontconfig: use /storage/.cache/fontconfig as persistent font cache dir, create fontcache only on first boot Signed-off-by: Stephan Raue --- packages/x11/other/fontconfig/package.mk | 1 + packages/x11/other/fontconfig/system.d/fc-cache.service | 2 ++ 2 files changed, 3 insertions(+) diff --git a/packages/x11/other/fontconfig/package.mk b/packages/x11/other/fontconfig/package.mk index eb5af78cc7..ecbf57eaf6 100644 --- a/packages/x11/other/fontconfig/package.mk +++ b/packages/x11/other/fontconfig/package.mk @@ -36,6 +36,7 @@ PKG_IS_ADDON="no" PKG_AUTORECONF="yes" PKG_CONFIGURE_OPTS_TARGET="--with-arch=$TARGET_ARCH \ + --with-cache-dir=/storage/.cache/fontconfig \ --with-default-fonts=/usr/share/fonts/liberation \ --without-add-fonts \ --disable-dependency-tracking \ diff --git a/packages/x11/other/fontconfig/system.d/fc-cache.service b/packages/x11/other/fontconfig/system.d/fc-cache.service index b9e4e482bd..7e36cf249d 100644 --- a/packages/x11/other/fontconfig/system.d/fc-cache.service +++ b/packages/x11/other/fontconfig/system.d/fc-cache.service @@ -1,5 +1,7 @@ [Unit] Description=Fontconfig caching +ConditionPathExists=|!/storage/.cache/fontconfig/CACHEDIR.TAG +After=local-fs.target Before=graphical.target [Service]