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]