From owner-freebsd-ports@FreeBSD.ORG Fri Nov 25 20:47:42 2005 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D8AF816A41F for ; Fri, 25 Nov 2005 20:47:42 +0000 (GMT) (envelope-from dantavious@comcast.net) Received: from sccrmhc11.comcast.net (sccrmhc11.comcast.net [204.127.202.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id B126D43D79 for ; Fri, 25 Nov 2005 20:47:30 +0000 (GMT) (envelope-from dantavious@comcast.net) Received: from [192.168.1.109] (pcp0011002249pcs.longhl01.md.comcast.net[68.55.192.50]) by comcast.net (sccrmhc11) with ESMTP id <20051125204712011000bfffe>; Fri, 25 Nov 2005 20:47:26 +0000 From: Derrick Edwards To: freebsd-ports@freebsd.org Date: Fri, 25 Nov 2005 15:47:39 -0500 User-Agent: KMail/1.8.3 References: <200511210625.16973.ringworm01@gmail.com> <200511251028.29199.freebsd.nospam@mekanix.dk> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511251547.40950.dantavious@comcast.net> Cc: Bjarne Wichmann Petersen , michael johnson Subject: Re: FreeBSD ccache port is wonderfiul! 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: Fri, 25 Nov 2005 20:47:43 -0000 On Friday 25 November 2005 04:34, michael johnson wrote: All, I followed the instructions from ccache-howto-freebsd.txt.in and I cant seem to get it to work. When compiling ccache does not invoke. I included the following info for trouble-shooting purposes. Any help would be greatly appreciated. v/r Derrick snip from /etc/make.conf .if !defined(NOCCACHE) .if ${.CURDIR:M/usr/src*} CC=/usr/local/libexec/ccache/cc CXX=/usr/local/libexec/ccache/c++ .else CC=cc CXX=c++ .endif .else CC=/usr/bin/cc CXX=/usr/bin/c++ .endif #NOCCACHE=yes root@focus# more /etc/profile # $FreeBSD: src/etc/profile,v 1.14 2004/06/06 11:46:27 schweikh Exp $ # # System-wide .profile file for sh(1). # # Uncomment this to give you the default 4.2 behavior, where disk # information is shown in K-Blocks # BLOCKSIZE=K; export BLOCKSIZE # # For the setting of languages and character sets please see # login.conf(5) and in particular the charset and lang options. # For full locales list check /usr/share/locale/* # You should also read the setlocale(3) man page for information # on how to achieve more precise control of locale settings. # # Read system messages # msgs -f # Allow terminal messages # mesg y export PATH=/usr/local/libexec/ccache/:$PATH export CCACHE_PATH=/usr/bin:/usr/local/bin export CCACHE_DIR=/usr/.ccache root@focus# more csh.cshrc # $FreeBSD: src/etc/csh.cshrc,v 1.3 1999/08/27 23:23:40 peter Exp $ # # System-wide .cshrc file for csh(1). setenv PATH /usr/local/libexec/ccache/:$PATH setenv CCACHE_PATH /usr/bin:/usr/local/bin setenv CCACHE_DIR "/usr/.ccache" > On Nov 25, 2005, at 4:28 AM, Bjarne Wichmann Petersen wrote: > > On Monday 21 November 2005 15:25, Michael C. Shultz wrote: > >> ps: I cc'ed freebsd-ports@freebsd.org in case others like myself > >> haven't > >> heard of this program yet, it may be found in /usr/ports/devel/ > >> ccache. > > > > I'm looking at it now, and have a small question. Reading the howto- > > freebsd > > I'll have to insert the following into etc/make.conf: > > > > .if !defined(NOCCACHE) > > .if ${.CURDIR:M/usr/src*} > > CC=/usr/local/libexec/ccache/cc > > CXX=/usr/local/libexec/ccache/c++ > > .else > > CC=cc > > CXX=c++ > > .endif > > .else > > CC=/usr/bin/cc > > CXX=/usr/bin/c++ > > .endif > > > > I don't know much shell-scripting, so I'm not entirely sure what > > ${.CURDIR:M/usr/src*} does. But to me it looks like ccache will be > > called > > upon only when the current directory is beneath /usr/src; ie. > > world/kernel-builds. > > yeah, the reason for this is because src/ sets PATH > > root@blueheron /usr/src > make -V PATH > /sbin:/bin:/usr/sbin:/usr/bin > > and ccache lives in /usr/local.. > > > Should I make another if-statement for /usr/ports? Or do > > I have it all wrong > > as long as you have /usr/local/libexec/ccache in your path > before /usr/bin you'll be fine. > > > Bjarne > > _______________________________________________ > > freebsd-ports@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > > To unsubscribe, send any mail to "freebsd-ports- > > unsubscribe@freebsd.org" > > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"