Translation(s): none
Contents |
Pbuilder
Once you have succesfully created the deb package and made sure it is lintian clean, it is time to make sure it builds properly. For that you use pbuilder. This step will help you find out if you missed any build dependencies in debian/control file.
You will find more detailed information about pbuilder here:
The last link is not needed for the following, but goes into detail.
Install and Setup
First install pbuilder
apt-get install pbuilder
You must use sudo for pbuilder. Hence you must make an entry in the sudoers file. As root run
visudo
and add the following entry:
user_name ALL=(ALL) NOPASSWD: /usr/sbin/pbuilder
Now you need to set up a base tarball that will contain your chroot environment:
sudo pbuilder create
- The result will be found at
/var/cache/pbuilder/base.tgz
Build
Now it is time to build the package you already created again, this time with pbuilder. For that you will use the dsc file you created with dpkg-buildpackage
sudo pbuilder build ruby-devise_2.1.2-1.dsc
ruby-devise_2.1.2-1 is an example. You need to replace it with your package.
The result will be found in
/var/cache/pbuilder/result
Again you have to make sure it is lintian clean:
cd /var/cache/pbuilder/result lintian -iIEcv --pedantic --color auto ruby-devise_2.1.2-1*.changes
