From owner-freebsd-questions@FreeBSD.ORG Sun Oct 21 20:12:25 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD24016A41B for ; Sun, 21 Oct 2007 20:12:25 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from server.t-hosting.hu (server.t-hosting.hu [81.2.252.59]) by mx1.freebsd.org (Postfix) with ESMTP id 879BA13C4A3 for ; Sun, 21 Oct 2007 20:12:25 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by server.t-hosting.hu (Postfix) with ESMTP id 3ACC3A49AE4; Sun, 21 Oct 2007 22:12:11 +0200 (CEST) X-Virus-Scanned: amavisd-new at t-hosting.hu Received: from server.t-hosting.hu ([127.0.0.1]) by localhost (server.t-hosting.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id aeEMaOJ2QJOi; Sun, 21 Oct 2007 22:12:01 +0200 (CEST) Received: from [192.168.2.186] (catv-5063f539.catv.broadband.hu [80.99.245.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server.t-hosting.hu (Postfix) with ESMTP id 857049F2A49; Sun, 21 Oct 2007 22:12:01 +0200 (CEST) Message-ID: <471BB283.3030903@FreeBSD.org> Date: Sun, 21 Oct 2007 22:11:47 +0200 From: Gabor Kovesdan User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Erik Cederstrand References: <4718A74E.5060905@cederstrand.dk> In-Reply-To: <4718A74E.5060905@cederstrand.dk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: FreeBSD Questions Subject: Re: ccache and DESTDIR for ports? 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: Sun, 21 Oct 2007 20:12:25 -0000 Erik Cederstrand escribió: > Hi! > > I'm installing a small set of ports into lots of jails, using the > DESTDIR support recently added to the ports system. Each jail contains > a unique CVS revision of FreeBSD. I'd like to speed up compiles by > using ccache, but as I understand it, I'll have to install ccache into > each jail since the DESTDIR implementation chroot's into the jail. Yes, probably you will have to do so. > > Can I install ccache in each jail first and simply hardlink > /somejail/root/.ccache to /root/.cache before continuing compiling the > other ports? Or is that asking for trouble, since each jail might have > a different gcc installed? I have to admit, that I haven't used ccache so far, thus I don't know if it's just a wrapper before any GCC version or it is linked strictly or a specific version. If you compile ccache in each jail and set up the environment variables precisely (CC, CFLAGS, whatever you need), you must succeed. As for hardlinks, I don't know what to except in general, if you have to pull in something to a jail, I recommend nullmounting. This can easily be done with DESTDIR_MOUNT_LIST, take a look at the documentation of bsd.destdir.mk. Regards, -- Gabor Kovesdan FreeBSD Volunteer EMAIL: gabor@FreeBSD.org .:|:. gabor@kovesdan.org WEB: http://people.FreeBSD.org/~gabor .:|:. http://kovesdan.org