From owner-freebsd-ports@FreeBSD.ORG Sat Jun 21 15:21:02 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 514D61065675 for ; Sat, 21 Jun 2008 15:21:02 +0000 (UTC) (envelope-from carpetsmoker-dated-1214924802.6b01a3@rwxrwxrwx.net) Received: from mail.rwxrwxrwx.net (rwxrwxrwx.net [82.93.23.199]) by mx1.freebsd.org (Postfix) with ESMTP id 0395D8FC1A for ; Sat, 21 Jun 2008 15:21:01 +0000 (UTC) (envelope-from carpetsmoker-dated-1214924802.6b01a3@rwxrwxrwx.net) Received: from localhost (unknown [127.0.0.1]) by mail.rwxrwxrwx.net (Postfix) with ESMTP id AE6A76D442 for ; Sat, 21 Jun 2008 17:06:45 +0200 (CEST) Received: from mail.rwxrwxrwx.net ([127.0.0.1]) by localhost (mail.rwxrwxrwx.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0pV4slvNjFQr for ; Sat, 21 Jun 2008 17:06:42 +0200 (CEST) Received: by mail.rwxrwxrwx.net (Postfix, from userid 1001) id B73C46D43D; Sat, 21 Jun 2008 17:06:42 +0200 (CEST) Received: by glitch.rwxrwxrwx.net (tmda-sendmail, from uid 1001); Sat, 21 Jun 2008 17:06:42 +0200 Date: Sat, 21 Jun 2008 17:06:41 +0200 To: freebsd-ports@freebsd.org Message-ID: <20080621150640.GA86216@rwxrwxrwx.net> References: <20080618125154.GC90685@k7.mavetju> <20080618212716.GA61331@rwxrwxrwx.net> <20080621013220.2b84413e@gumby.homeunix.com.> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20080621013220.2b84413e@gumby.homeunix.com.> User-Agent: Mutt/1.5.17 (2007-11-01) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Martin Tournoij Mail-Followup-To: freebsd-ports@freebsd.org X-Primary-Address: carpetsmoker@rwxrwxrwx.net Subject: Re: Standardize NO_CCACHE flag and ccache definitions X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Martin Tournoij List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jun 2008 15:21:02 -0000 On Sat, Jun 21, 2008 at 01:32:20AM +0100, RW wrote: > On Wed, 18 Jun 2008 23:27:16 +0200 > Martin Tournoij wrote: > > > There are some ports which refuse to compile with ccache, these all > > seem to be projects which use scons, unlike make, scons does not copy > > the user's environment automatically, and the required environment > > variables for ccache (like CCACHE_DIR) aren't present, which leads to > > build failure, an example is games/freera. > > > > I'm not that familiar with scons, and what exactly the "proper way" is > > to handle this sort of stuff in scons, > > I don't have any experience with scons, but I did used to use cons. > IIRC cons expects to do the caching itself. Since it already generates a > hash that can be used to label the correct object file, it pretty much > comes for free and running ccache would just duplicate the overheads. I > think it's probable that there isn't a "proper way". It's not quite the same, scons' cache feature needs to be explicitly enabled in the SConstruct file, I don't think many projects have it enabled... See the scons manual: http://www.scons.org/doc/0.98.5/HTML/scons-user/c3143.html A NO_CCACHE might be useful for ports that do have this cache enabled, but are there any ports at all which use this? As a sidenote, AFAIK cons and scons are not related... -- Martin Tournoij carpetsmoker@rwxrwxrwx.net http://www.daemonforums.org QOTD: The fact that Hitler was a political genius unmasks the nature of politics in general as no other can. -- Wilhelm Reich