Alan Hargreaves' Weblog
The ramblings of an Australian SaND TSC* Principal Field Technologist
* Solaris and Network Domain Technology Support Centre - The group I work forTags
(update 1) acoustic bind birthday blues bugs cec cec2007 cec2008 china cmt contention cringley debugging dogs dtrace earthquake encumbered-binaries extra flash funny google guitar halloween huron install kids linux liveupgrade locking mdb music mysql newyear niagra openjava opensolaris oracle patches patents percussion performance redhat secondlife security solaris sru sun support sxcr t2 t2000 timeslider ufs upgrade virtualbox windows youtube zfs
Saturday Nov 25, 2006
b53 non-debug encumbered binaries (and new usr/src/Makefile diff) available
The encumbered binaries for Build 53 of OpenSolaris are now available at The Download Centre along with the updated MD5 Checksums.
In order to put the usr/src/Makefile changes back into ON I've made a couple of minor changes to the diffs that I previously posted. The Makefile is now a little more clear about what it's doing with it's logging and error messages for doing the open build.
OK, the reason for this is that I managed to get caught out "testing" the Makefile change and forgot to copy the new Makefile into place. The logging that was in there didn't allow me to see that I was doing a non-debug build with the debug encumbered binaries (because it didn't have the new code in there). It now is clear about where it is copying the encumbered binaries from and about what it expected to find if it can't find them.
As such, it's probably time to re-do the instructions for how to build a non-debug ON tree, not forgetting to mention Dennis Clarke's great step by step guide.
First off, as the current usr/src/Makefile does not know about the directory name that the non-debug binaries extract in to, we have two options.
-
Extract the encumbered binaries and then rename it such that the '-nd' suffix is now longer in the directory name.
e.g.
- closed/root_sparc (instead of closed/root_sparc-nd)
- closed/root_i386 (instead of closed/root_i386-nd)
-
Modify usr/src/Makefile as per the following diff output. This tells make to grab the non-debug encumbered binaries from the directory that the tarball extracts into. The upside of this is that it then anables you to build bfu archives for both debug and non-debug from nightly.
------- usr/src/Makefile ------- Index: usr/src/Makefile --- /ws/onnv-gate/usr/src/Makefile Mon Oct 16 15:10:55 2006 +++ /export5/ah89892/onnv-6495870/usr/src/Makefile Tue Nov 21 14:44:20 2006@@ -22,7 +22,7 @@ # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "@(#)Makefile 1.224 06/10/16 SMI" +# ident "@(#)Makefile 1.225 06/11/21 SMI" # # Makefile for system source # @@ -117,14 +117,17 @@ @cd lib; pwd; $(MAKE) install closedbins: FRC $(ROOTDIRS) - @if [ "$$CLOSED_IS_PRESENT" = no ]; then \ - if [ ! -d "$$ON_CLOSED_BINS/root_$(MACH)" ]; then \ + @CLOSED_ROOT="$$ON_CLOSED_BINS/root_$(MACH)$${RELEASE_BUILD+-nd}"; \ + if [ "$$CLOSED_IS_PRESENT" = no ]; then \ + if [ ! -d "$$CLOSED_ROOT" ]; then \ $(ECHO) "Error: if closed sources are not present," \ "ON_CLOSED_BINS must point to closed binaries."; \ + $(ECHO) "root_$(MACH)$${RELEASE_BUILD+-nd} is not" \ + "present in $$ON_CLOSED_BINS."; \ exit 1; \ fi; \ - $(ECHO) "Copying closed binaries from $$ON_CLOSED_BINS"; \ - (cd $$ON_CLOSED_BINS/root_$(MACH); tar cf - .) | \ + $(ECHO) "Copying closed binaries from $$CLOSED_ROOT"; \ + (cd $$CLOSED_ROOT; tar cf - .) | \ (cd $(ROOT); tar xBpf -); \ fi
The next part is to modify the environment file. In my case this is generally called opensolaris.sh and I keep my copy in the directory that contains usr and proto, often referred to as $CODEMGR_WS.
In order to only do a non-debug build go to the line that defines NIGHTLY_FLAGS and remove the D and F options. If you want nightly to build both, only remove the D option.
Make sure that you have all of the encumbered-binaries files extracted into the right place and kick off the nightly as you normally would.
Technorati Tags: Solaris, OpenSolaris
Posted at 04:17PM Nov 25, 2006 by Alan Hargreaves in OpenSolaris | Comments[2]


Posted by 195.137.188.5 on November 25, 2006 at 10:11 PM EST #
Posted by erast on November 26, 2006 at 06:16 PM EST #