CCache: Segregating cache directories per port
Christopher Nielsen
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:
https://github.com/mascguy/macports-base/commit/c33b753dd1184f41a9b03b7e733f495e1bc883a1 <https://github.com/mascguy/macports-base/commit/c33b753dd1184f41a9b03b7e733f495e1bc883a1>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20201211/d1db0377/attachment.htm>
More information about the macports-dev
mailing list