[Build-common-hackers] Bug#266982: DEB_VERBOSE_ALL option
Robert Millan
Robert Millan <rmh@debian.org>, 266982@bugs.debian.org
Fri, 20 Aug 2004 03:45:18 +0200
This is a multi-part MIME message sent by reportbug.
--===============1376360353==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
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
--===============1376360353==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="cdbs.diff"
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 $(_cdbs_tarball_dir) $(_cdbs_tar_verbose) -xzf $(patsubst stamp-%,%,$(notdir $@))
touch $@
$(addsuffix .bz,$(_cdbs_tarball_stamp_base)) $(addsuffix .bz2,$(_cdbs_tarball_stamp_base)):
- tar -C $(_cdbs_tarball_dir) -xjvf $(patsubst stamp-%,%,$(notdir $@))
+ tar -C $(_cdbs_tarball_dir) $(_cdbs_tar_verbose) -xjf $(patsubst stamp-%,%,$(notdir $@))
touch $@
$(addsuffix .zip,$(_cdbs_tarball_stamp_base)):
--===============1376360353==--