Tuesday, 6 January 2009

Buildix 2.1 on Ubuntu 8.10 (Interpid Ibex)

On Ubuntu 8.10 Buildix 2.1 install fails with
subprocess post-installation script returned error exit status 10
But it can be hacked to work. The following steps need to be made:

- Add buildix to you app sources just like its shown here
- Run apt-get install buildix and wait for install to fail
- Open /var/lib/dpkg/info/buildix.postinst in our favorite editor and comment out there lines
# Get the port that Mingle is using
. /usr/share/debconf/confmodule
db_get mingle/port

ed -s /etc/apache2/sites-available/buildix << END

- Change a2enmod mod_python to a2enmod python
- Download trac extract archive then copy folder contrib to /usr/share/doc/trac/ and folder cgi-bin to /usr/share/trac/
in /usr/share/doc/trac/contrib run gzip trac-pre-commit-hook
- Run aptitude install buildix again this time it should finish properly.
- Navigate your browser to http://localhost/
- Login with username:buildix password:buildix, open config
- Uncheck enabled checkbox under Mingle options, click save.

Buildix 2.1 doesn't play well with Track 0.11 so you need to modify /usr/share/buildix/lib/buildix/modules/trac.py Find line
_execCmd("trac-admin " + trac + " initenv " + name + " sqlite:db/trac.db svn " + repo + " /usr/share/trac/templates",
"Error creating Trac Project: ")
and change it to
_execCmd("trac-admin " + trac + " initenv " + name + " sqlite:db/trac.db svn " + repo,
"Error creating Trac Project: ")

and comment out this line
_execCmd("trac-admin " + trac + " permission add anonymous CRUISECONTROL_VIEW", "Error enabling Trac-CC")

restart apache
/etc/init.d/apache2 restart

Buildix should work properly. Have fun :)


Meike, Alex & Timo said...

Cool howto.

It worked fine, except for the fact that i did not get to try Mingle. I had to uninstall to get it working.

There is a license fee for Mingle so, it would have beenm just trying anyway...

did you get it to work?

Rick said...

Thanks! No i didn't get Mingle to work. That's why I disabled it in buildix config

Churchill said...

I was with you up to this point:

"Download trac extract archive then copy folder contrib to /usr/share/doc/trac/ and folder cgi-bin to /usr/share/trac/
in /usr/share/doc/trac/contrib run gzip trac-pre-commit-hook"

but wasn't sure what the easiest way was to download trac and extract the archive. As you can tell, I'm a n00b. All I'm trying to do is get a working stack containing cruise control, phpundercontrol, svn, etc, and possibly also add my dev tools such as netbeans etc so that my entire dev environment is in one VM. So much easier developing using windows technologies :D

Churchill said...

Once I realised you missed a comma, that sentence made more sense to me and I was able to download trac, extract the archive and copy the relevant folders and run gzip etc.

Unfortunately running aptitude install buildix now gives me this error:

gzip: /usr/share/doc/trac/contrib/trac-post-commit-hook.gz: No such file or directory
dpkg: error processing buildix (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:

Maybe I made a mistake on the editing of the dpkg? I'm using Ubuntu 9.10, if that makes any difference.