From owner-freebsd-sparc64@FreeBSD.ORG Sat Jan 24 02:02:00 2004 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1414416A4CE for ; Sat, 24 Jan 2004 02:02:00 -0800 (PST) Received: from smtp1.server.rpi.edu (smtp1.server.rpi.edu [128.113.2.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BDD943D78 for ; Sat, 24 Jan 2004 02:00:39 -0800 (PST) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp1.server.rpi.edu (8.12.8/8.12.8) with ESMTP id i0O9xX1q006058 for ; Sat, 24 Jan 2004 04:59:34 -0500 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: References: <200312212239.38557.craig@xfoil.gank.org> <20040106095942.O66232@beagle.fokus.fraunhofer.de> <20040106182824.GA42422@dragon.nuxi.com> <20040107174346.GA50142@dragon.nuxi.com> <20040111093043.GA11120@dragon.nuxi.com> Date: Sat, 24 Jan 2004 04:59:32 -0500 To: freebsd-sparc64@freebsd.org From: Garance A Drosihn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: CanIt (www . canit . ca) Subject: Newer installworld_nk script (64-bit time_t) X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jan 2004 10:02:00 -0000 At 10:42 PM -0500 1/21/04, Garance A Drosihn wrote: >At 3:41 AM -0500 1/12/04, I (Garance) wrote: >> >>http://people.freebsd.org/~gad/time-64/installworld_nk >> >>Is the magic script. Probably a little more elaborate than it >>needs to be, but I had plenty of extra time while waiting for >>'make buildworld' to finish... > >Fwiw, I just made to minor changes to this script, to make it a >little more user-friendly. The option for "yes, go ahead and >do the installworld" actually works now... Well, thanks to a combination of events, I ended up having to a few extra hours to work on this, so I've gone through another few rounds of improvements to the script. http://people.freebsd.org/~gad/time-64/installworld_nk Is the newest version of the script. It has not been used on an "upgrade sparc64 from 32BTT to 64BTT" run, but it has been extensively tested with a few dozen installworlds on my dual-athlon system (which is just a *little* faster than my Ultra-10). By being more and more restrictive with my PATH settings, I tracked down a few more files that are prudent to copy, and I realized that some steps should be done in a different order. I also added a -S option, which causes the script to use symlinks to most executables it is pulling from /usr/obj, instead of copying them all. So, even though I'm bringing in more files, the /tmp/install-nk* directory is now only 200K to 250K when -S is used. I also added more tests and improved some of the script-debugging features. There is also a -M option, which causes the installworld to be done with PATH set to *only* the /tmp/install-nk* directory. I also tested this version (on i386) by: boot into single user script /var/tmp/somefile make installworld <- standard make target EOF script /var/tmp/otherfile ./installworld_nk <- magic alternative EOF repeating that several times with different options to the script. I then did 'diff's on all the outputs, to make sure that they all seemed to do exactly the same thing. As far as those script outputs are concerned, the same commands were executed with the exact same outputs. Older versions of the script are still available in that same directory, but right now this is the most heavily-tested one (except that it hasn't actually been used for a 32->64 upgrade). I think it's an interesting exercise to try to make this script as bullet-proof as possible. I'm sure that it's adequate for immediate need, but I'd like to see how far it could go. -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu