From owner-freebsd-questions Fri Jul 27 4:14:42 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-27-141-144.mmcable.com [24.27.141.144]) by hub.freebsd.org (Postfix) with SMTP id ADEE037B401 for ; Fri, 27 Jul 2001 04:14:35 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 59303 invoked by uid 100); 27 Jul 2001 11:14:29 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15201.19733.775689.60584@guru.mired.org> Date: Fri, 27 Jul 2001 06:14:29 -0500 To: Nick Barnes Cc: questions@freebsd.org Subject: Re: making -releng binaries on a machine running -stable In-Reply-To: <27525.996164625@thrush.ravenbrook.com> References: <15200.16195.969128.39709@guru.mired.org> <27525.996164625@thrush.ravenbrook.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 Nick Barnes types: > At 2001-07-26 16:03:15+0000, Mike Meyer writes: > > Nick Barnes types: > > > I want to track RELENG_4_3 on an old machine with a small local disk, > > > incapable of holding /usr/obj or running make buildworld. > > > > > > I have a much bigger faster machine running -stable. Can I make > > > RELENG_4_3 items on it and transfer them to the smaller machine? I > > > have the RELENG_4_3 sources, but not in /usr/src/. It seems that if I > > > set MAKEOBJDIRPREFIX and DESTDIR, I can make buildworld. > > > > Yes, you can. What I would advise is to share the source and object > > trees between the two machines via nfs. The trick is that the real > > mount point for the two has to be the same on both machines, and not > > just symlinked to the same place. You should also make sure that > > /etc/make.conf on the two is a similar as possible. You can then do > > buildworld on the -stable box, and installworld on the target machine > > without futzing with MAKEOBJDIRPREFIX or DESTDIR. > I'm not clear about this. That's fine. It's a bit confusing until you've sorted it out. > I have -stable sources in /usr/src/ and -releng (i.e. RELENG_4_3) > sources in /usr/releng/src/. I want to be able to continue building > -stable in the usual way, in /usr/obj/, for my -stable machine(s). I > also want to build -releng, for instance in /usr/releng/obj/, and make > install from there on the smaller machine, presumably via an NFS mount > of /usr/releng/. Doing that would require screwing with MAKEOBJDIRPREFIX and DESTDIR. You'll still have to make sure the mounts are all the same. > But if I make buildworld in /usr/releng/src, without setting > MAKEOBJDIRPREFIX and DESTDIR, it tries to scribble on /usr/obj/. I am > assuming the right thing to do is to set MAKEOBJDIRPREFIX (and > DESTDIR?). With MAKEOBJDIRPREFIX equal to /usr/obj - or unset - then building in /usr/releng/src will scribble on /usr/obj - specifically, /usr/obj/usr/releng/src. Building your -stable in /usr/src will scribble on /usr/obj - specifically /usr/obj/usr/src. If you set MAKEOBJDIRPREFIX=/usr/releng/obj, then scribbling in /usr/releng/src will scribble on /usr/releng/obj - specifically /usr/releng/obj/usr/releng/src. The real path to the src tree is appended to MAKEOBJDIRPREFIX to get the full path to the object prefix. The reason for not setting MAKEOBJDIRPREFIX is that you won't be able to just cram it into /etc/make.conf on both systems and forget it. I'd rather avoid differences in the two builds if I can. The only problem with not setting may be that cleaning out one will clean out the other, something I haven't tried. This is why your source tree has to be mounted at the same point, not just symlinked to it. I think I overstated the case about th object tree, but I do things that way. You might try adding a symlink from /usr/obj/usr/releng/src to /usr/releng/obj on both systems, then just mounting /usr/releng with src and obj on it. 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-questions" in the body of the message