From owner-freebsd-questions Fri Oct 19 20:46:36 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 C2ED137B401 for ; Fri, 19 Oct 2001 20:46:32 -0700 (PDT) Received: (qmail 51888 invoked by uid 100); 20 Oct 2001 03:46:26 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15312.62354.783497.428177@guru.mired.org> Date: Fri, 19 Oct 2001 22:46:26 -0500 To: Doug Poland Cc: Annelise Anderson , questions@freebsd.org Subject: Re: Help, I've broken ports and I can't get up In-Reply-To: <20011019223042.A6284@polands.org> References: <69198808@toto.iv> <15312.57890.10061.906384@guru.mired.org> <20011019223042.A6284@polands.org> <20011019223324.B6284@polands.org> 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 Doug Poland types: > On Fri, Oct 19, 2001 at 09:32:02PM -0500, Mike Meyer wrote: > > Annelise Anderson types: > > > On Fri, 19 Oct 2001, Doug Poland wrote: > > > > I recently moved my ports hierarchies with the following command: > > > > > > > > # tar -cf - -C ports . | tar xpf - -C /data/usr/ports > > > I had better luck with what I think was the DISTDIR variable, > > > which might help if you're concerned with space on a file system, > > > as distfiles can take quite a lot of space. > > If that's the problem, WRKDIRPREFIX can help as well, as it lets you > > unpack the tarballs and do the builds on a file system with more > > space. > > If you export /usr/ports via NFS so you can build on other systems, > > WRKDIRPREFIX is pretty much required. > > > That's what I have done. I moved ports on to a drive to take advantage > of vinum and dirpref. What was /usr/ports is now /data/usr/ports and > exported via NFS. > > I'm not sure I understand the importance of WRKDIRPREFIX, especially > on the machine mounting the nfs export. It's very important on that case. If you don't want to share work dirs, then you should specify WRKDIRPREFIX as different locations on the server and clients. Well, it could be the same location on different machines, but it can't be shared. If you want to share it, you run into the same issues as you do with /usr/src. The ports tree needs to be in the same place on both systems, as the path - without symlinks - is used inside of WRKDIRPREFIX. Personally, I export /usr/ports ro from my primary build system, and that's the only system that updates it. DISTDIR is pointed at a shared rw partition on all systems, so that no matter what system I build on, the tarballs will be available everywhere. WRKDIRPREFIX is on local, non-exported disk on all systems, as I build ports for -current, -stable and -release, and don't want the builds to interfere with each other. To share builds across systems, I point PACKAGES at the shared file system that DISTDIR is on, and just make packages on the appropriate build platform. > Is there a FAQ or published guidance on this technique. How does one > find out all the variables involved? The make.conf and ports man pages, along with /etc/defaults/make.conf. Doug Poland types: > BTW, I created a symbolic link in /usr pointing to the new location of > ports. Is that a bad thing? I don't think so. It may case problems if you want to share WRKDIR's across systems. 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