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

Re: command -v in postinsts violating policy



On Sat, May 25, 2002 at 15:42:40 -0400, Clint Adams wrote:
> Other than ignoring this problem,

IMHO ignoring it is the right solution for woody. Most systems have bash as
their /bin/sh; when another shell is used for /bin/sh this tends to be a
less memory hungry one, ash, which handles 'command -v' the same way as bash
does, rather than a more memory hungy one like zsh (which doesn't handle
'command -v' the bash way).

> solutions include
> 
> 1) Filing 616 serious bugs against these packages so that the maintainer
> can either change the script interpreter to something other than /bin/sh
> or remove the offending 'command -v'

At least on my systems, the overwhelming majority of /bin/sh postinsts that
use "command -v" are ones where that "command -v" use is generated by
debhelper. This suggests to me a pragmatic solution:
- ignore this issue for woody
- change debhelper not to use "command -v"
- add a lintian check for "command -v" 
- recheck a month or two after woody's release, then file serious bugs for
  packages that haven't been fixed by then.

Ray
-- 
AJ: Geeez, Erwin. He wasn't even ARMED.
Erwin: I don't care. I have lots of ammo and he was wearing a TIE.
	http://ars.userfriendly.org/cartoons/?id=20010209


-- 
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: