From owner-freebsd-questions@FreeBSD.ORG Thu Apr 29 21:58:48 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 644F2106564A for ; Thu, 29 Apr 2010 21:58:48 +0000 (UTC) (envelope-from cwhiteh@onetel.com) Received: from april.london.02.net (april.london.02.net [87.194.255.143]) by mx1.freebsd.org (Postfix) with ESMTP id 02FF18FC0C for ; Thu, 29 Apr 2010 21:58:47 +0000 (UTC) Received: from eco.config (93.97.24.219) by april.london.02.net (8.5.016.1) id 4B79C26301919F38 for freebsd-questions@freebsd.org; Thu, 29 Apr 2010 22:58:37 +0100 Message-ID: <4BDA010D.2070001@onetel.com> Date: Thu, 29 Apr 2010 22:58:37 +0100 From: Chris Whitehouse User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: User Questions Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: 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: Thu, 29 Apr 2010 21:58:48 -0000 Hi I have just installed devel/ccache. I set up /etc/make.conf , /etc/csh.cshrc and /etc/profile according to /usr/local/share/doc/ccache/ccache-howto-freebsd.txt to include /usr/local/libexec/ccache in roots path but ccache doesn't get used. I think it is because roots path is set absolutely in .cshrc so the setting is /etc/csh.cshrc gets overridden. In a terminal if I set roots path to include /usr/local/libexec/ccache ccache works. I tested by timing make(1) in a port but I can see it is working anyway because /root/.ccache gets created and populated. 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.? Actually I think a better solution would be to set CCACHE_PATH to /usr/local/libexec/ccache to avoid the shell looking there first for _every_ command invocation, but I'm not sure where is the best place to set it. .cshrc and/or .profile? thanks Chris