From owner-freebsd-ports@FreeBSD.ORG Wed Jun 18 13:26:40 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 DDD7C106566C; Wed, 18 Jun 2008 13:26:40 +0000 (UTC) (envelope-from edwin@mavetju.org) Received: from mail5out.barnet.com.au (mail5.barnet.com.au [202.83.178.78]) by mx1.freebsd.org (Postfix) with ESMTP id 9650C8FC12; Wed, 18 Jun 2008 13:26:40 +0000 (UTC) (envelope-from edwin@mavetju.org) Received: by mail5out.barnet.com.au (Postfix, from userid 1001) id 04E142218950; Wed, 18 Jun 2008 23:26:39 +1000 (EST) X-Viruscan-Id: <48590D0F0000E95B12F147@BarNet> Received: from mail5auth.barnet.com.au (mail5.barnet.com.au [202.83.178.78]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mail5auth.barnet.com.au", Issuer "*.barnet.com.au" (verified OK)) by mail5.barnet.com.au (Postfix) with ESMTP id BBB1321B3AA3; Wed, 18 Jun 2008 23:26:39 +1000 (EST) Received: from k7.mavetju (unknown [10.10.26.6]) by mail5auth.barnet.com.au (Postfix) with ESMTP id 682EB221882A; Wed, 18 Jun 2008 23:26:39 +1000 (EST) Received: by k7.mavetju (Postfix, from userid 1001) id 488AA4E2; Wed, 18 Jun 2008 23:26:40 +1000 (EST) Date: Wed, 18 Jun 2008 23:26:40 +1000 From: Edwin Groothuis To: Alex Dupre Message-ID: <20080618132640.GE90685@k7.mavetju> References: <20080618125154.GC90685@k7.mavetju> <4859098F.9000205@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4859098F.9000205@FreeBSD.org> User-Agent: Mutt/1.4.2.3i Cc: ports@freebsd.org 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 13:26:41 -0000 On Wed, Jun 18, 2008 at 03:11:43PM +0200, Alex Dupre wrote: > Edwin Groothuis ha scritto: > >Unfortunately /etc/make.conf is read before the ports Makefile is > >read, so this in /etc/make.conf isn't going to work anymore: > > > > .if !defined(NO_CCACHE) > > CC=/usr/local/libexec/ccache/cc > > CXX=/usr/local/libexec/ccache/c++ > > CPP=/usr/local/libexec/ccache/cpp > > CCACHE_DIR=/usr/local/ccache > > .endif > > This is not the recommended way to use ccache. Look at the port's > documentation. True. It's also not the ones I use on the jails: [/usr/ports/devel/cmake] root@build3>cat /etc/make.conf [/usr/ports/devel/ccache] root@build3>cat /etc/make.conf WRKDIRPREFIX= /var/ports DISTDIR= /var/ports/distfiles PACKAGES= /var/ports/packages PACKAGE_BUILDING= yes FTP_PASSIVE_MODE= yes .if !defined(NOCCACHE) CC=/usr/local/libexec/ccache/world-cc CXX=/usr/local/libexec/ccache/world-c++ .endif # added by use.perl 2008-06-18 13:13:07 PERL_VER=5.8.8 PERL_VERSION=5.8.8 [/usr/ports/devel/cmake] root@build3>export PATH=/usr/local/libexec/ccache:$PATH [/usr/ports/devel/cmake] root@build3>export CCACHE_PATH=/usr/bin:/usr/local/bin [/usr/ports/devel/cmake] root@build3>make clean build ===> Cleaning for cmake-2.6.0 ===> Extracting for cmake-2.6.0 [...] -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/local/libexec/ccache/world-cc -- Check for working C compiler: /usr/local/libexec/ccache/world-cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/local/libexec/ccache/world-c++ -- Check for working CXX compiler: /usr/local/libexec/ccache/world-c++ -- works [...] [ 4%] Building CXX object Source/kwsys/CMakeFiles/cmsys.dir/SystemInformation.o Linking CXX static library libcmsys.a Error running link command: No such file or directory *** Error code 2 Edwin -- Edwin Groothuis | Personal website: http://www.mavetju.org edwin@mavetju.org | Weblog: http://www.mavetju.org/weblog/