Bug#593457: lintian: Could check dpkg-vendor use in maintainer scripts
Package: lintian
Version: 2.4.3
Severity: normal
Hi,
while merging two packagings from Debian and Ubuntu, I tried to use
dpkg-vendor in the package postinst in order to act differently depending on
the distro the package is installed on.
While this seemed a good idea at first sight, it is not, because dpkg-vendor
is in dpkg-dev and normally not installed on user machines. So I should either
have had dpkg-dev as runtime pre-dependency or change the package building
process to alter the postinst at build time (which is smarter).
So I would have appreciated a lintian warning about that (which could be more
something along the lines of "uses dpkg-dev program in maintainer script").
TIA,
OdyX
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_CH.UTF-8, LC_CTYPE=fr_CH.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages lintian depends on:
ii binutils 2.20.1-12 The GNU assembler, linker and bina
ii diffstat 1.53-1 produces graph of changes introduc
ii dpkg-dev 1.15.7.2 Debian package development tools
ii file 5.04-5 Determines file type using "magic"
ii gettext 0.18.1.1-1 GNU Internationalization utilities
ii intltool-debian 0.35.0+20060710.1 Help i18n of RFC822 compliant conf
ii libapt-pkg-perl 0.1.24 Perl interface to libapt-pkg
ii libclass-accessor-perl 0.34-1 Perl module that automatically gen
ii libipc-run-perl 0.89-1 Perl module for running processes
ii libparse-debianchangel 1.1.1-2.1 parse Debian changelogs and output
ii libtimedate-perl 1.2000-1 collection of modules to manipulat
ii liburi-perl 1.54-1 module to manipulate and access UR
ii locales 2.11.2-2 Embedded GNU C Library: National L
ii man-db 2.5.7-3 on-line manual pager
ii perl [libdigest-sha-pe 5.10.1-14 Larry Wall's Practical Extraction
lintian recommends no packages.
Versions of packages lintian suggests:
pn binutils-multiarch <none> (no description available)
ii libtext-template-perl 1.45-1 Text::Template perl module
ii man-db 2.5.7-3 on-line manual pager
-- no debconf information
Reply to: