Bug#630932: pbuilder: --preserve-buildspace is ineffective
Toni Mueller
support at oeko.net
Sat Jun 18 23:27:10 UTC 2011
Package: pbuilder
Version: 0.199+nmu1
Severity: normal
Tags: patch
Hi,
while trying to debug a problem with my pbuilder configuration, I found
that the build space (/var/cache/pbuilder/build) was always deleted.
After some debugging, I contrived the following patch that solves the
problem for me:
--- pbuilder-modules.orig 2010-12-28 17:28:38.000000000 +0100
+++ pbuilder-modules 2011-06-18 22:35:24.000000000 +0200
@@ -300,6 +300,11 @@
## function to clean subdirs, use instead of rm -r
function clean_subdirectories () {
+ if [ $PRESERVE_BUILDPLACE = "yes" ]; then
+ log "W: Be sure to clean up the directory $1 manually"
+ return
+ fi
+ echo "clean_subdirectories(): preserve the build environment"
if [ -z "$1" ]; then
log "E: Fatal internal error in clean_subdirectories"
exit 1;
Kind regards,
--Toni++
-- System Information:
Debian Release: 6.0.1
APT prefers stable
APT policy: (990, 'stable'), (500, 'stable-updates'), (500, 'proposed-updates'), (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-xen-686 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages pbuilder depends on:
ii coreutils 8.5-1 GNU core utilities
ii debconf [debconf-2.0] 1.5.36.1 Debian configuration management sy
ii debianutils 3.4 Miscellaneous utilities specific t
ii debootstrap 1.0.26+squeeze1 Bootstrap a basic Debian system
ii wget 1.12-2.1 retrieves files from the web
Versions of packages pbuilder recommends:
ii devscripts 2.10.69+squeeze1 scripts to make the life of a Debi
ii fakeroot 1.14.4-1 Gives a fake root environment
ii sudo 1.7.4p4-2.squeeze.2 Provide limited super user privile
Versions of packages pbuilder suggests:
ii cowdancer 0.62+nmu2 Copy-on-write directory tree utili
ii gdebi-core 0.6.4 Simple tool to install deb files
pn pbuilder-uml <none> (no description available)
-- Configuration Files:
/etc/pbuilder/buildd-config.sh changed [not included]
-- debconf information excluded
-- debsums errors found:
debsums: changed file /usr/lib/pbuilder/pbuilder-modules (from pbuilder package)
More information about the Pbuilder-maint
mailing list