UBUNTU: reduce disk usage during buildd builds
authorAndy Whitcroft <apw@canonical.com>
Tue, 28 Sep 2010 13:18:25 +0000 (14:18 +0100)
committerLeann Ogasawara <leann.ogasawara@canonical.com>
Mon, 28 Mar 2011 13:49:22 +0000 (06:49 -0700)
commit05ff087176bcde2d998ea369890be5e893b2bea8
tree12a76ea49cd0d4349dbbe2598871bbcdf66d6e5f
parent6997db83ddb2c65a2abe0374f6271b72fd84dde5
UBUNTU: reduce disk usage during buildd builds

BugLink: http://bugs.launchpad.net/bugs/645653

For each flavour build we keep all of intermediate trees intact.
This allows simple incremental updates in a development environment but
leads to very large disk footprints on the build.  For Maverick with three
flavours we are seeing 19GB for i386 and 25GB for amd64.  Anything over
15GB is likely to run the buildds out of disk and fail the build.

When building on a buildd (in full_build=true mode) clean out
the main build tree and the package tree for the debugging deb.
This reduces consumption to more like 10GB maximum regardless of
the flavour count.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
debian/rules.d/2-binary-arch.mk