Package: debhelper
Version: 8.0.0
Severity: important

  Today, I tried to create a package. I pick some part of debian/rules of
one of my other packages. And my override_dh_... rules were ignored!
  Trying to isolate the problem, I succeed in reproducing it with a minimal
example. However, I really do not understand the current behavior.

vdanj...@eyak:/tmp$ mkdir foo-1.0
vdanj...@eyak:/tmp$ cd foo-1.0/
vdanj...@eyak:/tmp/foo-1.0$ touch Makefile.in
vdanj...@eyak:/tmp/foo-1.0$ dh_make -s --createorig
Maintainer name : Vincent Danjean
Email-Address   : vdanj...@debian.org 
Date                            : Wed, 24 Nov 2010 22:06:09 +0100
Package Name     : foo
Version                 : 1.0
License                 : blank
Using dpatch     : no
Type of Package : Single
Hit <enter> to confirm: 
Currently there is no top level Makefile. This may require additional tuning.
Done. Please edit the files in the debian/ subdirectory now. You should also
check that the foo Makefiles install into $DESTDIR and not in / .
vdanj...@eyak:/tmp/foo-1.0$ printf "override_dh_auto_clean:\n\techo coucou" >> 
debian/rules 
vdanj...@eyak:/tmp/foo-1.0$ DH_VERBOSE=1 dh clean
   dh_testdir
   dh_auto_clean
   dh_clean
        rm -f debian/foo.substvars
        rm -f debian/foo.*.debhelper
        rm -f debian/foo.debhelper.log
        rm -rf debian/foo/
        rm -f debian/files
        find .  \( \( -type f -a \
                \( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \
                 -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \
                 -o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \
                 -o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \
                \) -exec rm -f {} \; \) -o \
                \( -type d -a -name autom4te.cache -prune -exec rm -rf {} \; \) 
\)
        rm -f *-stamp
vdanj...@eyak:/tmp/foo-1.0$ rm Makefile.in 
rm : supprimer fichier vide « Makefile.in » ? y
vdanj...@eyak:/tmp/foo-1.0$ DH_VERBOSE=1 dh clean
   dh_testdir
   debian/rules override_dh_auto_clean
echo coucou
coucou
   dh_clean
        rm -f debian/foo.substvars
        rm -f debian/foo.*.debhelper
        rm -f debian/foo.debhelper.log
        rm -rf debian/foo/
        rm -f debian/files
        find .  \( \( -type f -a \
                \( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \
                 -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \
                 -o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \
                 -o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \
                \) -exec rm -f {} \; \) -o \
                \( -type d -a -name autom4te.cache -prune -exec rm -rf {} \; \) 
\)
        rm -f *-stamp
vdanj...@eyak:/tmp/foo-1.0$ 


With a (here empty) Makefile.in in the base directory, the override_dh_* rules
are ignored!

Is there something I'm missing or is there really a bug?

If it is really a bug, I think it can be grave as it can cause FTBFS of
other package. For example, I think now that the 'bug fix' [1] in my yaz
package was, in fact, a workaround for this bug. At that time, I did not really
understand why it was working before and not anymore but I was busy and did not
investigate more.

  Regards,
    Vincent

[1] 
http://git.debian.org/?p=collab-maint/yaz.git;a=blobdiff;f=debian/rules;h=b06457bad70a99bc4388930458a8469d4de21ad1;hp=54da58a39f55a4257f6883cec2af02f529f03423;hb=861744c940bbd1724035a2233b9d12fc65e5fb4f;hpb=9fbcd5d3d886fae21e42f4b9dad6c3d1b1739914

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.36-rc5-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages debhelper depends on:
ii  binutils              2.20.51.20100925-1 The GNU assembler, linker and bina
ii  dpkg-dev              1.15.8.5           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-6            on-line manual pager
ii  perl                  5.10.1-15          Larry Wall's Practical Extraction 
ii  perl-base             5.10.1-15          minimal Perl system
ii  po-debconf            1.0.16             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



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to