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

Bug#345487: lintian: Add warning when Build-Depend on version number like 1.23-1 (should be 1.23)



Package: lintian
Version: 1.23.14
Severity: wishlist

I've been doing a couple of backports recently, and one error I frequently had to deal with were Build-Dependencies that include the debian revision number unnecessarily.
I.e. they depend on somelib (>= 1.23-1) while there never was a 1.23-0
but it is a best practice for backports to use 1.23-0backport1 (so they will be upgraded when possible)

The check is easy, I guess emitting a warning on any version number ending
in -1 is appropriate. There may be a few cases where this warning is
incorrect (e.g. there was a NMU which introduced a broken .h file, and this
was fixed in the -1 revision by the maintainer) but they're very unlikely
I think.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.14
Locale: LANG=de_DE.UTF-8@euro, LC_CTYPE=de_DE.UTF-8@euro (charmap=UTF-8)

Versions of packages lintian depends on:
ii  binutils             2.16.1cvs20051214-1 The GNU assembler, linker and bina
ii  diffstat             1.41-1              produces graph of changes introduc
ii  dpkg-dev             1.13.11             package building tools for Debian
ii  file                 4.15-2              Determines file type using "magic"
ii  gettext              0.14.5-2            GNU Internationalization utilities
ii  intltool-debian      0.34.1+20050828     Help i18n of RFC822 compliant conf
ii  libparse-debianchang 1.0-1               parse Debian changelogs and output
ii  man-db               2.4.3-3             The on-line manual pager
ii  perl [libdigest-md5- 5.8.7-10            Larry Wall's Practical Extraction 

lintian recommends no packages.

-- no debconf information



Reply to: