View previous topic :: View next topic |
Author |
Message |
lyallp Veteran
Joined: 15 Jul 2004 Posts: 1557 Location: Adelaide/Australia
|
Posted: Mon Dec 19, 2011 2:54 am Post subject: [Solved] depclean wants to uninstall 'less' |
|
|
emerge --depclean wants to uninstall 'less'
Even though it warns me it's part of the system profile.
Why is portage wanting to remove it even though it knows it shouldn't? _________________ ...Lyall
Last edited by lyallp on Mon Dec 19, 2011 4:34 am; edited 1 time in total |
|
Back to top |
|
|
salahx Guru
Joined: 12 Mar 2005 Posts: 530
|
Posted: Mon Dec 19, 2011 3:40 am Post subject: |
|
|
ITs a not a bug, but rather a change in the way portage deals with dependencies. In this case, "less" the depency of a virtual (virtual/pager), if there's at least ONE of options install, any of the alternatives NOT in world or a direct dependency of some other package will be removed by --depclean. In this case, its most likely sys-apps/util-linux - which provides the "more" utility, therefore satifying virtual/pager.
So just do:
Code: |
emerge -n sys-apps/less
|
to add it to the world file. |
|
Back to top |
|
|
lyallp Veteran
Joined: 15 Jul 2004 Posts: 1557 Location: Adelaide/Australia
|
Posted: Mon Dec 19, 2011 4:34 am Post subject: |
|
|
Thanks, it was util-linux that stumped me... I don't have more or most, lv, or vim installed, hence the query. _________________ ...Lyall |
|
Back to top |
|
|
RazielFMX l33t
Joined: 23 Apr 2005 Posts: 835 Location: NY, USA
|
Posted: Tue Dec 20, 2011 3:28 pm Post subject: |
|
|
What is kind of annoying is that even if you choose less as your pager, depclean still wants to nuke it. I've added it to world, but it would be nice if depclean respected my settings.
Code: |
nightshade ~ # eselect pager list
Available targets for the PAGER variable:
[1] /bin/more
[2] /usr/bin/less *
[ ] (free form)
nightshade ~ #
|
|
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Tue Dec 20, 2011 3:39 pm Post subject: |
|
|
The reason this is true is that eselect isn't a Portage tool, but rather a Gentoo administration tool. You could argue that, being a Gentoo-authored tool, Portage should be aware of the settings it makes. However, even if true, that doesn't provide full coverage. One example is gcc-config, which is not a Gentoo tool.
For a little more background information on the Portage behavioral change and why it was done, see --depclean wants to remove nano!
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
|