Date: Sun, 05 Aug 2012 22:18:59 -0500 From: Bryan Drewery <bdrewery@freebsd.org> To: Eitan Adler <lists@eitanadler.com>, RW <rwmaillists@googlemail.com> Cc: ports@freebsd.org Subject: Re: [CFT] [bsd.port.mk] ports ccache build support Message-ID: <501F37A3.9050408@FreeBSD.org> In-Reply-To: <CAF6rxgm2vpaAvUup=TOa0ap6hfffDu9bARugs73RX%2BUMyx6wHA@mail.gmail.com> References: <501C7572.3020707@FreeBSD.org> <20120804141607.55249f62@gumby.homeunix.com> <501D34DF.2070205@FreeBSD.org> <20120804232102.201cde8e@gumby.homeunix.com> <CAF6rxgm2vpaAvUup=TOa0ap6hfffDu9bARugs73RX%2BUMyx6wHA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 8/4/2012 7:38 PM, Eitan Adler wrote: > On 4 August 2012 15:21, RW <rwmaillists@googlemail.com> wrote: >> On Sat, 04 Aug 2012 09:42:39 -0500 >> Bryan Drewery wrote: > >>>> Having a default ccache directory in the makefile that's different >>>> from the default documented in the ccache man page seems needlessly >>>> confusing to me. > > +1 for /var/cache > >> And since large root file-systems seem to be increasingly >> popular, /root/.ccache may seem reasonable, and people may run cache -M >> on that. > > remember that its possible to build as a non-root user, but install as > root, or similar. Using $HOME for any aspect of the build isn't a > good idea. > > I can see both arguments here. non-root building suggests $HOME/.ccache. This has the benefit of having ccache(1) "just work" when configuring. A downside of possibly duplicating the cache for some users. pkgng is storing cache files in /var/cache/pkg. This is not listed in hier(7) yet, but probably should be added. Given that, /var/cache/ccache makes sense as well. I still am concerned that adding a default 1gb sized cache into /var is not a good idea. Another downside is having to define CCACHE_DIR to run ccache(1) I actually had used /var/cache in my initial patch, but changed to /usr/obj since /var can be so small. On my own systems I have a mess of symlinks to fix my own indecision on the matter. /root/.ccache -> /var/cache/ccache -> /usr/ccache I'm starting to lean towards sticking to the default of $HOME/.ccache as well as it may be more "safe" and less confusing to use with ccache(1). The user can always override. -- Regards, Bryan Drewery bdrewery@freenode/EFNet
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?501F37A3.9050408>