ReferencePlatforms/UnitTestOnly/10.5-Xserve: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(Created page with '=Version 1= ==Install OS== Image machine with standard 10.5.2 Xserve PPC build machine image. The image is actually an Intel image, so we need to remove the installed version of…')
 
No edit summary
Line 4: Line 4:


  sudo port -f uninstall installed
  sudo port -f uninstall installed
 
  sudo rm -rf \
  sudo rm -rf \
     /opt/local \
     /opt/local \
Line 16: Line 16:
     /Library/Tcl/macports1.0 \
     /Library/Tcl/macports1.0 \
     ~/.macports
     ~/.macports
#Existing mozilla tools are I386 only
sudo rm -rf /tools


==System Preferences==
==System Preferences==
Line 28: Line 30:
==Runtime requirements==
==Runtime requirements==
You need to install mercurial, wget and buildbot.  Instead of installing macports and xcode tools we are going to use the built in version of Twisted 2.5.0:
You need to install mercurial, wget and buildbot.  Instead of installing macports and xcode tools we are going to use the built in version of Twisted 2.5.0:
curl -O http://mercurial.selenic.com/release/mercurial-1.5.2.tar.gz
tar zxf mercurial-1.5.2.tar.gz
cd mercurial-1.5.2
python setup.py build
sudo python setup.py install
curl -O http://tmrc.mit.edu/mirror/twisted/Twisted/2.5/Twisted-2.5.0.tar.bz2
tar jxf Twisted-2.5.0.tar.bz2
cd Twisted-2.5.0
sudo python setup.py install
  hg clone http://hg.mozilla.org/build/buildbot buildbot
  hg clone http://hg.mozilla.org/build/buildbot buildbot
  cd buildbot
  cd buildbot
hg up -C --rev 53
  python setup.py build
  python setup.py build
  sudo python setup.py install
  sudo python setup.py install
Line 37: Line 52:
  tar zxf wget-latest.tar.gz
  tar zxf wget-latest.tar.gz
  cd wget-latest
  cd wget-latest
export CFLAGS='-arch ppc'
  ./configure
export CXXFLAGS='-arch ppc'
  ./configure --enable-static --disable-shared
  make
  make
  sudo make install
  sudo make install
Line 49: Line 62:
  buildbot create-slave . master:port username password
  buildbot create-slave . master:port username password


==Install XCode==
We need Mercurial for the tools repository checkout.  To build this we need to have XCode installed on the machine. Grab xcode and install it.  Once installed, build mercurial
wget http://mercurial.selenic.com/release/mercurial-1.3.1.tar.gz
tar zxf mercurial-1.3.1.tar.gz
cd mercurial-1.3.1
python setup.py build
sudo python setup.py install
== Setup buildbot start on boot ==
== Setup buildbot start on boot ==
I don't know how to do this at the moment.  If you know how, please add it to this page.
I don't know how to do this at the moment.  If you know how, please add it to this page.

Revision as of 19:02, 19 May 2010

Version 1

Install OS

Image machine with standard 10.5.2 Xserve PPC build machine image. The image is actually an Intel image, so we need to remove the installed version of MacPorts

sudo port -f uninstall installed

sudo rm -rf \
   /opt/local \
   /Applications/DarwinPorts \
   /Applications/MacPorts \
   /Library/LaunchDaemons/org.macports.* \
   /Library/Receipts/DarwinPorts*.pkg \
   /Library/Receipts/MacPorts*.pkg \
   /Library/StartupItems/DarwinPortsStartup \
   /Library/Tcl/darwinports1.0 \
   /Library/Tcl/macports1.0 \
   ~/.macports
#Existing mozilla tools are I386 only
sudo rm -rf /tools

System Preferences

Open System Preferences and in:

  • Energy Saver set both times to 'never'
  • Spotlight set the main hard drive as a private location to stop spotlight from indexing it
  • Desktop and Screensaver set the screensaver time to 'never'
  • Dock and set the dock to automatically hide
  • Displays and set resolution to 1280x1024@60hz
  • Sharing and enable screen sharing and remote login

Runtime requirements

You need to install mercurial, wget and buildbot. Instead of installing macports and xcode tools we are going to use the built in version of Twisted 2.5.0:

curl -O http://mercurial.selenic.com/release/mercurial-1.5.2.tar.gz
tar zxf mercurial-1.5.2.tar.gz
cd mercurial-1.5.2
python setup.py build
sudo python setup.py install
curl -O http://tmrc.mit.edu/mirror/twisted/Twisted/2.5/Twisted-2.5.0.tar.bz2
tar jxf Twisted-2.5.0.tar.bz2
cd Twisted-2.5.0
sudo python setup.py install
hg clone http://hg.mozilla.org/build/buildbot buildbot
cd buildbot
hg up -C --rev 53
python setup.py build
sudo python setup.py install

For WGet:

curl -O http://ftp.gnu.org/gnu/wget/wget-latest.tar.gz
tar zxf wget-latest.tar.gz
cd wget-latest
./configure
make
sudo make install

Buildbot Slave

Finally, set up your buildbot slave

mkdir -p /builds/slave
cd /builds/slave
buildbot create-slave . master:port username password

Setup buildbot start on boot

I don't know how to do this at the moment. If you know how, please add it to this page.

  • Ensure the the correct user and slave directory are set in the script (cltbld and /builds/slave by default)

From VNC:

  • Make sure the resolution is set to 1280x1024. (this is not in the xserve ref image)
  • System Prefs -> Accounts -> Login Options
    • Set 'Automatic Login' to 'cltbld', enter the password when prompted.