From owner-freebsd-ports@FreeBSD.ORG Mon Aug 6 03:19:18 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B6A87106566C for ; Mon, 6 Aug 2012 03:19:18 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 794E28FC0C for ; Mon, 6 Aug 2012 03:19:18 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q763JIZg039422 for ; Mon, 6 Aug 2012 03:19:18 GMT (envelope-from bdrewery@freefall.freebsd.org) Received: (from bdrewery@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q763JInM039419 for ports@freebsd.org; Mon, 6 Aug 2012 03:19:18 GMT (envelope-from bdrewery) Received: (qmail 99539 invoked from network); 5 Aug 2012 22:19:15 -0500 Received: from unknown (HELO ?10.10.0.115?) (freebsd@shatow.net@10.10.0.115) by sweb.xzibition.com with ESMTPA; 5 Aug 2012 22:19:15 -0500 Message-ID: <501F37A3.9050408@FreeBSD.org> Date: Sun, 05 Aug 2012 22:18:59 -0500 From: Bryan Drewery Organization: FreeBSD User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: Eitan Adler , RW References: <501C7572.3020707@FreeBSD.org> <20120804141607.55249f62@gumby.homeunix.com> <501D34DF.2070205@FreeBSD.org> <20120804232102.201cde8e@gumby.homeunix.com> In-Reply-To: X-Enigmail-Version: 1.4.3 OpenPGP: id=3C9B0CF9; url=http://www.shatow.net/bryan/bryan.asc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org Subject: Re: [CFT] [bsd.port.mk] ports ccache build support X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Aug 2012 03:19:18 -0000 On 8/4/2012 7:38 PM, Eitan Adler wrote: > On 4 August 2012 15:21, RW 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