Re: [gentoo-user] virtual problem : how can I unmerge Nano ?
140429 Philip Webb wrote: > 140429 Neil Bothwick wrote: 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. I have submitted Bug 510390. -- ,, SUPPORT ___//___, Philip Webb ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto TRANSIT`-O--O---' purslowatchassdotutorontodotca
Re: [gentoo-user] virtual problem : how can I unmerge Nano ?
On Tuesday 29 Apr 2014 08:19:15 Philip Webb wrote: > I sometimes have the feeling Portage's behaviour is not fully thought out > & often that Portage advisory messages are written by Martians (grin). Regular readers* will know that I have my problems with portage from time to time, but accusing it of those sins is going much too far, grin or not. It's very well thought out (with the possible exception of subslots, which I'll leave for others to comment on) and manages the installed system extremely well. I'd hate to have to start from scratch with a replacement for it. Come back in a month and I'm sure you'll feel better about it :-) * Off-topic note for American readers: as far as I'm concerned, "regular" does not mean "ordinary". That neologism is even polluting our high streets over here. -- Regards Peter
Re: [gentoo-user] virtual problem : how can I unmerge Nano ?
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 ` > 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
Re: [gentoo-user] virtual problem : how can I unmerge Nano ?
On Tue, 29 Apr 2014 06:16:03 -0400, Philip Webb wrote: > > On Tue, 29 Apr 2014 01:17:08 -0400, Philip Webb wrote: > >> Yes, I can do 'emerge -C nano', but that is brute force & deprecated. > > Deprecated? Really? I must have missed that. > > root:565 ~> emerge -C nano >* This action can remove important packages! In order to be safer, > use >* `emerge -pv --depclean ` to check for reverse dependencies > before >* removing packages. >!!! 'app-editors/nano' (virtual/editor) is part of your system > profile. !!! Unmerging it may be damaging to your system. >>>> Waiting 10 seconds before starting... >>>> (Control-C to abort)... >Press Ctrl-C to Stop in: 10 9^C >Exiting on signal 2 > root:566 ~> emerge -pv --depclean nano >Calculating dependencies... done! >app-editors/nano-2.3.2 pulled in by: > virtual/editor-0 requires app-editors/nano > > 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. I wouldn't. If it was deprecated, it would say so. All this message says it that using -c is safer than -C, not that -C should not be used. rm -f is less safe than rm -i but it is not deprecated. > >> The ebuild has a long list of possible editors, > >> incl Vim Ed Nano, but nothing singling out Nano, > > Except that nano is first in the list and portage takes > > the first available dependency as satisfying the virtual. > > Doesn't Portage check whether any of the others are installed ?! Apparently not. As long as the dependency is satisfied, so is portage. Extra checking would only slow down portage's dependency resolution even more. > > Unmerge nano and portage will look at the rest of the list, > > be satisfied with vim and not try to re-emerge nano. > > The output above mentions "your system profile". > My @system contains virtual/editor , but not app-editors/nano . And the output above shows that nano is considered part of @system because of the virtual. > I'ld call this a bug in Portage. > Any other comments before I "damage my system" (output above) ? How could removing nano damage your system? Or do you have something that relies on nano to be able to boot? I uninstall nano like this whenever I install a Gentoo system, as I use either Joe or Emacs. I suppose that, at a pinch, Vim would do instead of a proper editor :P -- Neil Bothwick I heard someone tried the monkeys-on-typewriters bit trying for the plays of W. Shakespeare but all they got was the collected works of Francis Bacon signature.asc Description: PGP signature
Re: [gentoo-user] virtual problem : how can I unmerge Nano ?
140429 Neil Bothwick wrote: > On Tue, 29 Apr 2014 01:17:08 -0400, Philip Webb wrote: >> Yes, I can do 'emerge -C nano', but that is brute force & deprecated. > Deprecated? Really? I must have missed that. root:565 ~> emerge -C nano * This action can remove important packages! In order to be safer, use * `emerge -pv --depclean ` to check for reverse dependencies before * removing packages. !!! 'app-editors/nano' (virtual/editor) is part of your system profile. !!! Unmerging it may be damaging to your system. >>> Waiting 10 seconds before starting... >>> (Control-C to abort)... Press Ctrl-C to Stop in: 10 9^C Exiting on signal 2 root:566 ~> emerge -pv --depclean nano Calculating dependencies... done! app-editors/nano-2.3.2 pulled in by: virtual/editor-0 requires app-editors/nano 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. > Brute force, maybe, but it is the answer. >> The ebuild has a long list of possible editors, >> incl Vim Ed Nano, but nothing singling out Nano, > Except that nano is first in the list and portage takes > the first available dependency as satisfying the virtual. Doesn't Portage check whether any of the others are installed ?! > Unmerge nano and portage will look at the rest of the list, > be satisfied with vim and not try to re-emerge nano. The output above mentions "your system profile". My @system contains virtual/editor , but not app-editors/nano . I'ld call this a bug in Portage. Any other comments before I "damage my system" (output above) ? -- ,, SUPPORT ___//___, Philip Webb ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto TRANSIT`-O--O---' purslowatchassdotutorontodotca
Re: [gentoo-user] virtual problem : how can I unmerge Nano ?
On Tue, 29 Apr 2014 01:17:08 -0400, Philip Webb wrote: > > Usually nano can be removed with emerge --depclean > > Yes, I can do 'emerge -C nano', but that is brute force & deprecated. Deprecated? Really? I must have missed that. Brute force, maybe, but it is the answer. > I've checked 'man portage' & 'man emerge' & the virtual/editor ebuild. > Acc to 'man portage' it sb possible to tell the virtual to accept Vim > or Ed via /etc/make.profiles > -> /usr/portage/profiles/default/linux/amd64/13.0 by adding a file > 'virtuals' w a line 'virtual/editorapp-editors/vim', but this has > no effect. The ebuild has a long list of possible editors, incl Vim Ed > Nano, but nothing singling out Nano, Except that nano is first in the list and portage takes the first available dependency as satisfying the virtual. Unmerge nano and portage will look at the rest of the list, be satisfied with vim and not try to re-emerge nano. -- Neil Bothwick The three Rs of Microsoft support: Retry, Reboot, Reinstall. signature.asc Description: PGP signature
Re: [gentoo-user] virtual problem : how can I unmerge Nano ?
140428 Michael Mair-Keimberger wrote: > On Mon, Apr 28, 2014 at 10:32:22AM -0400, Philip Webb wrote: >> I never use Nano -- Vim or Ed are available in a raw terminal -- >> & would like to unmerge it, but Portage tells me >> virtual/editor requires it & @system requires virtual/editor . > You can set your editor of choice with eselect: > eselect editor list > eselect editor set $(editor_of_choice) I've done that, but it doesn't alter Portage behaviour. > Usually nano can be removed with emerge --depclean Yes, I can do 'emerge -C nano', but that is brute force & deprecated. I've checked 'man portage' & 'man emerge' & the virtual/editor ebuild. Acc to 'man portage' it sb possible to tell the virtual to accept Vim or Ed via /etc/make.profiles -> /usr/portage/profiles/default/linux/amd64/13.0 by adding a file 'virtuals' w a line 'virtual/editorapp-editors/vim', but this has no effect. The ebuild has a long list of possible editors, incl Vim Ed Nano, but nothing singling out Nano, so Portage must be getting its instruction from somewhere else. Does anyone have better info ? -- ,, SUPPORT ___//___, Philip Webb ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto TRANSIT`-O--O---' purslowatchassdotutorontodotca
Re: [gentoo-user] virtual problem : how can I unmerge Nano ?
Philip Webb wrote: > I never use Nano -- Vim or Ed are available in a raw terminal -- > & would like to unmerge it, but Portage tells me > that virtual/editor requires it & that @system requires virtual/editor . > > How can I tell Portage that Vim or Ed satisfy virtual/editor ? > As Mick said, it has been a while. I think if you emerge the editor you want and change any config files that need to be changed then portage will let you unmerge nano. If I recall correctly, once some other editor is installed that will satisfy the virtual then it should let you unmerge the others without complaining. On this one tho, there may be a config that needs to be edited as well. I would search for any mention of nano in /etc and change anything that shows up containing it. Hope that helps. They do get confusing at times. Dale :-) :-) -- I am only responsible for what I said ... Not for what you understood or how you interpreted my words!
Re: [gentoo-user] virtual problem : how can I unmerge Nano ?
On Mon, Apr 28, 2014 at 10:32:22AM -0400, Philip Webb wrote: > I never use Nano -- Vim or Ed are available in a raw terminal -- > & would like to unmerge it, but Portage tells me > that virtual/editor requires it & that @system requires virtual/editor . > > How can I tell Portage that Vim or Ed satisfy virtual/editor ? > > -- > ,, > SUPPORT ___//___, Philip Webb > ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto > TRANSIT`-O--O---' purslowatchassdotutorontodotca > > You can set your editor of choice with eselect: eselect editor list eselect editor set $(editor_of_choice) Usually nano can be removed with emerge --deplcean, but it might be included in your world file. emerge --deselect nano should remove it from your world file too :) -- greetings Michael Mair-Keimberger signature.asc Description: Digital signature
Re: [gentoo-user] virtual problem : how can I unmerge Nano ?
On Monday 28 Apr 2014 15:32:22 Philip Webb wrote: > I never use Nano -- Vim or Ed are available in a raw terminal -- > & would like to unmerge it, but Portage tells me > that virtual/editor requires it & that @system requires virtual/editor > . > > How can I tell Portage that Vim or Ed satisfy virtual/editor ? I think if you set your /etc/env.d/99editor to the application you want (not nano, in your case) then portage should not bother you again - but could be wrong. This was discussed many moons ago in this list, but my memory is not what it used to be. :p -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] virtual problem : how can I unmerge Nano ?
On 04/28/2014 07:32 AM, Philip Webb wrote: > I never use Nano -- Vim or Ed are available in a raw terminal -- > & would like to unmerge it, but Portage tells me > that virtual/editor requires it & that @system requires virtual/editor . > > How can I tell Portage that Vim or Ed satisfy virtual/editor ? > Have you tried: $ emerge -C app-editors/nano && emerge app-editors/vim virtual/editor Dan
[gentoo-user] virtual problem : how can I unmerge Nano ?
I never use Nano -- Vim or Ed are available in a raw terminal -- & would like to unmerge it, but Portage tells me that virtual/editor requires it & that @system requires virtual/editor . How can I tell Portage that Vim or Ed satisfy virtual/editor ? -- ,, SUPPORT ___//___, Philip Webb ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto TRANSIT`-O--O---' purslowatchassdotutorontodotca