* [gentoo-user] portage wants to remove less and nano
@ 2011-10-06 20:47 Niccolò Belli
2011-10-06 21:02 ` Alex Schuster
` (2 more replies)
0 siblings, 3 replies; 14+ messages in thread
From: Niccolò Belli @ 2011-10-06 20:47 UTC (permalink / raw
To: gentoo-user
Here is after an emerge -av --depclean:
!!! 'app-editors/nano' (virtual/editor) is part of your system profile.
!!! Unmerging it may be damaging to your system.
app-editors/nano
selected: 2.2.5
protected: none
omitted: none
!!! 'sys-apps/less' (virtual/pager) is part of your system profile.
!!! Unmerging it may be damaging to your system.
sys-apps/less
selected: 441
protected: none
omitted: none
Portage version is 2.2.0_alpha62.
Niccolò
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] portage wants to remove less and nano
2011-10-06 20:47 [gentoo-user] portage wants to remove less and nano Niccolò Belli
@ 2011-10-06 21:02 ` Alex Schuster
2011-10-06 21:15 ` [gentoo-user] " Nikos Chantziaras
2011-10-06 21:04 ` [gentoo-user] " Florian Philipp
2011-10-06 21:09 ` David Abbott
2 siblings, 1 reply; 14+ messages in thread
From: Alex Schuster @ 2011-10-06 21:02 UTC (permalink / raw
To: gentoo-user
Niccolò Belli writes:
> Here is after an emerge -av --depclean:
>
> !!! 'app-editors/nano' (virtual/editor) is part of your system profile.
>
>
> !!! Unmerging it may be damaging to your system.
This is somewhat surprising, but intended and correct, it has been
discussed here some months ago. Just add those to your world file (using
emerge -n).
Wonko
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] portage wants to remove less and nano
2011-10-06 20:47 [gentoo-user] portage wants to remove less and nano Niccolò Belli
2011-10-06 21:02 ` Alex Schuster
@ 2011-10-06 21:04 ` Florian Philipp
2011-10-06 21:09 ` David Abbott
2 siblings, 0 replies; 14+ messages in thread
From: Florian Philipp @ 2011-10-06 21:04 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 605 bytes --]
Am 06.10.2011 22:47, schrieb Niccolò Belli:
> Here is after an emerge -av --depclean:
>
> !!! 'app-editors/nano' (virtual/editor) is part of your system profile.
>
> !!! Unmerging it may be damaging to your system.
>
[...]
Yes, that is a known issue. Just add nano and less to @world with
emerge --noreplace app-editors/nano sys-apps/less
Or you could just emerge a different editor and pager. If you have
something else you can put in EDITOR and PAGER, you don't need those
packages and that is why portage no longer requires you to have them
installed.
Regards,
Florian Philipp
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] portage wants to remove less and nano
2011-10-06 20:47 [gentoo-user] portage wants to remove less and nano Niccolò Belli
2011-10-06 21:02 ` Alex Schuster
2011-10-06 21:04 ` [gentoo-user] " Florian Philipp
@ 2011-10-06 21:09 ` David Abbott
2011-10-07 2:06 ` Dale
2011-10-07 9:15 ` Niccolò Belli
2 siblings, 2 replies; 14+ messages in thread
From: David Abbott @ 2011-10-06 21:09 UTC (permalink / raw
To: gentoo-user
2011/10/6 Niccolò Belli <darkbasic@linuxsystems.it>:
> Here is after an emerge -av --depclean:
>
> !!! 'app-editors/nano' (virtual/editor) is part of your system profile.
>
> !!! Unmerging it may be damaging to your system.
>
To see your default editor and pager;
eselect editor list && eselect pager list
Then to set;
eselect editor set 1
To add a package to your world set;
emerge -n nano
HTH
David
^ permalink raw reply [flat|nested] 14+ messages in thread
* [gentoo-user] Re: portage wants to remove less and nano
2011-10-06 21:02 ` Alex Schuster
@ 2011-10-06 21:15 ` Nikos Chantziaras
2011-10-06 21:31 ` Michael Schreckenbauer
0 siblings, 1 reply; 14+ messages in thread
From: Nikos Chantziaras @ 2011-10-06 21:15 UTC (permalink / raw
To: gentoo-user
On 10/07/2011 12:02 AM, Alex Schuster wrote:
> Niccolò Belli writes:
>
>> Here is after an emerge -av --depclean:
>>
>> !!! 'app-editors/nano' (virtual/editor) is part of your system profile.
>>
>>
>> !!! Unmerging it may be damaging to your system.
>
> This is somewhat surprising, but intended and correct, it has been
> discussed here some months ago. Just add those to your world file (using
> emerge -n).
Weird. dispatch-conf certainly needs 'less'. Why isn't it a dep?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Re: portage wants to remove less and nano
2011-10-06 21:15 ` [gentoo-user] " Nikos Chantziaras
@ 2011-10-06 21:31 ` Michael Schreckenbauer
0 siblings, 0 replies; 14+ messages in thread
From: Michael Schreckenbauer @ 2011-10-06 21:31 UTC (permalink / raw
To: gentoo-user
On Friday, 7. October 2011 00:15:23 Nikos Chantziaras wrote:
> On 10/07/2011 12:02 AM, Alex Schuster wrote:
> > Niccolò Belli writes:
> >> Here is after an emerge -av --depclean:
> >>
> >> !!! 'app-editors/nano' (virtual/editor) is part of your system
> >> profile.
> >>
> >>
> >> !!! Unmerging it may be damaging to your system.
> >
> > This is somewhat surprising, but intended and correct, it has been
> > discussed here some months ago. Just add those to your world file (using
> > emerge -n).
>
> Weird. dispatch-conf certainly needs 'less'.
No. It needs a pager.
> Why isn't it a dep?
Because dispatch-conf can use any pager.
Best,
Michael
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] portage wants to remove less and nano
2011-10-06 21:09 ` David Abbott
@ 2011-10-07 2:06 ` Dale
2011-10-07 2:19 ` Michael Orlitzky
2011-10-07 9:15 ` Niccolò Belli
1 sibling, 1 reply; 14+ messages in thread
From: Dale @ 2011-10-07 2:06 UTC (permalink / raw
To: gentoo-user
David Abbott wrote:
> 2011/10/6 Niccolò Belli<darkbasic@linuxsystems.it>:
>> Here is after an emerge -av --depclean:
>>
>> !!! 'app-editors/nano' (virtual/editor) is part of your system profile.
>>
>> !!! Unmerging it may be damaging to your system.
>>
> To see your default editor and pager;
> eselect editor list&& eselect pager list
> Then to set;
> eselect editor set 1
> To add a package to your world set;
> emerge -n nano
> HTH
> David
>
>
One would think that if it is the selected and only one installed, it
wouldn't try to remove it. Isn't this what virtuals are for? Portage
needs one pager from the following list and as long as one is installed,
portage is happy and doesn't try to remove it.
I know, this has been discussed and the devs still let it do this. < sighs >
Dale
:-) :-)
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] portage wants to remove less and nano
2011-10-07 2:06 ` Dale
@ 2011-10-07 2:19 ` Michael Orlitzky
2011-10-07 7:30 ` Alan McKinnon
0 siblings, 1 reply; 14+ messages in thread
From: Michael Orlitzky @ 2011-10-07 2:19 UTC (permalink / raw
To: gentoo-user
On 10/06/2011 10:06 PM, Dale wrote:
>
> One would think that if it is the selected and only one installed, it
> wouldn't try to remove it. Isn't this what virtuals are for? Portage
> needs one pager from the following list and as long as one is installed,
> portage is happy and doesn't try to remove it.
>
> I know, this has been discussed and the devs still let it do this. < sighs >
>
That's how it works with regards to virtuals. It will only remove 'less'
if you have some other pager installed.
It currently *will* remove 'less' while it's eselected as the pager.
There's an underwhelming bug for this:
https://bugs.gentoo.org/show_bug.cgi?id=367611
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] portage wants to remove less and nano
2011-10-07 2:19 ` Michael Orlitzky
@ 2011-10-07 7:30 ` Alan McKinnon
2011-10-07 14:03 ` Michael Orlitzky
0 siblings, 1 reply; 14+ messages in thread
From: Alan McKinnon @ 2011-10-07 7:30 UTC (permalink / raw
To: gentoo-user
On Thu, 06 Oct 2011 22:19:44 -0400
Michael Orlitzky <michael@orlitzky.com> wrote:
> On 10/06/2011 10:06 PM, Dale wrote:
> >
> > One would think that if it is the selected and only one installed,
> > it wouldn't try to remove it. Isn't this what virtuals are for?
> > Portage needs one pager from the following list and as long as one
> > is installed, portage is happy and doesn't try to remove it.
> >
> > I know, this has been discussed and the devs still let it do this.
> > < sighs >
> >
>
> That's how it works with regards to virtuals. It will only remove
> 'less' if you have some other pager installed.
>
> It currently *will* remove 'less' while it's eselected as the pager.
> There's an underwhelming bug for this:
>
> https://bugs.gentoo.org/show_bug.cgi?id=367611
>
Didn't we thrash this one to death already 2 months ago?
Wasn't Zac's response that virtuals are inappropriate in the system set?
--
Alan McKinnnon
alan.mckinnon@gmail.com
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] portage wants to remove less and nano
2011-10-06 21:09 ` David Abbott
2011-10-07 2:06 ` Dale
@ 2011-10-07 9:15 ` Niccolò Belli
2011-10-07 11:25 ` Willie Wong
1 sibling, 1 reply; 14+ messages in thread
From: Niccolò Belli @ 2011-10-07 9:15 UTC (permalink / raw
To: gentoo-user
Il 06/10/2011 23:09, David Abbott ha scritto:
> To see your default editor and pager;
> eselect editor list&& eselect pager list
It's strange, there was no defaults editor and pager...
laptop ~ # eselect editor list && eselect pager list
Available targets for the EDITOR variable:
[1] /bin/nano
[2] /usr/bin/ex
[3] /usr/bin/vi
[ ] (free form)
Available targets for the PAGER variable:
[1] /bin/more
[2] /usr/bin/less
[ ] (free form)
laptop ~ # eselect editor show
EDITOR variable in profile:
(none)
laptop ~ # eselect pager show
PAGER variable in profile:
(none)
I'm pretty sure I never unset them...
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] portage wants to remove less and nano
2011-10-07 9:15 ` Niccolò Belli
@ 2011-10-07 11:25 ` Willie Wong
2011-10-07 11:30 ` Niccolò Belli
0 siblings, 1 reply; 14+ messages in thread
From: Willie Wong @ 2011-10-07 11:25 UTC (permalink / raw
To: gentoo-user
On Fri, Oct 07, 2011 at 11:15:33AM +0200, Niccolò Belli wrote:
> Il 06/10/2011 23:09, David Abbott ha scritto:
> >To see your default editor and pager;
> >eselect editor list&& eselect pager list
>
> It's strange, there was no defaults editor and pager...
>
> laptop ~ # eselect editor list && eselect pager list
> Available targets for the EDITOR variable:
> [1] /bin/nano
> [2] /usr/bin/ex
> [3] /usr/bin/vi
> [ ] (free form)
> Available targets for the PAGER variable:
> [1] /bin/more
> [2] /usr/bin/less
> [ ] (free form)
Most likely you've never set them. Use 'eselect editor set X' where X
is 1 for nano, 2 for ex, and 3 for vi etc.
W
--
Willie W. Wong wwong@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire
et vice versa ~~~ I. Newton
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] portage wants to remove less and nano
2011-10-07 11:25 ` Willie Wong
@ 2011-10-07 11:30 ` Niccolò Belli
2011-10-07 12:22 ` Albert W. Hopkins
0 siblings, 1 reply; 14+ messages in thread
From: Niccolò Belli @ 2011-10-07 11:30 UTC (permalink / raw
To: gentoo-user
Il 07/10/2011 13:25, Willie Wong ha scritto:
> Most likely you've never set them.
Shouldn't it ship with a default setting? Anyway even after setting a
default, portage still wants to remove both less and nano. I had to put
them in the world set.
Niccolò
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] portage wants to remove less and nano
2011-10-07 11:30 ` Niccolò Belli
@ 2011-10-07 12:22 ` Albert W. Hopkins
0 siblings, 0 replies; 14+ messages in thread
From: Albert W. Hopkins @ 2011-10-07 12:22 UTC (permalink / raw
To: gentoo-user
On Fri, 2011-10-07 at 13:30 +0200, Niccolò Belli wrote:
> Il 07/10/2011 13:25, Willie Wong ha scritto:
> > Most likely you've never set them.
>
> Shouldn't it ship with a default setting? Anyway even after setting a
> default, portage still wants to remove both less and nano. I had to put
> them in the world set.
I'll chime in. I know this has been discussed so many times... but it
seems the discussion recurs.
You *can* get away with not putting virtuals in your world file, even
with the new portage behavior. The trick is to not have any other
package satisfy the virtual. For example, I use most as my pager and
gvim as my editor. I uninstalled nano because I can't stand it and
never use it. I also uninstalled less because I use most. My world
file has neither most nor gvim in it, but because nothing else satisfies
the dependencies for virtual/pager and virtual/editor then they don't
get depclean'ed.
Of course this won't work for everyone. If you have to have 2 pagers
installed, for example. Where I think some people will come into a
problem is with sys-apps/util-linux[ncurses]. This satisfies the
virtual/pager dep so it may want to clean sys-apps/more. I don't have
the "ncurses" flag set for util-linux, so I don't have that issue.
Anyway a lot of people don't like the "new" behavior (which isn't really
new anymore). I can't say I'm enthused about the change, but if you
think about (for a while) it makes sense, and it's not like it's going
to kill you to put nano/more/whatever in your world file.
-a
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] portage wants to remove less and nano
2011-10-07 7:30 ` Alan McKinnon
@ 2011-10-07 14:03 ` Michael Orlitzky
0 siblings, 0 replies; 14+ messages in thread
From: Michael Orlitzky @ 2011-10-07 14:03 UTC (permalink / raw
To: gentoo-user
On 10/07/2011 03:30 AM, Alan McKinnon wrote:
>
> Didn't we thrash this one to death already 2 months ago?
>
> Wasn't Zac's response that virtuals are inappropriate in the system set?
>
I didn't pay too much attention back then, but for your second question,
these are all @system:
*virtual/dev-manager
*virtual/editor
*virtual/libc
*virtual/man
*virtual/os-headers
*virtual/package-manager
*virtual/pager
*virtual/ssh
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2011-10-07 14:05 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-06 20:47 [gentoo-user] portage wants to remove less and nano Niccolò Belli
2011-10-06 21:02 ` Alex Schuster
2011-10-06 21:15 ` [gentoo-user] " Nikos Chantziaras
2011-10-06 21:31 ` Michael Schreckenbauer
2011-10-06 21:04 ` [gentoo-user] " Florian Philipp
2011-10-06 21:09 ` David Abbott
2011-10-07 2:06 ` Dale
2011-10-07 2:19 ` Michael Orlitzky
2011-10-07 7:30 ` Alan McKinnon
2011-10-07 14:03 ` Michael Orlitzky
2011-10-07 9:15 ` Niccolò Belli
2011-10-07 11:25 ` Willie Wong
2011-10-07 11:30 ` Niccolò Belli
2011-10-07 12:22 ` Albert W. Hopkins
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox