mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-07-12 18:19:42 -07:00
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user