• Bug#266982: DEB_VERBOSE_ALL option

    From Robert Millan@1:229/2 to All on Fri Aug 20 04:10:08 2004
    From: [email protected]

    This is a multi-part MIME message sent by reportbug.

    Package: cdbs
    Version: 0.4.22-1
    Severity: wishlist
    Tags: patch

    The attached patch implements a DEB_VERBOSE_ALL option. When set to "yes",
    it turns the output of cdbs backends more verbose.

    - I choosed _ALL suffix with the perspective that this option may be
    later split in multiple ones.
    - Currently it only rules verbosity over tar and debhelper.

    -- System Information:
    Debian Release: 3.1
    APT prefers unstable
    APT policy: (500, 'unstable')
    Architecture: kfreebsd-i386 (i386)
    Kernel: GNU/kFreeBSD 5.2.1-5
    Locale: LANG=C, LC_CTYPE=C (ignored: LC_ALL set to C)

    -- no debconf information

    diff -ur cdbs-0.4.22.old/1/rules/debhelper.mk.in cdbs-0.4.22/1/rules/debhelper.mk.in
    --- cdbs-0.4.22.old/1/rules/debhelper.mk.in 2004-08-07 04:09:00.000000000 +0200
    +++ cdbs-0.4.22/1/rules/debhelper.mk.in 2004-08-20 03:41:13.000000000 +0200
    @@ -76,6 +76,10 @@

    DH_COMPAT=4

    +ifeq($(DEB_VERBOSE_ALL),yes)
    +DH_VERBOSE=1
    +endif
    +
    is_debug_package=$(if $(patsubst %-dbg,,$(cdbs_curpkg)),,yes)

    DEB_INSTALL_DIRS_ALL =
    diff -ur cdbs-0.4.22.old/1/rules/tarball.mk.in cdbs-0.4.22/1/rules/tarball.mk.in
    --- cdbs-0.4.22.old/1/rules/tarball.mk.in 2004-02-15 07:13:30.000000000 +0100
    +++ cdbs-0.4.22/1/rules/tarball.mk.in 2004-08-20 03:41:23.000000000 +0200
    @@ -53,14 +53,18 @@
    _cdbs_tarball_stamps = $(addprefix debian/stamp-,$(DEB_TARBALL))
    _cdbs_tarball_stamp_base = $(basename $(_cdbs_tarball_stamps))

    +ifeq ($(DEB_VERBOSE_ALL),yes)
    +_cdbs_tar_verbose = -v
    +endif
    +
    pre-build:: $(_cdbs_tarball_stamps)

    $(addsuffix .gz,$(_cdbs_tarball_stamp_base)) $(addsuffix .tgz,$(_cdbs_tarball_stamp_base)):
    - tar -C $(_cdbs_tarball_dir) -xzvf $(patsubst stamp-%,%,$(notdir $@))
    + tar -C $(_cdb