Bug#650710: lintian: please check for dpkg-maintscript-helper in preinst without pre-depends: dpkg (>= 1.15.7.2)
Package: lintian
Version: 2.5.4
Severity: wishlist
dpkg-maintscript-helper was introduced in dpkg 1.15.7.2, and that
version is required to use the dpkg-maintscript-helper mv_conffile and
rm_conffile subcommands.
The dpkg-maintscript-helper manpage recommends setting Pre-Depends:
dpkg (>= 1.15.7.2) in packages which use these features in the
preinst. However, since Squeeze released with a newer version than
that (1.15.8.11), this Pre-Depends is not strictly needed to upgrade
from Squeeze to Wheezy.
On the other hand, Ubuntu's last LTS (10.04 or Lucid) released with
dpkg 1.15.5.6, and does not include dpkg-maintscript helper, which
means that the Pre-Depends is necessary on Ubuntu to ensure a safe
upgrade from 10.04 to our next LTS, 12.04 (Precise)
It would be helpful of Lintian could catch preinsts using
dpkg-maintscript-helper without also setting the Pre-Depends.
As with bug #648350, this should be severity: serious for Ubuntu,
though I can't imagine a static analysis check that would have high
certainty, so it will probably have to be certainty: possible.
Thanks,
- Evan
-- System Information:
Debian Release: wheezy/sid
APT prefers oneiric-updates
APT policy: (500, 'oneiric-updates'), (500, 'oneiric-security'), (500, 'oneiric'), (100, 'oneiric-backports')
Architecture: amd64 (x86_64)
Kernel: Linux 3.0.0-13-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages lintian depends on:
ii binutils 2.21.53.20110810-0ubuntu5 The GNU assembler, linker and bina
ii bzip2 1.0.5-6ubuntu1 high-quality block-sorting file co
ii diffstat 1.54-1 produces graph of changes introduc
ii file 5.04-5ubuntu3 Determines file type using "magic"
ii gettext 0.18.1.1-3ubuntu1 GNU Internationalization utilities
ii intltool-debia 0.35.0+20060710.1 Help i18n of RFC822 compliant conf
ii libapt-pkg-per 0.1.24build3 Perl interface to libapt-pkg
ii libclass-acces 0.34-1 Perl module that automatically gen
ii libdpkg-perl 1.16.0.3ubuntu5 Dpkg perl modules
ii libemail-valid 0.184-1 Perl module for checking the valid
ii libipc-run-per 0.90-1 Perl module for running processes
ii libparse-debia 1.2.0-1ubuntu1 parse Debian changelogs and output
ii libtimedate-pe 1.2000-1 collection of modules to manipulat
ii liburi-perl 1.58-1 module to manipulate and access UR
ii locales 2.13+git20110622-2 common files for locale support
ii man-db 2.6.0.2-2 on-line manual pager
ii patchutils 0.3.2-1 Utilities to work with patches
ii perl [libdiges 5.12.4-4 Larry Wall's Practical Extraction
ii unzip 6.0-4ubuntu1 De-archiver for .zip files
lintian recommends no packages.
Versions of packages lintian suggests:
pn binutils-multiarch <none> (no description available)
ii dpkg-dev 1.16.0.3ubuntu5 Debian package development tools
ii libhtml-parser-perl 3.68-1build1 collection of modules that parse H
ii libtext-template-perl 1.45-2 Text::Template perl module
ii man-db 2.6.0.2-2 on-line manual pager
ii xz-utils 5.0.0-2 XZ-format compression utilities
-- no debconf information
Reply to: