Package: git-buildpackage Version: 0.5.10 Severity: wishlist Tags: patch
Hi, I find that my /var is too much space-constrained, and would like to use a different place to build at. Unfortunately, paths are largely hardwired into the system, but here's a patch to start changing that. It honors the BASEDIR variable, if set in /etc/pbuilderrc. Kind regards, --Toni++ -- System Information: Debian Release: 6.0.4 APT prefers stable APT policy: (990, 'stable'), (500, 'stable-updates'), (500, 'proposed-updates'), (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 3.2.0-0.bpo.1-686-pae (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 git-buildpackage depends on: ii devscripts 2.10.69+squeeze2 scripts to make the life of a Debi ii git [git-core] 1:1.7.2.5-3 fast, scalable, distributed revisi ii git-core 1:1.7.2.5-3 fast, scalable, distributed revisi ii python 2.6.6-3+squeeze6 interactive high-level object-orie ii python-dateutil 1.4.1-3 powerful extensions to the standar ii python-support 1.0.10 automated rebuilding support for P Versions of packages git-buildpackage recommends: ii cowbuilder 0.62+nmu2 pbuilder running on cowdancer ii pristine-tar 1.03 regenerate pristine tarballs Versions of packages git-buildpackage suggests: ii git-load-dirs 1.1.8 Import upstream archives into git -- no debconf information -- debsums errors found: debsums: changed file /usr/bin/git-pbuilder (from git-buildpackage package)
--- git-pbuilder.orig 2010-09-27 09:42:23.000000000 +0200 +++ git-pbuilder 2012-02-21 00:15:39.000000000 +0100 @@ -25,7 +25,11 @@ # The root directory where different cowbuilder --basepath directories are # found. git-pbuilder expects them to be named base-<dist>.cow. -COWBUILDER_BASE=/var/cache/pbuilder +if [ -f /etc/pbuilderrc ]; then + source /etc/pbuilderrc +fi +COWBUILDER_BASE=${BASEDIR:-/var/cache/pbuilder} + # Make sure we have the necessary tools if [ ! -x /usr/sbin/cowbuilder ]; then