<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><blockquote type="cite" class="">On 2020-12-11-F, at 13:57, Clemens Lang <<a href="mailto:cal@macports.org" class="">cal@macports.org</a>> wrote:<br class=""><div><br class="Apple-interchange-newline"><div class=""><div class=""><blockquote type="cite" class="">On Fri, Dec 11, 2020 at 01:20:02PM -0500, Christopher Nielsen wrote:<br class=""></blockquote></div></div></div></blockquote><blockquote type="cite" class=""></blockquote><blockquote type="cite" class=""><blockquote type="cite" class=""><br class=""></blockquote></blockquote><blockquote type="cite" class=""><div><div class=""><div class=""><blockquote type="cite" class="">I did some quick digging through the MacPorts TCL files, and didn’t see support for such an override.<br class=""><br class="">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.<br class=""><br class="">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.<br class=""></blockquote><br class="">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.<br class=""></div></div></div></blockquote><div><div class=""><div class=""><br class=""></div></div><div class="">This is my initial proposal, pending further review and discussion. Simple and low-risk, without having to resort to any workarounds:</div><div class=""><br class=""></div><div class=""><a href="https://github.com/mascguy/macports-base/commit/c33b753dd1184f41a9b03b7e733f495e1bc883a1" class="">https://github.com/mascguy/macports-base/commit/c33b753dd1184f41a9b03b7e733f495e1bc883a1</a></div><div class=""><br class=""></div></div></body></html>