Talk:Ccache

From Gentoo Wiki
Jump to:navigation Jump to:search
Note
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]] 11:32, 5 November 2024 (UTC)
:: Your reply ~~~~

Create /etc/ccache.conf

Talk status
This discussion is still ongoing.

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

Talk status
This discussion needs help.
Tip: To get this fixed sooner, use {{Proposal}}.
Note
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)