Hi Jim,

Here's a list below of what I had to do to checkout a copy of the ONNV
source tree and create bfu archives and my own workspace.

A few of these steps are obviously optional, but make life much easier.

There a few pieces of software I had to add before the system was
useful to me as an external user and those are included in the steps.

I'm being overly verbose about what I did though I am fully aware that
you know how to do these things (this is mainly for my sake and for
someone else that might find this useful).

Thanks!

====================

0) Logged into build system (hereafter known as bfs)

1) mkdir /root

2) Ran /usr/ucb/vipw

Changed shell to "/usr/bin/ksh93" since this is an equal replacement
now for /sbin/sh thanks to Roland's work and testsuites.

3) Changed root's home to /root

4) On my local system, I downloaded the special build of mercurial
needed to use external ON source tree from
http://opensolaris.org/os/community/tools/scmdownloads/:

SUNWmercurial-20070521_2d3379c598c1-sparc.pkg.bz2

5) scp SUNWmercurial-20070521_2d3379c598c1-sparc.pkg.bz2 root at bfs:

6) On bfs system:

bunzip2 SUNWmercurial-20070521_2d3379c598c1-sparc.pkg.bz2

7) pkgrm SUNWmercurial

8) pkgadd -d SUNWmercurial-20070521_2d3379c598c1-sparc.pkg

9) Created a user for myself

useradd -d /export/home/swalker -m -s /usr/bin/ksh93 -c "Shawn Walker" swalker

10) Set my user's password

passwd swalker

11) Created /ws directory for ON tree checkouts

mkdir /export/home/ws

12) Changed ownership:

chown swalker:other /export/home/ws

13) Set perms

chmod 770 /export/home/ws
ln -s /export/home/ws /ws

14) Added DTrace to my user:

usermod -K defaultpriv=basic,dtrace_kernel,dtrace_proc,dtrace_user swalker

15) On my local system:

Downloaded Sun Studio 11 (only tool approved for use with ON
consolidation right now) install image (not packages, only for my
convenience -- the packaged version is preferred so that patches can
be installed and because the install image doesn't always include all
the latest patches though Studio 11's install image appears to be up
to date at the moment) to my local system.

Download link page:
http://www.opensolaris.org/os/community/tools/sun_studio_tools/sun_studio_11_tools/

Download trigger link:
http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=8&PartDetailId=SS11-OSOL-AUG07-SF-G-F&TransactionId=try

Name of file that I downloaded ( 226.22 MB ):
sunstudio11-ii-20070829-sol-sparc.tar.bz2

16)  scp sunstudio11-ii-20070829-sol-sparc.tar.bz2 root at bfs:

17) On bfs system:

Extracted Sun Studio 11 install image to /opt:
cd /opt
/usr/sfw/bin/gtar jxf sunstudio11-ii-20070829-sol-sparc.tar.bz2

18) On my local system:

Downloaded onbld tools (since build farm system firewall prevents connection).

wget http://dlc.sun.com/osol/scm/SUNWonbld/SUNWonbld-latest.sparc.tar.bz2

19) scp SUNWonbld-latest.sparc.tar.bz2 root at bfs:

20) On bfs system:

Extracted and installed SUNWonbld

bunzip2 -k SUNWonbld-latest.sparc.tar.bz2
tar xf SUNWonbld-latest.sparc.tar
rm -f SUNWonbld-latest.sparc.tar
pkgadd -d . SUNWonbld

21) Logged out as root on bfs; logged back in as swalker on bfs

22) Moved the template environment files in place:

mv local.cshrc .cshrc
mv local.login .login
mv local.profile .profile

23) Set my path appropriate for ON builds in .profile:

PATH=/opt/onbld/bin:/opt/onbld/bin/`uname
-p`:/opt/SUNWspro/bin:/opt/SUNWspro/contrib/vim/bin:/usr/ccs/bin:/usr/sbin:/usr/bin:/sbin:/etc

