From owner-freebsd-questions Fri Oct 19 21: 4:46 2001 Delivered-To: freebsd-questions@freebsd.org Received: from out4.mx.nwbl.wi.voyager.net (out4.mx.nwbl.wi.voyager.net [169.207.1.77]) by hub.freebsd.org (Postfix) with ESMTP id D57A337B401 for ; Fri, 19 Oct 2001 21:04:42 -0700 (PDT) Received: from shell.core.com (IDENT:2525@shell.voyager.net [169.207.1.89]) by out4.mx.nwbl.wi.voyager.net (8.11.1/8.11.1) with ESMTP id f9K44gU34620; Fri, 19 Oct 2001 23:04:42 -0500 (CDT) Received: (from dpoland@localhost) by shell.core.com (8.11.6/8.11.6/1.3) id f9K44f807679; Fri, 19 Oct 2001 23:04:41 -0500 (CDT) Date: Fri, 19 Oct 2001 23:04:41 -0500 From: Doug Poland To: Mike Meyer Cc: Annelise Anderson , questions@freebsd.org Subject: Re: Help, I've broken ports and I can't get up Message-ID: <20011019230441.A7143@polands.org> References: <69198808@toto.iv> <15312.57890.10061.906384@guru.mired.org> <20011019223042.A6284@polands.org> <20011019223324.B6284@polands.org> <20011019223042.A6284@polands.org> <15312.62354.783497.428177@guru.mired.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <15312.62354.783497.428177@guru.mired.org>; from mwm@mired.org on Fri, Oct 19, 2001 at 10:46:26PM -0500 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 said: > > > > > I recently moved my ports hierarchies with the following command: > > > > > > > > > > # tar -cf - -C ports . | tar xpf - -C /data/usr/ports Annelise replied: > > > > 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. Mike added: > > > 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. > > > Doug questioned: > > 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. > > Mike answered: > > 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. > Thanks for the help. It's going to take me awhile to digest that. I'm not the sharpest tool in the shed :) -- Regards, Doug To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message