From owner-freebsd-questions Mon Oct 29 12:17:52 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 D037137B403 for ; Mon, 29 Oct 2001 12:17:42 -0800 (PST) Received: (qmail 2265 invoked by uid 100); 29 Oct 2001 15:18:14 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15325.29494.34610.677536@guru.mired.org> Date: Mon, 29 Oct 2001 09:18:14 -0600 To: "Sean Noonan" Cc: questions@freebsd.org Subject: Re: PROB: building ports when /usr/ports is a symbolic link? In-Reply-To: <79044711@toto.iv> 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 Sean Noonan types: > Hi everyone, > > I have several FreeBSD boxes and I don't want to cvsup the ports collection > on all of them, only one of them. I've created a symbolic link on the box > that does not have a real /usr/ports directory to the ports directory on the > box that actually has a /usr/ports directory (e.g., cd /usr ; ln -s > portspc:/usr/ports /ports). I assumes that the last '/' on the line is a typo. > Builds seem to go okay, but when it comes time to actually copying the > compiled binaries it puts them on the wrong machine, that is on the machine > with real /usr/ports directory. Um - how does it manage to put them on the wrong machine? Do you have the other machine mounted somewhere? More info would be usefull. > I'm sure there's got to be an easy work-around for this, would somebody > please share it with me? 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/. 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