Package: debhelper Version: 4.0.6 Severity: serious Hi all,
On Sat, May 25, 2002 at 03:28:35PM -0500, Branden Robinson wrote: > On Sat, May 25, 2002 at 03:42:40PM -0400, Clint Adams wrote: > > Below is a list of packages that may use 'command -v' in their #!/bin/sh > > postinsts. Section 11.4 of Policy states that /bin/sh can be a symlink > > to any POSIX-compatible shell, with an exception for 'echo', and that > > package #!/bin/sh scripts must not use "non-POSIX" features. Since > > there is no 'command' binary in a package marked Essential, > > the use of 'command -v' is a policy violation. > > > > Other than ignoring this problem, solutions include > [...] > > 2) Amending policy with another /bin/sh exception. > > That's my preference. Of course, I am hardly unbiased as I pretty > consistently and deliberately use command -v in my maintainer scripts. As someone else noted before this bug is, in most cases, caused by debhelper code added to maintainer scripts: postinst-doc-base:if [ "$1" = configure ] && command -v install-docs >/dev/null 2>&1; then postinst-suid: if command -v suidregister >/dev/null 2>&1 && [ -e /etc/suid.conf ]; then postrm-suid: command -v suidunregister >/dev/null 2>&1; then prerm-doc-base: command -v install-docs >/dev/null 2>&1; then The same goal can be achived with other commands or shell builtin. ciao, -- Luca - De Whiskey's - De Vitis | Elegant or ugly code as well aliases: Luca ^De [A-Z][A-Za-z\-]*[iy]'\?s$ | as fine or rude sentences have Luca, a wannabe ``Good guy''. | something in common: they local LANG="[EMAIL PROTECTED]" | don't depend on the language.
pgpnBmKW3hlIJ.pgp
Description: PGP signature