Portfolio / hacktuts / mariadb / README-SOL10-SPARC.buildbot

NOTE: It would probably make sense to create a seperate zone for the buildbot
on your Solaris 10 (SPARC) system.

NOTE: You might need to install the Zope Interface package for some of the 
Python pieces to work properly.  Do this after installing Python 2.5.  You 
can find information on the Zope Interface at:

Unless you want to spend time optimizing the underlying Solaris 10 (SPARC) 
installation, it is strongly suggested that you choose the "Entire" Software 
Group during the installation process.  Once you have your Solaris 10 (SPARC)
 system on the network and able to access the Internet you can use the 
following suggestions to setup your buildbot:

1) By default Solaris 10 comes packages with Python 2.6.x.  For compatibility 
reasons, you need to install Python 2.5.x.  The author found it easiest to use 
Sunfreeware ( 

$ cd /tmp
$ ftp
Name: anonymous
Password: (your email address)
ftp> bin
ftp> cd pub/freeware/sparc/5.10/
ftp> get python-2.5.4-sol10-sparc-local.gz
ftp> quit
$ gunzip python-2.5.4-sol10-sparc-local.gz
$ pkgadd -d python-2.5.4-sol10-sparc-local

NOTE: If you are unfamiliar with howto install packages from Sunfreeware 
please read

2) Setup your environment:

Create a user:

$ useradd -d /export/home/buildbot -m buildbot

NOTE: It is imperative that you not use Bash as the buildbot user's shell.  
It could have been a dependency issue but I literally spent several days 
trying to solve why the buildbot wasn't checking out code with bzr only to 
discover that using the default Solaris shell fixed the problem.  If someone 
comes up with a solution please let us know on the mailing list.

Adjust the global profile (you could be more granular here but since I'm 
setting up a dedicated system I wasn't):

$ vi /etc/profile

# Add required libraries
# Makes Python 2.5 the default
# Puts "local" packages in your path

3) Install the latest Twisted:

$ wget
$ bunzip2 Twisted-9.0.0.tar.bz2
$ tar -xf Twisted-9.0.0.tar
$ cd Twisted-9.0.0
$ python build install

4) From sunfreeware install automake, autoconf, gcc, m4, md5, openssl, 
   libsigsegv, Tcl, Tk, perl, libtool, sed, libgcc, gcc, libintl, libiconv,
   zlib, binutils, groff

5) Install the Bazaar DVCS:

Install the latest Bazaar for Solaris 10.  At the time of this writing it was 
1.14.1: .

6) Volunteer your buildbot to the Maria team by following the directions 
listed on under "Volunteering to 
run a build slave."

7) Create the buildbot as the buildbot user:

buildbot create-slave --usepty=0 /export/home/buildbot/maria-slave ${buildbotname} <passwd>

NOTE: Replace ${buildbotname} with the buildbot name you received from the 
Maria DB developers.  Replace <passwd> with the password they gave you.  You 
can adjust these and other parameters anytime within the 
maria-slave/buildbot.tac file at anytime in the future.

8) Create a shared Bazaar repository in the buildbot build directory:

HOME=/export/home/buildbot bzr init-repo maria-slave/${buildbotname}

NOTE: Replace ${buildbotname} like you did in Step #7.

9) Attach the buildbot to the master:

buildbot start /export/home/buildbot/maria-slave

OPTIONAL: You can adjust the directions found at: 

to create a proper service for buildbot or run it manually.

10) Please login to channel #maria if you have problems or 
questions setting up your buildbot.  Or ask on the mailing list. 

11) You can check the status of your buildbot at: