The openstack software suite is made of a number of software packages. It is packaged primarily for Ubuntu. The nova source packages was built for Debian GNU/Linux wheezy and Ubuntu 10.10.
setup
A virtual machine was installed with a Debian GNU/Linux squeeze and packaging-farm 2.0.19.
The goal is to demonstrate the use of packaging-farm to rebuild packages coming from Ubuntu 10.10 for Debian GNU/Linux wheezy. The /etc/packaging-farm/packaging-farm.conf configuration file was edited to specify that these distributions are the target:
DISTRIBUTIONS?=wheezy oneiric
The Ubuntu 10.10 source package repository was added to /etc/apt/sources.list:
deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric-updates main
The nova package was then imported as follows:
cd /var/cache/packaging-farm/sources mkdir nova cd nova apt-get source nova packaging-farm generate
It was then built (for oneiric and wheezy) using:
packaging-farm nova
The resulting wheezy packages can be used by adding:
deb http://openstack.dachary.org/packaging-farm/nova/gnulinux/debian/x86_64/wheezy/src/ ./ deb-src http://openstack.dachary.org/packaging-farm/nova/gnulinux/debian/x86_64/wheezy/src/ ./
to /etc/apt/sources.list.
packaging bug workaround
The nova-2011.3 package fails to build from source when in /usr/src.
The debuild.sh script was hacked to workaround the bug, as follows:
mkdir -p /tmp/tmp/src cp -a * /tmp/tmp/src cd /tmp/tmp/src DEB_BUILD_OPTIONS="${DEB_BUILD_OPTIONS} ccache" fakeroot dpkg-buildpackage -b -uc -us rm -fr /tmp/tmp/src cp -a /tmp/tmp/* /usr/src