How to re-build Debian packages

This page describes how to re-build debian packages for another Debian/Ubuntu release than they were prepared for.

Note1: This only applies if you want to use the same version as the version in the package repository. If you want a newer version, consult How to build Debian packages.

Note2: The steps below will rebuild Orocos for all targets in the repository, so lxrt, xenomai and gnulinux. If you care only for one of these targets, see also How to build Debian packages.

First, make sure you added this deb-src line to your sources.list file:

deb-src http://www.fmtc.be/debian etch main
Next, type from your 'HOME/src' directory:

sudo apt-get update
apt-get source orocos-rtt
sudo apt-get build-dep orocos-rtt
sudo apt-get install devscripts build-essential fakeroot dpatch
cd orocos-rtt-1.6.0
dpkg-buildpackage -rfakeroot -uc -us
cd ..
for i in *.deb; do sudo dpkg -i \$i; done

You can repeat the same process for orocos-ocl.