From owner-freebsd-current@FreeBSD.ORG Tue Nov 15 23:03:53 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C6A1216A41F for ; Tue, 15 Nov 2005 23:03:53 +0000 (GMT) (envelope-from nb_root@videotron.ca) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 500FE43D72 for ; Tue, 15 Nov 2005 23:03:49 +0000 (GMT) (envelope-from nb_root@videotron.ca) Received: from clk01a ([66.130.198.54]) by VL-MO-MR003.ip.videotron.ca (Sun Java System Messaging Server 6.2-2.05 (built Apr 28 2005)) with ESMTP id <0IQ000BN4QQCC9R0@VL-MO-MR003.ip.videotron.ca> for freebsd-current@freebsd.org; Tue, 15 Nov 2005 18:03:48 -0500 (EST) Date: Tue, 15 Nov 2005 18:03:47 -0500 From: Nicolas Blais In-reply-to: <437A67F8.3070109@acidy.com> To: freebsd-current@freebsd.org Message-id: <200511151803.48167.nb_root@videotron.ca> MIME-version: 1.0 Content-type: multipart/signed; boundary=nextPart8997729.tgPtsUXYvy; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-transfer-encoding: 7bit References: <200511141702.45491.nb_root@videotron.ca> <20051115224212.GF1783@schweikhardt.net> <437A67F8.3070109@acidy.com> User-Agent: KMail/1.8.3 Cc: Steve Hodgson , Jens Schweikhardt Subject: Re: Using ccache for build{world, kernel} X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Nov 2005 23:03:53 -0000 --nextPart8997729.tgPtsUXYvy Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline > I agree that that is an option, and here is another. I'm not going to > suggest which is the better solution, that is probably up to the > maintainer. > > 1. Create a new file /usr/local/bin/ccache-world: > > #!/bin/sh > export CCACHE_NOHASH_SIZE_MTIME=3D1 > /usr/local/bin/ccache $@ > > 2. Change the instructions in the ccache port in line with my last > email, removing references to CCACHE_PATH and changing the PATH > variable. Edit /etc/make.conf: > > .if !defined(NOCCACHE) > .if ${.CURDIR:M/usr/src*} || ${.CURDIR:M/usr/obj*} > CC=3D/usr/local/bin/ccache-world cc > CXX=3D/usr/local/bin/ccache-world c++ > .else > CC=3D/usr/local/bin/ccache cc > CXX=3D/usr/local/bin/ccache c++ > .endif > .endif > > Though this does seem a rather nasty solution. But it doesn't require > users to change their habits to use ccache for kernel/world builds. > > Steve > > (this has been tested this time!) Tested and works as suggested! =2D-=20 =46reeBSD 7.0-CURRENT #0: Tue Nov 15 06:21:56 EST 2005 =20 root@clk01a:/usr/obj/usr/src/sys/CLK01A=20 PGP? : http://www.clkroot.net/security/nb_root.asc --nextPart8997729.tgPtsUXYvy Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDemlUz38ton5LGeIRAgLnAKCrJx9L3PKNWw+91f4sYlaZ6cBFuACfUxal llefSH5QogSudcY7r/3CXgo= =h2Um -----END PGP SIGNATURE----- --nextPart8997729.tgPtsUXYvy--