CowBuilder is a faster pbuilder build environment, which uses CowDancer, a copy-on-write in userland system (this means it is faster ;). Used together with CCache you get a very fast system for recompiling the same packages over and over aswell.

Well, let's get to the setup. Just follow the steps outlined below:

    • Install the required packages:
        • sudo apt-get install cowdancer ccache
    • Edit ~/.pbuilderrc:
        • ## Overrides /etc/pbuilderrc # Default distribution DISTRIBUTION=feisty COMPONENTS="main restricted universe multiverse" # Repositories (add the fastest one for you)

          MIRRORSITE=http://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

After the (rather long) download and install procedure you can start compiling your own packages like this (example):

The resulting package can be found in /var/cache/pbuilder/result/ . Then you can dput the package to GetDeb like this:

External resources:

Building Debian packages with cowbuilder Debian Wiki - Cowbuilder

CowBuilder_+_CCache (last edited 2008-01-10 18:10:33 by localhost)