From owner-freebsd-stable@FreeBSD.ORG Sat May 19 22:00:47 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 13AD416A400 for ; Sat, 19 May 2007 22:00:47 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp02.sth.basefarm.net (ch-smtp02.sth.basefarm.net [80.76.149.213]) by mx1.freebsd.org (Postfix) with ESMTP id 9693A13C457 for ; Sat, 19 May 2007 22:00:46 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-253-10-135.bredband.comhem.se ([83.253.10.135]:62180 helo=falcon.midgard.homeip.net) by ch-smtp02.sth.basefarm.net with smtp (Exim 4.66) (envelope-from ) id 1HpWyj-0004Ph-8a for freebsd-stable@freebsd.org; Sun, 20 May 2007 00:00:45 +0200 Received: (qmail 3961 invoked from network); 20 May 2007 00:00:40 +0200 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with SMTP; 20 May 2007 00:00:40 +0200 Received: (qmail 5990 invoked by uid 1001); 20 May 2007 00:00:40 +0200 Date: Sun, 20 May 2007 00:00:40 +0200 From: Erik Trulsson To: Doug Hardie Message-ID: <20070519220040.GA5929@owl.midgard.homeip.net> Mail-Followup-To: Doug Hardie , FreeBSD Stable References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.14 (2007-02-12) X-ACL-Warn: Too high rate of unknown addresses received from you X-Scan-Result: No virus found in message 1HpWyj-0004Ph-8a. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1HpWyj-0004Ph-8a f2cc704a32b703c55d13832c291bbd51 Cc: FreeBSD Stable Subject: Re: installworld in 6.2 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 May 2007 22:00:47 -0000 On Sat, May 19, 2007 at 02:11:59PM -0700, Doug Hardie wrote: > I have found what I believe is a "bug" in installworld for FreeBSD > 6.2. I do not believe this was in 6.1 as I would have encountered > the same problem there. I run a number of production servers. I > maintain the source on one development machine where it is built and > tested. To upgrade a production server I NIS mount /usr/src and /usr/ > obj then run the commands per UPDATING. The problem occurs now > because my development machine has /usr on a slice on the same disk > as /. However, /usr/obj is a soft link to /usr2 which is a separate > drive. There was not enough space on the primary drive for > everything and I really don't need to backup /usr/obj as it can > easily be rebuilt. > > During make installworld when it gets to the /boot section I get an > error that it cannot make a library in /usr2/obj/src..... Everything > quits at that point. My production machines do not have a /usr2 > filesystem. In order to get installworld to work I had to add a soft > link on the production server of /usr2 pointing to /usr. Then > installworld completed properly. I don't believe that link should be > needed. This sounds like a well known behaviour of buildworld/installworld. If you build on one machine and install on another then the directory structure for /usr/src and /usr/obj need to be more or less identical on both machines. In particular one needs to be very careful with either of /usr/src or /usr/obj being a symlink since it will get resolved during the build and the actual path will be embedded in several places in the built tree. The machine you install on will then use the actual paths from the build machine (/usr2/obj/... in your case) and needs to have those at the right places. This is not a new behaviour for 6.2. It has been this way for many years. -- Erik Trulsson ertr1013@student.uu.se