Package: debhelper
Version: 8.0.0
Severity: wishlist

Hi,

please add a --no-log option to the dh_uto_* helper to prevent them from
appearing in debian/debhelper.log.

Rationale: I am going to package a software "program" that comes in two
variants "A" and "B" that need to selected at build time. I want to package
both variants and do the following:

override_dh_auto_build:
        dh_auto_build -- VARIANT=A
        cp program program-a
        dh_auto_build -- VARIANT=B

Obviously, this won't work, because the time stamps of all object files are
still up-to-date and thus they won't get rebuilt. So I have to do the
following:

override_dh_auto_build:
        dh_auto_build -- VARIANT=A
        cp program program-a
        $(MAKE) clean
        dh_auto_build -- VARIANT=B

But wait, there is a debhelper script for this:

override_dh_auto_build:
        dh_auto_build -- VARIANT=A
        cp program program-a
        dh_auto_clean
        dh_auto_build -- VARIANT=B

However, this will only work for the first build. If I try to build a second
time from the same source tree, "dh clean" will refuse to run dh_auto_clean,
because it is already in the debian/debhelper.log file. Thus things will
break...

So, what I am proposing is a --no-log option to explicitely keep single
debhelper script invokation from showing up in debian/debhelper.log. My rules
will would then look like the following:

override_dh_auto_build:
        dh_auto_build -- VARIANT=A
        cp program program-a
        dh_auto_clean --no-log
        dh_auto_build -- VARIANT=B

Thanks for considering this!

Cheers,
Fabian



-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (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:
pn  dh-make                       <none>     (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to