Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Jun 1998 14:35:02 -0700 (PDT)
From:      asami@FreeBSD.ORG (Satoshi Asami)
To:        tsprad@set.spradley.tmi.net
Cc:        jb@cimlogic.com.au, paulz@trantor.stuyts.nl, current@FreeBSD.ORG
Subject:   Re: make buildworld needs root privs , why ?
Message-ID:  <199806262135.OAA08919@vader.cs.berkeley.edu>
In-Reply-To: <199806260412.XAA11260@set.spradley.tmi.net> (message from Ted Spradley on Thu, 25 Jun 1998 23:12:28 -0500)

next in thread | previous in thread | raw e-mail | index | archive | help
 * I have a related problem, trying to do just that.  I wanted to run 'make
 * buildworld' on a faster machine, then 'make installworld' on the slow
 * machine that's going to run that world.

That's the right thing to do!  (Especially if the faster machine is an
NFS server with lots of disks and the slower machine is a client with
minimal space....)

 * On the faster machine I created directories /source/hotrod/src and
 * /object/hotrod/obj (hotrod is the slow machine).  I made symlinks
 * /usr/src -> /source/hotrod/src and /usr/obj -> /object/hotrod/obj,
 * then I ran 'make buildworld'.  Now I go to hotrod and mount the same
 * /source/hotrod/src on /usr/src and mount /object/hotrod/obj on
 * /usr/obj, and run 'make -m /usr/src/share/mk installworld' (hotrod is
 * running 2.2.5R).
 * 
 * What happens is "/usr/obj/usr/src/tmp/usr/bin/make: not found".  It's
 * actually at /usr/obj/source/hotrod/src/tmp/usr/bin/make.  Instead of
 * /usr/obj/usr/src/... it's /usr/obj/source/hotrod/....
 * 
 * Before I try to work around this with symlinks or something, I thought
 * I ought to ask if my procedure is at all close to correct.

You can work around it with symlinking backwards, but you really don't 
need to do anything special as long as you mount the filesystems on
the same path on the server and client.

In this case, just mount /source/hotrod/src as /source/hotrod/src and
/source/hotrod/obj as /source/hotrod/obj, then make the regular src
and obj symlinks.  (I thought that was what people normally do. :)

Satoshi

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806262135.OAA08919>