CCache: Segregating cache directories per port

Clemens Lang cal at macports.org
Fri Dec 11 18:57:37 UTC 2020


Hi Christopher,

On Fri, Dec 11, 2020 at 01:20:02PM -0500, Christopher Nielsen wrote:
> I did some quick digging through the MacPorts TCL files, and didn’t
> see support for such an override.
> 
> My current solution — workable, though not ideal — is to update
> ‘ccache_dir’ in ~/.macports/macports.conf. That’s easily doable via a
> ‘port’ wrapper script.
> 
> But assuming I didn’t miss anything, would folks be open to having the
> ability to specify ‘ccache_dir’ from the port command-line? If so,
> I’ll contribute the changes.

What about this suggestion: Turn the current ccache_dir option into a
format string input, and %s will be replaced with the name of the port
you're building. No change for everybody that leaves this setting at its
default, likely no change for everybody who did change that setting,
because it's unlikely that anybody did use percent signs, and your
preferred outcome for you without the need to specify the directory on
the command line.

-- 
Clemens


More information about the macports-dev mailing list