mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-07-12 18:19:42 -07:00
a5b1862117
First migration of the Class C cache work: the Mesa shader cache moves from the LibreELEC-style /storage/.cache/mesa_shader_cache to the Arch-standard /var/cache/mesa. Implementation follows the bridge-symlink pattern systemd already uses for /etc/*: the archr meta-package creates /var/cache/mesa as a build-time symlink into /storage/.cache/mesa_shader_cache. Mesa, runemu.sh and any inspector see the FHS path; writes still land on the storage overlay so the cache survives reboots. archr/package.mk: mkdir /var/cache, ln -sf the symlink. quirks/profile.d/041-panfrost: MESA_SHADER_CACHE_DIR=/var/cache/mesa. Comment explains the bridge so future readers do not assume tmpfs. runemu.sh: create the cache dir through /var/cache/mesa instead of the legacy /storage path. Comment updated to mention the symlink. systemd/tmpfiles.d/z_01_archr.conf is intentionally left targeting the backing path /storage/.cache/mesa_shader_cache: it is internal plumbing that must guarantee the real overlay dir exists; /var/cache/mesa is the surface, /storage/.cache/mesa_shader_cache stays the substrate. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>