Bug#446462: /usr/bin/vim is left broken when alternative is manual and points to vim-full

Stefano Zacchiroli zack at debian.org
Sat Oct 13 09:21:12 UTC 2007


On Sat, Oct 13, 2007 at 10:43:54AM +0200, Raphael Hertzog wrote:
> $ LANG=C update-alternatives --display vim
> vim - status is manual.

Uhm, are you sure this bug does apply only when the alternatives status
is manual? It happened to me as well and I'm quite sure mine
alternatives were set to "auto".

Nevertheless I ended up with vim/gvim returning both "command not
found".

For me, since the alternatives where automatic, the proper fix has been:

  # update-alternatives --auto vim
  # update-alternatives --auto gvim

Some other ways of reestablishing the proper alternatives (e.g.
update-alternatives --config vim/gvim) did not work, since the
alternatives system sees only one alternative and refuse to make the
user choose "among" them.

James, I think we can probably do an (conditional, only if set to some
of the disappeared variants) update-alternatives --auto in the postinst
or something like that.  This would change the semantics of manual
alternatives, but they would be broken anyhow, now that some variants
disappeared.

Cheers.

-- 
Stefano Zacchiroli -*- PhD in Computer Science ............... now what?
zack@{cs.unibo.it,debian.org,bononia.it} -%- http://www.bononia.it/zack/
(15:56:48)  Zack: e la demo dema ?    /\    All one has to do is hit the
(15:57:15)  Bac: no, la demo scema    \/    right keys at the right time
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20071013/2ecb0769/attachment-0001.pgp 


More information about the pkg-vim-maintainers mailing list