This is a read-only copy of the MariaDB Knowledgebase generated on 2024-12-22. For the latest, interactive version please visit https://mariadb.com/kb/.

Buildbot Setup for BSD

Here are the steps I did when installing and configuring a buildbot slave on a PC-BSD 9 box.

Add buildbot user:

sudo adduser
  buildbot
  /bin/sh

Python was already installed.

Bazaar was already installed.

NTP was already installed.

Install Zope3

cd /usr/ports/www/zope3
sudo make install clean
  # accepted default options
cd /usr/ports/devel/py-zope.interface
sudo make install clean

Install Twisted

cd /usr/ports/devel/py-twisted
sudo make install clean
  # accepted default options

Install ccache

cd /usr/ports/devel/ccache
sudo make install clean
  # accepted default options

Run a test compile of MariaDB

cd
cd src/maria/build
BUILD/compile-pentium64-max
  # test compile appeared to work

Install buildbot

cd /usr/ports/devel/buildbot
sudo make install clean
  # accepted default options

Create the buildbot slave

On the build master, add new entry to /etc/buildbot/maria-master-private.cfg

    slave-name=bsd9

Remember the ${slave-name} and ${password} configured above, they're used in the next step.

Back on bsd9

sudo su - buildbot
buildslave create-slave --usepty=0 /home/buildbot/maria-slave \
hasky.askmonty.org:9989 ${slave-name} ${password}

echo '${contact-email-address}' > /home/buildbot/maria-slave/info/admin
echo 'A host running PC-BSD 9.' > /home/buildbot/maria-slave/info/host

bzr init-repo maria-slave/bsd9

exit

Start the buildslave

sudo su - buildbot
buildslave start maria-slave

Make the archive dir

sudo su - buildbot
mkdir archive
exit
sudo ln -s /home/buildbot/archive /archive

Install Apache

cd /usr/ports/www/apache22
sudo make install clean
  # accepted default options

Configure apache:

sudo su -s
echo 'apache22_enable="YES"' >> /etc/rc.conf
echo 'alias /archive "/archive"\
<Directory "/archive">\
  Options All Multiviews\
  AllowOverride All\
  Order allow,deny\
  Allow from all\
</Directory>' >> /usr/local/etc/apache22/httpd.conf

sudo /usr/local/etc/rc.d/apache22 start

Install md5sum

md5sum already installed at /compat/linux/usr/bin/md5sum
edited /home/buildbot/.profile and added that dir to the path
  # That didn't work, so did the following:
cd /usr/local/bin/
sudo ln -s /compat/linux/usr/bin/md5sum md5sum
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.