From c370b0ca48682df6dcecfb31d58a7a9bf2c5f639 Mon Sep 17 00:00:00 2001 From: Douglas Teles Date: Tue, 23 Jun 2026 15:52:38 -0300 Subject: [PATCH] FHS F2.2: fontconfig cache -> /var/cache/fontconfig Fontconfig's cache directory is baked into the binary at configure time. Flip --with-cache-dir from /storage/.cache/fontconfig to the Arch-standard /var/cache/fontconfig and install a bridge symlink pointing back to the storage overlay so the cache survives reboots. Same bridge pattern as the systemd /etc redirects and the F2.1 mesa shader cache: surface looks FHS, substrate stays on /storage. Co-Authored-By: Claude Opus 4.7 --- packages/x11/other/fontconfig/package.mk | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/x11/other/fontconfig/package.mk b/packages/x11/other/fontconfig/package.mk index 44a1631abd..f1619cddfe 100644 --- a/packages/x11/other/fontconfig/package.mk +++ b/packages/x11/other/fontconfig/package.mk @@ -13,7 +13,7 @@ PKG_LONGDESC="Fontconfig is a library for font customization and configuration." PKG_TOOLCHAIN="configure" PKG_CONFIGURE_OPTS_TARGET="--with-arch=${TARGET_ARCH} \ - --with-cache-dir=/storage/.cache/fontconfig \ + --with-cache-dir=/var/cache/fontconfig \ --with-default-fonts=/usr/share/fonts \ --without-add-fonts \ --disable-dependency-tracking \ @@ -34,4 +34,11 @@ post_configure_target() { post_makeinstall_target() { rm -rf ${INSTALL}/usr/bin + + # FHS bridge: cache dir is baked in at configure (/var/cache/fontconfig), + # but the underlying storage on ArchR lives on the rw overlay. The + # symlink lets fontconfig write to the Arch-standard path while data + # persists under /storage/.cache/fontconfig across reboots. + mkdir -p ${INSTALL}/var/cache + ln -sf /storage/.cache/fontconfig ${INSTALL}/var/cache/fontconfig }