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

Bug#292981: lintian postinst and prerm are #!/bin/sh scripts but use command -v



Package: lintian
Version: 1.23.7
Severity: minor

"command -v" is not POSIX.  The postinst and prerm scripts use it and have
#!/bin/sh at the top, so they violate policy 10.4.

Possible solutions:

* Using #!/bin/bash eliminates the 10.4 violation.  However, there
  remains the additional problem that "command -v" doesn't really work
  as a check whether or not a command is runnable.  The string that it
  outputs is not necessarily the pathname of an executable file.
  (See #291197.)
* Use the which program from debianutils.
* Use the trydo() function I posted to #291026.
* Use the findcommand() function posted by Tollef Fog Heen in #218530.
* Assume that install-docs is at /usr/sbin/install-docs and just use
  test -x /usr/sbin/install-docs


-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing'), (50, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.9
Locale: LANG=en_IE@euro, LC_CTYPE=en_IE@euro (charmap=ISO-8859-15)

Versions of packages lintian depends on:
ii  binutils                   2.15-5        The GNU assembler, linker and bina
ii  diffstat                   1.35-1        produces graph of changes introduc
ii  file                       4.12-1        Determines file type using "magic"
ii  gettext                    0.14.1-7      GNU Internationalization utilities
ii  intltool-debian            0.30+20040213 Help i18n of RFC822 compliant conf
ii  man-db                     2.4.2-19      The on-line manual pager
ii  perl [libdigest-md5-perl]  5.8.4-5       Larry Wall's Practical Extraction 

-- no debconf information



Reply to: