From owner-freebsd-ports@FreeBSD.ORG Sat Aug 4 13:16:13 2012 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 3C5EB106566B for ; Sat, 4 Aug 2012 13:16:13 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id C0A3B8FC0C for ; Sat, 4 Aug 2012 13:16:12 +0000 (UTC) Received: by weyx56 with SMTP id x56so1270331wey.13 for ; Sat, 04 Aug 2012 06:16:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; bh=CAMxU9hgKFegLIgIga/xickQpySh26v00hvuXcbgr9c=; b=CJ7bx55TSFTkmR2uWEBB3QmsRve1TTa8AHUWWWXiAF5yVTLM8F7S11VMECjV6zIvi7 orWsS7IWlkm0kHvzMYrPtJp4KFM9WjqZvpKyVxqydBWbaEg1d3TPeuTxLbOAQnN+1Fnu 3SuT+q83wiz97SRY25KDxgQmOVSK72oLqRLvhlS/2o3EkaQmhyuaJPygANr6hsQ2k0yz +Q/lKZ8oepuo2kLUdqQygeNQhkLY3Zrf01mV8mXXTCQ6XMBxRtNsK0Ac+PpppPowJUpY MJcPYZDBsyRgzXj5Ywh6ycUjRbTavYhE1FnRjyknKdwkJgOsAViBP2TPVUcVuYwyjJ36 on+g== Received: by 10.180.94.164 with SMTP id dd4mr4361285wib.1.1344086171369; Sat, 04 Aug 2012 06:16:11 -0700 (PDT) Received: from gumby.homeunix.com (87-194-105-247.bethere.co.uk. [87.194.105.247]) by mx.google.com with ESMTPS id fu8sm3309730wib.5.2012.08.04.06.16.09 (version=SSLv3 cipher=OTHER); Sat, 04 Aug 2012 06:16:10 -0700 (PDT) Date: Sat, 4 Aug 2012 14:16:07 +0100 From: RW To: ports@freebsd.org Message-ID: <20120804141607.55249f62@gumby.homeunix.com> In-Reply-To: <501C7572.3020707@FreeBSD.org> References: <501C7572.3020707@FreeBSD.org> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.6; amd64-portbld-freebsd8.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: Re: [CFT] [bsd.port.mk] ports ccache build support 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: Sat, 04 Aug 2012 13:16:13 -0000 On Fri, 03 Aug 2012 20:05:54 -0500 Bryan Drewery wrote: > Hi, > > ports/169579 is currently tracking this. > > This patch adds ccache support to ports (off by default). Other > patches have changed $CC to use ccache, which results in having a > space in $CC. This breaks many ports such as boost and libtool ports. > > This patch however utilizes the symlinks in > /usr/local/libexec/ccache/{cc,gcc,etc...} by prefixing that directory > into $PATH in the $MAKE_ENV. But if you've read the ccache documentation you probably already have that directory in PATH anyway. Does this patch provide a significant advantage? > The cache directory CCACHE_DIR defaults to /usr/obj/ccache >... > To use ccache(1) from the command line to configure the size or view > stats: CCACHE_DIR=/usr/obj/ccache ccache -s Having a default ccache directory in the makefile that's different from the default documented in the ccache man page seems needlessly confusing to me. And see hier(7) and section 25.7.6 of the handbook for why /usr/obj/ccache is a poor choice.