CCache: Segregating cache directories per port
mascguy at rochester.rr.com
Fri Dec 11 19:15:48 UTC 2020
> On 2020-12-11-F, at 13:57, Clemens Lang <cal at macports.org> wrote:
>> 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.
This is my initial proposal, pending further review and discussion. Simple and low-risk, without having to resort to any workarounds:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the macports-dev