From owner-freebsd-questions@FreeBSD.ORG Thu May 19 17:13:23 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DDDB316A4D0 for ; Thu, 19 May 2005 17:13:23 +0000 (GMT) Received: from mta10-winn.mailhost.ntl.com (smtpout18.mailhost.ntl.com [212.250.162.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id D2EB843D7F for ; Thu, 19 May 2005 17:13:19 +0000 (GMT) (envelope-from richard.danter@ntlworld.com) Received: from aamta08-winn.mailhost.ntl.com ([212.250.162.8]) by mta10-winn.mailhost.ntl.com with ESMTP <20050519171317.EFJF20297.mta10-winn.mailhost.ntl.com@aamta08-winn.mailhost.ntl.com>; Thu, 19 May 2005 18:13:17 +0100 Received: from [192.168.1.10] (really [82.4.184.52]) by aamta08-winn.mailhost.ntl.com with ESMTP <20050519171317.YWJF18138.aamta08-winn.mailhost.ntl.com@[192.168.1.10]>; Thu, 19 May 2005 18:13:17 +0100 Message-ID: <428CC925.1090201@ntlworld.com> Date: Thu, 19 May 2005 18:13:09 +0100 From: Richard Danter User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050405) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Erik Trulsson References: <428CC15A.8030600@ntlworld.com> <20050519165710.GA25173@falcon.midgard.homeip.net> In-Reply-To: <20050519165710.GA25173@falcon.midgard.homeip.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Shared /usr/ports directories X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 May 2005 17:13:24 -0000 Erik Trulsson wrote: > On Thu, May 19, 2005 at 05:39:54PM +0100, Richard Danter wrote: > >>Hi all, >> >>I have several machines running FBSD now. At the moment I have a >>complete ports tree on each machine. I was wondering if it was possible >>to have it all on just one machine and NFS mount it? > > > That is certainly possible. > > >>I have already been doing this for the /usr/ports/distfiles directory, >>but had not shared everything else as I was not sure if settings from a >>build on one machine may cause problems when building on another machine. >> >>Each machine has it's own /etc/make.conf with settings such as the >>processor type, so it is important that one build can't effect another. > > > I would suggest you set WRKDIRPREFIX in /etc/make.conf so that the > files built by the ports system do not get placed under /usr/ports but > somewhere else. Is it just the object (.o) files that this effects, or all generated files? Where do the configurations get saved (for those ports with a config menu)? > For example I have 'WRKDIRPREFIX=/var/workdir' in my /etc/make.conf. > That way all the files that are created when you build a port ends up > under /var/workdir rather than under /usr/ports. If WRKDIRPREFIX is > set to a directory on a local filesystem there will be no way for a > build on one system to affect one on another. You should even be able > to export /usr/ports as read-only. If it was read-only, where would the source files that usually go into /usr/ports/distfiles go? I'd like to only have to download these once too. > (Changing WKRDIRPREFIX also makes it a lot easier and faster to clean > up after building ports. Instead of having to issue a 'make clean' for > each port built, you can just do a 'rm -fr /var/workdir/*' and all the > workdirs will be removed quickly.) I usually do a 'make install clean' anyway, but it would be good to be able to verify everything is actually cleaned. The other advantage of all this of course is that I would only need to do CVSup once and every machine would be up to date. Thanks for the help, Rich