From owner-freebsd-questions@FreeBSD.ORG Fri Apr 30 00:34:18 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CF7C21065672 for ; Fri, 30 Apr 2010 00:34:18 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.25]) by mx1.freebsd.org (Postfix) with ESMTP id 5BA648FC12 for ; Fri, 30 Apr 2010 00:34:18 +0000 (UTC) Received: by ey-out-2122.google.com with SMTP id d26so1041897eyd.9 for ; Thu, 29 Apr 2010 17:34:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=L690iTnYyeX+QuuL87LIb6lMjQA7coJVAhYCKi78dLg=; b=hP+LQFiUR2g/tbZsrDUCpsX7lvkN+s+jUeqOd5j/CH86P5czQmR1FXJKvvYdDw+/6U XOtpSm6lyZtTpuklPck5c7p42uVRAxgYN7k0kZPSEt0ApiPWUMVZTZUDtzCyL2sSsrXM S8UHRAA60avlHXFV3QL7eAeCiILWT9bs7k1qQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=gd4Cv1ea2IMXM22Dp8UZwn2kPIy2/e5ROLiyDMIJ05xQt67mANvIW4MC8VlBUopkpI ljngz3Mtb/M+8xstst+Dn98Pmzg6zKOTIOthKU6vgCL0HnCOYFnCJYY7Q55RUk4uL4dg t1AWuhFsMCkClSH8t0vWB0x/sSqGPbJDenfA0= Received: by 10.213.46.208 with SMTP id k16mr3839949ebf.8.1272587652273; Thu, 29 Apr 2010 17:34:12 -0700 (PDT) Received: from gumby.homeunix.com (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by mx.google.com with ESMTPS id 13sm837427ewy.1.2010.04.29.17.34.05 (version=SSLv3 cipher=RC4-MD5); Thu, 29 Apr 2010 17:34:11 -0700 (PDT) Date: Fri, 30 Apr 2010 01:33:44 +0100 From: RW To: freebsd-questions@freebsd.org Message-ID: <20100430013344.781be31c@gumby.homeunix.com> In-Reply-To: <4BDA010D.2070001@onetel.com> References: <4BDA010D.2070001@onetel.com> X-Mailer: Claws Mail 3.7.5 (GTK+ 2.18.7; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: setting ccache path X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Apr 2010 00:34:18 -0000 On Thu, 29 Apr 2010 22:58:37 +0100 Chris Whitehouse wrote: I tested by timing > make(1) in a port but I can see it is working anyway > because /root/.ccache gets created and populated. You probably want to move that unless /root/ is on a big partition. > Am I failing to follow ccache-howto-freebsd.txt or is it telling me > something wrong and I should be adding /usr/local/libexec/ccache to > roots path in .cshrc and .profile.? Whatever works. I seem to have commented-out the path in .cshrc. > Actually I think a better solution would be to set CCACHE_PATH to > /usr/local/libexec/ccache IIRC CCACHE_PATH tells ccache where to look for compilers. > to avoid the shell looking there first for _every_ command > invocation, csh wouldn't anyway, that's why we have to type rehash BTW I would suggest you also set CCACHE_HASH_COMPILER. It's a poorly documented FreeBSD extension intended to make world builds more cachable. I prefer to set it unconditionally. If you don't then building world, even a point release, invalidates the cache of port builds.