CowBuilder + CCache
I'm a GetDeb contributor, building Ubuntu packages of new applications. The build system I use is CowBuilder (pbuilder/cowdancer) plus CCache to speedup the process.
Following is a simple guide to setup such an environment on an Ubuntu system.
The resulting package can be found in /var/cache/pbuilder/result/
Following is a simple guide to setup such an environment on an Ubuntu system.
- Install packages:
sudo apt-get install cowdancer ccache
- Edit ~/.pbuilderrc :
## Overrides /etc/pbuilderrc
# Default distribution
DISTRIBUTION=feisty
COMPONENTS="main restricted universe multiverse"
# Repositories
MIRRORSITE=http://br.archive.ubuntu.com/ubuntu
# Bash prompt inside pbuilder
export debian_chroot="pbuild$$"
# Faster dependency resolution
PBUILDERSATISFYDEPENDSCMD="/usr/lib/pbuilder/pbuilder-satisfydepends-gdebi"
# CCache setup
export CCACHE_DIR="/var/cache/pbuilder/ccache"
export PATH="/usr/lib/ccache:${PATH}"
EXTRAPACKAGES=ccache
BINDMOUNTS="${CCACHE_DIR}" - Create CCache directory (user 1234 is default inside cowbuilder):
sudo mkdir /var/cache/pbuilder/ccache
sudo chown 1234 /var/cache/pbuilder/ccache - Create the build environment:
sudo cowbuilder --create --distribution feisty
sudo cowbuilder --build flv2mpeg4_0+svn3-1~getdeb1.dsc
The resulting package can be found in /var/cache/pbuilder/result/
Labels: packaging