Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] depclean wants to uninstall 'less'
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1248
Location: Adelaide/Australia

PostPosted: Mon Dec 19, 2011 2:54 am    Post subject: [Solved] depclean wants to uninstall 'less' Reply with quote

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
View user's profile Send private message
salahx
Guru
Guru


Joined: 12 Mar 2005
Posts: 368

PostPosted: Mon Dec 19, 2011 3:40 am    Post subject: Reply with quote

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
View user's profile Send private message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1248
Location: Adelaide/Australia

PostPosted: Mon Dec 19, 2011 4:34 am    Post subject: Reply with quote

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
View user's profile Send private message
RazielFMX
l33t
l33t


Joined: 23 Apr 2005
Posts: 706
Location: NY, USA

PostPosted: Tue Dec 20, 2011 3:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7396
Location: Somewhere over Atlanta, Georgia

PostPosted: Tue Dec 20, 2011 3:39 pm    Post subject: Reply with quote

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
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum