Talk:Ccache
Before creating a discussion or leaving a comment, please read about using talk pages. To create a new discussion, click here. Comments on an existing discussion should be signed using
~~~~
:
A comment [[User:Larry|Larry]] 13:52, 13 May 2024 (UTC) : A reply [[User:Sally|Sally]] 01:31, 14 February 2025 (UTC) :: Your reply ~~~~
Create /etc/ccache.conf
Commands like ccache -s need to have the var cache_dir defined. In the example provided, it defines the variable on the command line (CCACHE_DIR=/var/cache/ccache ccache -s). Nevertheless, I believe this variable should be defined globally (in /etc/ccache.conf), so there is no need to append "CACHE_DIR=/var/cache/ccache" each time we use the command. Please let me know what do you think about this. Thanks. --Mimosinnet (talk) 12:38, 20 September 2022 (UTC)
That doesn't work for me:
find /root -iname "ccache.conf" # empty result pi400 ~ #
unset CCACHE_DIR cat /etc/ccache.conf CCACHE_DIR = /var/cache/ccache ccache -sv Summary: Cache directory: /root/.cache/ccache Primary config: /root/.config/ccache/ccache.conf Secondary config: /etc/ccache.conf
... --Jens3 (talk) 14:02, 20 September 2022 (UTC)
Paths need to be standardized
Tip: To get this fixed sooner, use {{Proposal}}.
This discussion has been moved here from the Distcc talk page.
Shouldn't both this and the ccache wiki pages use the default ccache path /var/tmp/ccache rather than /var/cache/ccache?
See the Gentoo specific directories article. Os360 (talk) 07:45, 6 January 2021 (UTC)
- /var/tmp/ccache is the ccache user's home directory. Is that necessarily the directory where cached files are stored?
- /var/tmp/ is often a tmpfs, so it gets cleared on a reboot. Persisting the cache across reboots makes more sense to me.
- — Waldo Lemmer 04:11, 23 May 2024 (UTC)
Path to ccache.conf
Regarding Special:Diff/1339059, is this change right? Does ccache, when invoked by Portage, look at /etc/ccache.conf when CCACHE_DIR is set to /var/cache/ccache by /etc/portage/make.conf. cc User:Ingenarel.
--Sam (talk) 23:36, 10 February 2025 (UTC)
- Ah, my own Special:Diff/1178472 answers that. All fine then. --Sam (talk) 23:43, 10 February 2025 (UTC)