[debhelper-devel] Bug#794898: debhelper: [PATCH] dh_compress: fix specifying file lists

Rafael Kitover rkitover at gmail.com
Fri Aug 7 19:26:41 UTC 2015


Package: debhelper
Version: 9.20150101ubuntu1
Severity: normal
Tags: patch

When you specify a file list in rules to compress by e.g.:

override_dh_compress:
    dh_compress -- usr/share/doc/file1.txt usr/share/doc/file2.txt

If, for example, file1.txt is greater than 4k and dh_compress would
compress it anyway, then specifying it causes it to be duplicated and
causes the command to fail.

This patch fixes this problem by removing duplicates from the file list,
and also allows absolute paths in the file lists.

A test is included for the default and the desired behavior.

The patch is against debhelper git (via debcheckout debhelper.)

-- System Information:
Debian Release: jessie/sid
  APT prefers vivid-updates
  APT policy: (500, 'vivid-updates'), (500, 'vivid-security'), (500, 'vivid'), (100, 'vivid-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.19.0-25-generic (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages debhelper depends on:
ii  binutils      2.25-5ubuntu7
ii  dh-apparmor   2.9.1-0ubuntu9
ii  dpkg          1.17.25ubuntu1
ii  dpkg-dev      1.17.25ubuntu1
ii  file          1:5.20-1ubuntu2
ii  libdpkg-perl  1.17.25ubuntu1
ii  man-db        2.7.0.2-5
ii  perl          5.20.2-2
ii  po-debconf    1.0.16+nmu3

debhelper recommends no packages.

Versions of packages debhelper suggests:
ii  dh-make  1.20140617

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-fix-file-lists-and-abspaths-for-dh_compress-w-test.patch
Type: text/x-diff
Size: 4737 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20150807/00995840/attachment-0001.patch>


More information about the debhelper-devel mailing list