[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#532760: dpkg-genchanges should warn about unused substvars



Package: dpkg-dev
Version: 1.15.2
Severity: wishlist
File: /usr/bin/dpkg-gencontrol

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

a lot of debhelper programs for specific types of packages (python
libraries, haskell libraries, etc.) add substvars of various kinds –
Depends, Recommends, Suggests. It is easy to forget to add one of these
to debian/control. Therefore, the maintainer should be warned about
this.

It seems, though, that this can not be done as a lintian check, as
lintian does not see the automatically generated substvars files.

Therefore, dpkg-generated should warn about unused substvars. This could
be implemented in Dpkg::Substvars by remembering which vars have been
get()ted after being set()ted, and returning this list upon request.

Please indicate if you agree and are willing to accept a patch.

Greetings,
Joachim


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

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

Versions of packages dpkg-dev depends on:
ii  binutils                      2.19.1-1   The GNU assembler, linker and bina
ii  bzip2                         1.0.5-2    high-quality block-sorting file co
ii  dpkg                          1.15.2     Debian package management system
ii  libtimedate-perl              1.1600-9   Time and date functions for Perl
ii  lzma                          4.43-14    Compression method of 7z format in
ii  make                          3.81-5     The GNU version of the "make" util
ii  patch                         2.5.9-5    Apply a diff file to an original
ii  perl [perl5]                  5.10.0-22  Larry Wall's Practical Extraction 
ii  perl-modules                  5.10.0-22  Core Perl modules

Versions of packages dpkg-dev recommends:
ii  build-essential               11.4       Informational list of build-essent
ii  gcc [c-compiler]              4:4.3.3-8  The GNU C compiler
ii  gcc-4.1 [c-compiler]          4.1.2-25   The GNU C compiler
ii  gcc-4.3 [c-compiler]          4.3.3-10   The GNU C compiler
ii  gnupg                         1.4.9-4    GNU privacy guard - a free PGP rep
ii  gpgv                          1.4.9-4    GNU privacy guard - signature veri

Versions of packages dpkg-dev suggests:
ii  debian-keyring                2009.05.28 GnuPG (and obsolete PGP) keys of D
pn  debian-maintainers            <none>     (no description available)

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkow8icACgkQ9ijrk0dDIGyQwgCcCoJMfv5lPlCGyWYz1uWhS719
Q3kAn0m0y9DmoBXMzdc2YFi60hCZ4hLO
=Sm1q
-----END PGP SIGNATURE-----



Reply to: