From owner-freebsd-stable Tue Mar 27 6: 3:25 2001 Delivered-To: freebsd-stable@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id A3E2D37B71D for ; Tue, 27 Mar 2001 06:03:22 -0800 (PST) (envelope-from mwm@mired.org) Received: (qmail 71939 invoked by uid 100); 27 Mar 2001 14:03:21 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15040.40361.966589.48415@guru.mired.org> Date: Tue, 27 Mar 2001 08:03:21 -0600 To: steve@Watt.COM (Steve Watt) Cc: stable@freebsd.org Subject: Re: /usr/ports symlink disappears In-Reply-To: <200103262336.f2QNaRE37653@wattres.Watt.COM> References: <200103262336.f2QNaRE37653@wattres.Watt.COM> X-Mailer: VM 6.89 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-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Steve Watt types: > I like to have my /usr/ports stuff on a different filesystem than /usr, > but I'd rather not dedicate a whole partition to ports. What I've been > doing is ln -s /local/ports /usr, but I just got bitten by that. > Actually, I got bitten some time ago, during a cvsup. It appears > that cvsup doesn't care for having /usr/ports a symlink, and blows it > away and re-checks out everything. Which, if one isn't paying attention > leads to two copies of the ports tree, and a number of other ugly > side-effects. > > Any tips on how to make it stop doing that? If it weren't for the > various warnings on mount_null, I'd do that. As an alternative solution, you might consider setting DISTDIR and WRKDIRPREFIX in /etc/make.conf. This will leave just the ports in /usr/ports, putting the stuff that consumes all the space (distfiles & work directies) elsewhere. Personally, I export /usr/ports r/o to all my machines, set DISTDIR to a partition that's shared r/w with everything, and make WRKDIRPREFIX dependent on the machine OS and make.conf settings. It works quite well - I can build a port on any machine, the distfiles fetched from any machine are available on all of them, and I don't wind up screwing up port builds on -current by building on -stable, etc. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message