Package: debhelper
Version: 8.0.0
Severity: normal

Hi Joey,

I think I found an error in debhelper in more complex situations when
I am removing packages from build on architecture/host basis.

When overriding dh_auto_clean it creates debhelper.log for package
listed in DH_OPTIONS as -N<package>.

Minimal test suite is attached.

After running ./debian/rules clean there is left-over file:

debian/test-doc.debhelper.log

which contains:

dh_auto_clean

line.  Since it doesn't make any difference if I duplicate -N option
explicitly in dh_auto_clean call I suspect it might be 'dh' creating
the file.

Unfortunatelly the dh_clean command does honor the DH_OPTIONS and
doesn't clean this file.

I have solved this for now, by adding:

override_dh_clean:
        DH_OPTIONS="" dh_clean  

but it's hardly optimal.

O.

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

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages debhelper depends on:
ii  binutils                     2.20.1-16   The GNU assembler, linker and bina
ii  dpkg-dev                     1.15.8.10   Debian package development tools
ii  file                         5.04-5      Determines file type using "magic"
ii  html2text                    1.3.2a-15   advanced HTML to text converter
ii  man-db                       2.5.7-8     on-line manual pager
ii  perl                         5.10.1-17   Larry Wall's Practical Extraction 
ii  perl-base                    5.10.1-17   minimal Perl system
ii  po-debconf                   1.0.16+nmu1 tool for managing templates file t

debhelper recommends no packages.

Versions of packages debhelper suggests:
ii  dh-make                       0.55       tool that converts source archives

-- no debconf information

Attachment: debhelper-spurious-logfile.tar.gz
Description: GNU Zip compressed data

Reply via email to