Child pages
  • Building SFW_155 on a SPARC Zone (in progress....)
Skip to end of metadata
Go to start of metadata

Introduction

The SFW consolidation is a collection of open source software for Solaris. It's quite a wide collection of software and an up to date list of what's included can be found here. The build environment used was a Zone running oi_153 on a Sun T5240 (exact spec to follow).

Preparing the build environment

Download Sun Studio 12 Update 1 (required for SFW/ON builds 153+) from here and Sun Studio 12 from here. You can also install Sun Studio 12 Update 1 from IPS, which will cover some of the package dependencies required for building SFW.

Perl

Make sure you have your local perl binary (/usr/bin/perl) linked to /usr/perl5/5.10.0/bin/perl, and the /usr/perl5/bin and /usr/perl5/pod links pointing to the 5.10.0 subtree.

Install Sun Studio

pfexec mkdir /opt/SUNWspro && pfexec mkdir /opt/sunstudio12.1
cd /opt/SUNWspro
pfexec tar xvf $YOURDIR/sunstudio12-patched-ii-2009Sep-sol-sparc.tar.bz2

cd /opt/sunstudio12.1
pfexec tar xvf $YOURDIR/sunstudio12u1-patched-ii-2010Feb-sol-sparc.tar.gz

OR

pfexec pkg install developer/sunstudio12u1

Install the prerequisites. (NOTE: system/header/header-agp is not available on sparc)

Preparing and running the build

Login as the user you intend to use as the build user. Create ~./hgrc and add the following

[extensions]
mq=

Next we need to clone the mercurial repository and apply any OpenIndiana specific patches.

Note: be aware that the URLs have changed. Look up the new ones here: http://hg.openindiana.org/

cd 
hg clone http://hg.openindiana.org/sfw-gate 
hg clone http://hg.openindiana.org/mq_sfw /export/home/builduser/sfw-gate/.hg/patches
cd sfw-gate
hg -R .hg/patches up sfwnv_155 &&  hg up sfwnv_155
hg --config extensions.mq= --config diff.git=1 qpush -a

Check to make sure the patches have applied

builduser@sparczone:~/sfw-gate$ hg qapplied
oi-postgresql
oi-postgresql-cmd-makefile
oi-remove-ofusr
sfw-libxml2-cve-2010-4008
sfw-openssl-cve-2010-4180

Now we need to make some changes to the build script. Best to make a backup copy first!

cd /export/home/builduser/sfw-gate/usr/src/tools/env
cp sfw-opensolaris.sh sfw-opensolaris.sh.bkp

Edit sfw-opensolaris.sh and change the following variables

GATE=sfw-gate;
CODEMGR_WS="/export/home/builduser/$GATE";
SPRO_VROOT=/opt/sunstudio12.1; export SPRO_VROOT
AMD64_ROOT=/opt/sunstudio12.1; export AMD64_ROOT
STAFFER=builduser;

Obviously the build user can be anything you like, and the build area can be anywhere you have permission to write to.

Execute the build by running the following,

nohup env -i /opt/onbld/bin/nightly ./sfw-opensolaris.sh &

What to expect

The build will take a while to complete. Make some coffee!

real 14:05:38.5
user 38:34:48.1
sys  11:14:53.5

For the impatient your can follow the log file.

tail -f /export/home/builduser/sfw-gate/log/nightly.log

At the end of the build you will find a directory named after the date and time the build completed. Review the mail_msg file for build errors e.g.

cd /export/home/builduser/sfw-gate/log/log.2011-01-30.12:44
view mail_msg
  • No labels

2 Comments

  1. Exciting; thanks for your efforts. Hope OI SPARC is out soon for my fleet of sparcs! Still hanging on to osol 0906...

    1. Yes! Looking forward to OI SPARC!