> On Dec 17, 2020, at 4:45, Ryan Schmidt wrote: > > On Dec 11, 2020, at 12:20, Christopher Nielsen wrote: > >> Is it possible to easily override the ccache directory via command-line, with the goal of maintaining separate caches per port? >> >> 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. >> >> Thoughts? > >MacPorts was not designed with the intention of managing multiple ccache directories. It was intended for there to be a single ccache directory that is global to all ports. > > This topic has been brought up before on the list: https://lists.macports.org/pipermail/macports-dev/2019-September/041178.html [1] > > I've given some responses there in subsequent list messages.
After reflecting on this for the past week -- including numerous iterative builds, of various related ports -- I'm now a believer in a unified cache. My solution is to simply store it on a separate volume, eliminating space concerns. (And in the unlikely event that segregation is ever necessary, changing the path via ~/.macports/macports.conf works just fine.) Thanks for all of the responses, and hope you all have a happy and safe holiday! Cheers, -Chris [2] Links: ------ [1] https://lists.macports.org/pipermail/macports-dev/2019-September/041178.html%3Cbr [2] https://lists.macports.org/pipermail/macports-dev/2019-September/041178.html%3Cbr