24) Changed remaining .profile settings to suit my preferences.

25) Logged out as swalker on bfs; logged back in as swalker on bfs.

26) Get a checkout of the parent workspace:

cd /ws
hg clone ssh://anon at hg.opensolaris.org/hg/scm-migration/onnv-scm

====================

#26 is where I hit a snag:

hg clone ssh://anon at hg.opensolaris.org/hg/scm-migration/onnv-scm

remote: ssh: hg.opensolaris.org: node name or service name not known
abort: no suitable response from remote hg!

hg clone ssh://anon at 24.94.163.100/hg/scm-migration/onnv-scm
remote: ssh: connect to host 24.94.163.100 port 22: Connection refused
abort: no suitable response from remote hg!

So it looks like the main issue remaining is that the firewall
settings need some adjustment so that the build system can connect to
opensolaris.org and sun.com servers to download things or to checkout
source code. I'm not sure how you want to work that out.

In the meantime, I uploaded a checkout of the source tree from my
local system (228MiB tar gzip'd so this took a while ) to bfu and test
my builds.

====================

27) Created my own temporary workspace:

hg clone file:///ws/onnv-scm my-onnv

28) On my local system, downloaded:

http://dlc.sun.com/osol/on/downloads/current/on-closed-bins.sparc.tar.bz2

29) scp on-closed-bins.sparc.tar.bz2 swalker at bfs:

30) On bfs system extracted on-closed-bins.sparc.tar.bz2 to both workspaces:

cd /ws/onnv-scm
/usr/sfw/bin/gtar xjf ~/on-closed-bins.sparc.tar.bz2

cd /ws/my-onnv
/usr/sfw/bin/gtar xjf ~/on-closed-bins.sparc.tar.bz2

31) Changed to parent workspace and copied standard opensolaris env file.

cd /ws/onnv-scm
cp usr/src/tools/env/opensolaris.sh .

32) Used vim to edit opensolaris.sh to reflect my workspace
information and set MAILTO to my email address so nightly would notify
me when it was done with the build (this later failed, I got the email
in my local user account instead).

33) Changed to my workspace and copied opensolaris env file from
parent workspace.

cd /ws/my-onnv
cp ../onnv-scm/opensolaris.sh .

34) Used vim to edit opensolaris.sh to reflect my workspace information.

35) On my local system, downloaded these files:

ftp://ftp.sunfreeware.com/pub/freeware/sparc/10/ncurses-5.6-sol10-sparc-local.gz
ftp://ftp.sunfreeware.com/pub/freeware/sparc/10/screen-4.0.2-sol10-sparc-local.gz

36) Copied files to bfs system:

scp ncurses-5.6-sol10-sparc-local.gz root at bfs:
scp screen-4.0.2-sol10-sparc-local.gz root at bfs:

37) Logged in as root on bfs system:

gunzip ncurses-5.6-sol10-sparc-local.gz
gunzip screen-4.0.2-sol10-sparc-local.gz

38) pkgadd -d ncurses-5.6-sol10-sparc-local
screen-4.0.2-sol10-sparc-local (this is so I can start nightly or
other processes and detach while it's running)

39) Added /usr/local/bin to my PATH in .profile for root and for swalker

40) Logged out of bfs system; logged back in as swalker

41) So that nightly doesn't limit me to four concurrent jobs, I have
to copy the .make.machines that SUNWonbld (?) installed in / to my
$HOME/

cp /.make.machines ~/

42) Change to parent workspace again and start nightly build to get
bfu archives for snv78:

cd /ws/onnv-scm
screen nightly opensolaris.sh
Detached from screen session

43) Waited about 3 hours for build :)

(Disk I/O seems kinda slow)

-- 
Shawn Walker, Software and Systems Analyst
http://binarycrusader.blogspot.com/

"We don't have enough parallel universes to allow all uses of all
junction types--in the absence of quantum computing the combinatorics
are not in our favor..." --Larry Wall

Reply via email to