summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2012-05-13 13:09:39 -0400
committerJoey Hess <joey@kitenet.net>2012-05-13 13:09:39 -0400
commitd1838819356838365e623dee0d53ce8d3da1186d (patch)
tree30f7fe65365aad0b36f4cb04f8d36bd6baf55620
parentb312dcc7db36597a1b8624980dce8f958c2399f1 (diff)
dh_builddeb: Build udebs with xz compression, level 1, extreme strategy.
* dh_builddeb: Build udebs with xz compression, level 1, extreme strategy. This has been chosen to not need any more memory or cpu when uncompressing, while yeilding the best compressions for udebs. Thanks, Philipp Kern. * Depend on a new enough dpkg for above features. Backporters will need to revert these changes.
-rw-r--r--debian/changelog5
-rw-r--r--debian/control2
-rwxr-xr-xdh_builddeb3
3 files changed, 8 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog
index 7754fd6..6c0350f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,11 @@
debhelper (9.20120510) UNRELEASED; urgency=low
* Improve -v logging. Closes: #672448
+ * dh_builddeb: Build udebs with xz compression, level 1, extreme strategy.
+ This has been chosen to not need any more memory or cpu when uncompressing,
+ while yeilding the best compressions for udebs. Thanks, Philipp Kern.
+ * Depend on a new enough dpkg for above features. Backporters will need
+ to revert these changes.
-- Joey Hess <joeyh@debian.org> Fri, 11 May 2012 11:58:53 -0400
diff --git a/debian/control b/debian/control
index d8ba973..5a29b18 100644
--- a/debian/control
+++ b/debian/control
@@ -10,7 +10,7 @@ Homepage: http://kitenet.net/~joey/code/debhelper/
Package: debhelper
Architecture: all
-Depends: ${perl:Depends}, ${misc:Depends}, file (>= 3.23), dpkg-dev (>= 1.16.0), html2text, binutils, po-debconf, man-db (>= 2.5.1-1)
+Depends: ${perl:Depends}, ${misc:Depends}, file (>= 3.23), dpkg-dev (>= 1.16.2), html2text, binutils, po-debconf, man-db (>= 2.5.1-1)
Suggests: dh-make
Conflicts: dpkg-cross (<< 1.18), python-support (<< 0.5.3), python-central (<< 0.5.6), automake (<< 1.11.2)
Description: helper programs for debian/rules
diff --git a/dh_builddeb b/dh_builddeb
index 77da898..aa11c32 100755
--- a/dh_builddeb
+++ b/dh_builddeb
@@ -109,7 +109,8 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
if (! $filename) {
$filename="/".udeb_filename($package);
}
- doit("dpkg-deb", @{$dh{U_PARAMS}}, "--build", $tmp, $dh{DESTDIR}.$filename);
+ doit("dpkg-deb", "-z1", "-Zxz", "-Sextreme",
+ @{$dh{U_PARAMS}}, "--build", $tmp, $dh{DESTDIR}.$filename);
}
exit 0;
}