Poudriere vs ccache

From: Roger Marquis <marquis_at_roble.com>
Date: Wed, 04 Sep 2024 02:03:57 UTC
Am seeing a CCACHE error in Poudriere since moving to a new disk
(permissions are the same):

   ccache: error: Failed to create temporary file for /root/.ccache/tmp/opt.stdout: Permission denied

Now you'd think having CCACHE_DIR=/var/cache/ccache in make.conf and
poudriere.conf would address this but it does not.  What I also have is:

   etc/make.conf:CCACHE_BUILD=yes
   etc/make.conf:CCACHE_DIR=/var/cache/ccache
   etc/make.conf:SCCACHE_DIR=/var/cache/ccache
   etc/make.conf:OVERLAYS+=/var/cache/ccache/overlay
   etc/make.conf:CCACHE_SIZE="50.0G"
   poudriere.conf:CCACHE_DIR=/var/cache/ccache
   poudriere.conf:CCACHE_DIR_NON_ROOT_SAFE=yes
   poudriere.conf:ALLOW_MAKE_JOBS_PACKAGES="pkg ccache py*"
   /var/cache/ccache/ccache.conf:cache_dir = /var/cache/ccache
   /var/cache/ccache/ccache.conf:base_dir = /var/cache/ccache
   /var/cache/ccache/ccache.conf:hash_dir = false
   /var/cache/ccache/ccache.conf:max_size = 50.0G

Probably not all of these settings are necessary but then there is
conflicting info on various websites.

Can anyone see what might be breaking ccache here or recommend
additional debugging?

Roger Marquis