[debhelper-devel] Bug#778927: dh_compress: Please do not compress xz compressed files

Andreas Tille tille at debian.org
Sat Feb 21 21:13:25 UTC 2015


Package: debhelper
Severity: normal

Hi,

since #671544 is not yet fixed I tried to compress some large text files
that profit heavily from xz compression in an override before calling
dh_compress:

override_dh_compress:
	xz --best debian/$(pkg)/usr/share/doc/$(pkg)/largefile
	dh_compress


The surprising result was that I ended up with

    /usr/share/doc/$(pkg)/largefile.xz.gz

files in the package and thus was forced to use

override_dh_compress:
	xz --best debian/$(pkg)/usr/share/doc/$(pkg)/largefile
	dh_compress --exclude=.xz

This result is surprising since bz2 compressed files are not gzipped by
dh_compress.  So please do not compress .xz files.

Kind regards

     Andreas.

-- System Information:
Debian Release: 7.8
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



More information about the debhelper-devel mailing list