From owner-freebsd-questions Mon Nov 5 14:16:51 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-31-203-60.mmcable.com [65.31.203.60]) by hub.freebsd.org (Postfix) with SMTP id 5E35637B418 for ; Mon, 5 Nov 2001 14:16:37 -0800 (PST) Received: (qmail 47271 invoked by uid 100); 5 Nov 2001 22:16:31 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15335.4031.293341.195794@guru.mired.org> Date: Mon, 5 Nov 2001 16:16:31 -0600 To: Christopher Sean Hilton Cc: Mike Meyer , Sean Noonan , questions@FreeBSD.ORG Subject: Re: PROB: building ports when /usr/ports is a symbolic link? In-Reply-To: <20011105170048.B19839@andale.vindaloo.com> References: <79044711@toto.iv> <15325.29494.34610.677536@guru.mired.org> <20011105170048.B19839@andale.vindaloo.com> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Christopher Sean Hilton types: > On Mon, Oct 29, 2001 at 09:18:14AM -0600, Mike Meyer wrote: > > I do the following: > > > > 1) Export /usr/ports ro, and mount that on /usr/ports on all machines. > > > > 2) Export /share rw, and mount that as /share on all machines. > > > > 3) On each machine, set DISTDIR=/share/distfiles, PACKAGES=/share/pkg/, > > and WRKDIRPREFIX to a local directory in /etc/make.conf. > > > > 4) All machines then have access to the same /usr/ports tree and the > > same set of distfiles. Each machine can then build independently of > > all the other machines. If I want to share a build, I do "make package" > > and all the machines of that platform type get access to the > > package via /share/pkg/. > > > > > Thanks, this is an awesome. This is basically what I do with OpenBSD and it > works like a champ I'd wondered how to do it with FreeBSD though. I do have > a question. Do you occasionally run into ports that won't build like this. > My basic setup before was a ro export of /usr/ports, DISTDIR=/tmp, > WRKDIRPREFIX=/tmp. This way you could mount the latest ports directory and > the build would happen in the remote to the nfs server's /tmp directory. I > discovered however that /usr/ports/devel/py-omniorb would not build this > way. Instead I had to make package on the NFS server and then the remote > machine could run pkg_add. I've found one port that didn't build this way because it ignored WRKDIRPREFIX. It's since been fixed. You may be running into problems because of the shared WRKDIRPREFIX. If you build it on one machine, it won't build on any of the others because the work directory will show it as already having been built. http://www.mired.org/home/mwm/ Q: How do you make the gods laugh? A: Tell them your plans. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message