From owner-freebsd-ports@FreeBSD.ORG Mon Aug 6 02:57:58 2012 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id 6A3E71065676; Mon, 6 Aug 2012 02:57:58 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from opti.dougb.net (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id F3A06155149; Mon, 6 Aug 2012 02:56:59 +0000 (UTC) Message-ID: <501F327A.5010205@FreeBSD.org> Date: Sun, 05 Aug 2012 19:56:58 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:14.0) Gecko/20120728 Thunderbird/14.0 MIME-Version: 1.0 To: Jan Beich References: <501C7572.3020707@FreeBSD.org> <1SyDM4-000Cp7-Ra@internal.tormail.org> In-Reply-To: <1SyDM4-000Cp7-Ra@internal.tormail.org> X-Enigmail-Version: 1.4.2 OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-ports@FreeBSD.org, Bryan Drewery 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 02:57:58 -0000 On 08/05/2012 19:47, Jan Beich wrote: > Bryan Drewery writes: > >> The cache directory CCACHE_DIR defaults to /usr/obj/ccache > > Why not ${.OBJDIR}/ccache? This avoids one big port taking away all > allocated space for itself unless --max-size is raised. > > Also, I have /usr/obj -> /nonexistent symlink. Anything that doesn't > respect MAKEOBJDIRPREFIX is bogus. Bryan's proposal is for ports. /usr/obj is for things in the base. The equivalent to MAKEOBJDIRPREFIX in ports is WRKDIRPREFIX, but IMO the ccache cache should be independent of either. Personally I don't see why we would want to change the defaults here at all. There are 2 possibilities ... either the user has customized the location, in which case we shouldn't mess with it. Or, they haven't, in which case if the regular default for the port is good, it should be used. If it isn't, it should be fixed for all users. Doug -- I am only one, but I am one. I cannot do everything, but I can do something. And I will not let what I cannot do interfere with what I can do. -- Edward Everett Hale, (1822 - 1909)