140429 Neil Bothwick wrote:
> On Tue, 29 Apr 2014 06:16:03 -0400, Philip Webb wrote:
PW> Yes, I can do 'emerge -C nano', but that is brute force & deprecated.
NB> Deprecated? Really? I must have missed that.
PW>   * This action can remove important packages!
>     * In order to be safer, use `emerge -pv --depclean <atom>`
> I'ld say that means 'deprecated' as much as anything does, 
> ie "in order to be safer" do it in a different but recommended way.
NB> I wouldn't.  If it was deprecated, it would say so.

'Deprecate' has  2  meanings here : (1) technical, in software circles,
(2) common, = 'disapprove of', 'advise against' etc.

NB> All this message says is that using -c is safer than -C,
> not that -C should not be used.
PW> The ebuild has a long list of possible editors,
> incl Vim Ed Nano, but nothing singling out Nano.
NB> Except that nano is first in the list and portage takes
> the first available dependency as satisfying the virtual.
PW> Doesn't Portage check whether any of the others are installed ?!
NB> Apparently not. As long as the dependency is satisfied, so is portage.
> Extra checking would only slow down dependency resolution even more.

Not much & it trades off against avoiding long scary output.

NB> Unmerge nano and portage will look at the rest of the list,
> be satisfied with vim and not try to re-emerge nano.
> I uninstall nano like this whenever I install a Gentoo system,
> as I use either Joe or Emacs.

Yes, Portage does as you describe :

  root:567 ~> emerge -C nano   
   * This action can remove important packages! In order to be safer ...
   Waiting 10 seconds before starting ...
   All selected packages: app-editors/nano-2.3.2 ...
   Waiting 5 seconds before starting ...
   Unmerging (1 of 1) app-editors/nano-2.3.2 ...
  root:568 ~> emerge -cpv vim
   Calculating dependencies ... 
    app-editors/vim-7.4.131 pulled in by ...
    virtual/editor-0 requires app-editors/vim
    No packages selected for removal by depclean
  root:569 ~>

I sometimes have the feeling Portage's behaviour is not fully thought out
& often that Portage advisory messages are written by Martians (grin).

-- 
========================,,============================================
SUPPORT     ___________//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT    `-O----------O---'   purslowatchassdotutorontodotca


Reply via email to