From owner-freebsd-ports@FreeBSD.ORG Wed Jun 18 17:24:00 2008 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 CB21D106566B; Wed, 18 Jun 2008 17:24:00 +0000 (UTC) (envelope-from kozlov@ravenloft.kiev.ua) Received: from istc.kiev.ua (wolf.istc.kiev.ua [193.108.236.1]) by mx1.freebsd.org (Postfix) with ESMTP id 7A7278FC1A; Wed, 18 Jun 2008 17:24:00 +0000 (UTC) (envelope-from kozlov@ravenloft.kiev.ua) Received: from [91.123.146.100] (helo=ravenloft.kiev.ua) by istc.kiev.ua with esmtp (Exim 4.52) id 1K91Ny-0003Bn-V6; Wed, 18 Jun 2008 20:23:57 +0300 Received: from kozlov by ravenloft.kiev.ua with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1K91Nw-000Bod-4a; Wed, 18 Jun 2008 20:23:52 +0300 Date: Wed, 18 Jun 2008 20:23:52 +0300 From: Alex Kozlov To: Alex Dupre , ports@freebsd.org, Edwin Groothuis , spam@rm-rf.kiev.ua Message-ID: <20080618172352.GA45188@ravenloft.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: Alex Kozlov X-Spam-Score: 0.0 (/) X-Spam-Report: Content analysis detailz: (0.0 points, 10.0 required) * 0.0 UPPERCASE_25_50 message body is 25-50% uppercase Cc: 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 17:24:00 -0000 On Wed, Jun 18, 2008 at 06:44:36PM +0200, Alex Dupre wrote: > Alex Kozlov wrote: > > Problem in make buildworld case is not compiler name. > hash_file() doesn't hash the file name :-) Yes, sorry. s/name/identity/. In other world this check to make sure that obj was created the same compiler. > You are lucky that CCACHE_HASH_COMPILER is checked before > CCACHE_NOHASH_SIZE_MTIME. This is not luck. To think more about this, CCACHE_HASH_COMPILER and CCACHE_NOHASH_SIZE_MTIME is two method for the same. hash size and mtime is lightweight and CCACHE_HASH_COMPILER is more heavy. But in case of buildworld CCACHE_HASH_COMPILER is still not necessary, CCACHE_NOHASH_SIZE_MTIME is enough. -- Adios