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

Re: command -v in postinsts violating policy

Hi Branden,

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.

Change the rules for all the Debian distribution because you find that
'command -v' is handy, seems quite excessive to me...

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="it_IT@euro"                     | don't depend on the language.

Attachment: pgpUVvQYYnhuG.pgp
Description: PGP signature

Reply to: