From a8144e96463a46854f6e305fa2fb1fbcd19f62d9 Mon Sep 17 00:00:00 2001 From: Tino Keitel Date: Tue, 22 Nov 2011 19:30:55 +0100 Subject: Bug#569917: Support base.tar.xz/bz2 as well as tgz Package: pbuilder Version: 0.203 Followup-For: Bug #569917 I cooked a little patch that adds a --compressprog command line option and COMPRESSPROG option in pbuilderrc. Tested with pigz, to get multithreaded, and therefore much faster compression/decompression, and xz. Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.1.0-00002-g5eeb7f9 (SMP w/4 CPU cores) Locale: LANG=C, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages pbuilder depends on: ii cdebootstrap 0.5.8+b1 ii coreutils 8.13-3 ii debconf [debconf-2.0] 1.5.41 ii debianutils 4.0.4 ii debootstrap 1.0.38 ii wget 1.13.4-1 Versions of packages pbuilder recommends: ii devscripts 2.11.2 ii fakeroot 1.18.1-1 ii sudo 1.8.3p1-2 Versions of packages pbuilder suggests: pn cowdancer 0.65 pn gdebi-core pn pbuilder-uml -- debconf information: pbuilder/mirrorsite: http://ftp.de.debian.org/debian/ pbuilder/nomirror: pbuilder/rewrite: false --- pbuilder-modules | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pbuilder-modules') diff --git a/pbuilder-modules b/pbuilder-modules index 3e55153..b596d5d 100644 --- a/pbuilder-modules +++ b/pbuilder-modules @@ -75,6 +75,7 @@ pbuilder-options: --debug --twice --autocleanaptcache + --compressprog [program] --debootstrapopts [debootstrap options] --save-after-login/--save-after-exec --debootstrap [debootstrap|cdebootstrap] @@ -434,7 +435,7 @@ function extractbuildplace () { log "E: failed to find $BASETGZ, have you done to create your base tarball yet?" exit 1 fi - if ! (cd "$BUILDPLACE" && tar xfzp "$BASETGZ"); then + if ! (cd "$BUILDPLACE" && tar -x --use-compress-program "$COMPRESSPROG" -p -f "$BASETGZ"); then log "E: failed to extract $BASETGZ to $BUILDPLACE" exit 1 fi @@ -508,7 +509,7 @@ function create_basetgz() { sleep 10s done log "I: creating base tarball [${BASETGZ}]" - if ! tar cfz "${BASETGZ}.tmp" * ; then + if ! tar -c --use-compress-program "$COMPRESSPROG" -f "${BASETGZ}.tmp" * ; then log "E: failed building base tarball" rm -f "${BASETGZ}.tmp" exit 1; -- cgit v1.2.3