From owner-freebsd-ports@FreeBSD.ORG Wed Jun 18 16:33:47 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 564B2106566C for ; Wed, 18 Jun 2008 16:33:47 +0000 (UTC) (envelope-from fbsd06+XA=646d3203@mlists.homeunix.com) Received: from fallback-in1.mxes.net (fallback-out1.mxes.net [216.86.168.190]) by mx1.freebsd.org (Postfix) with ESMTP id 20A848FC14 for ; Wed, 18 Jun 2008 16:33:47 +0000 (UTC) (envelope-from fbsd06+XA=646d3203@mlists.homeunix.com) Received: from mxout-03.mxes.net (mxout-03.mxes.net [216.86.168.178]) by fallback-in1.mxes.net (Postfix) with ESMTP id 855E31645CD for ; Wed, 18 Jun 2008 12:17:02 -0400 (EDT) Received: from gumby.homeunix.com. (unknown [87.81.140.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id 0FA9723E543 for ; Wed, 18 Jun 2008 12:17:00 -0400 (EDT) Date: Wed, 18 Jun 2008 17:16:57 +0100 From: RW To: freebsd-ports@freebsd.org Message-ID: <20080618171657.32d0e3da@gumby.homeunix.com.> In-Reply-To: <20080618152614.GA37931@ravenloft.kiev.ua> References: <20080618152614.GA37931@ravenloft.kiev.ua> X-Mailer: Claws Mail 3.4.0 (GTK+ 2.12.10; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Standardize NO_CCACHE flag and ccache definitions 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: Wed, 18 Jun 2008 16:33:47 -0000 On Wed, 18 Jun 2008 18:26:14 +0300 Alex Kozlov wrote: > On Wed, Jun 18, 2008 at 05:05:42PM +0200, Alex Dupre wrote: > > Alex Kozlov ha scritto: > > > Don't use it for building ports. Actualy it's not necessary even > > > for make buildworld. > > > > It's necessary if you don't want to use ccache only for 1% of the > > buildworld process. > I use CCACHE_NOHASH_SIZE_MTIME: > > if (getenv("CCACHE_HASH_COMPILER")) { > hash_file(args->argv[0]); > } else if (!getenv("CCACHE_NOHASH_SIZE_MTIME")) { > hash_int(st.st_size); > hash_int(st.st_mtime); > } > I'm not sure what your point is here. CCACHE_HASH_COMPILER is by far the more conservative of the two. I use CCACHE_HASH_COMPILER all the time, it hasn't caused any problems. The cost of hashing the compiler driver is negilible. If you don't set either then each time you rebuild world you invalidate most of your cache.