Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 318249 - option to remove entries from /var/lib/portage/world which are dependencies of others
Summary: option to remove entries from /var/lib/portage/world which are dependencies o...
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-03 07:50 UTC by Arne Babenhauserheide
Modified: 2010-05-03 07:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arne Babenhauserheide 2010-05-03 07:50:20 UTC
Since my /var/lib/portage/world tends to grow unecessary entries from time to time, I’d love to see an option to clean out all entries from the world file which are actually dependencies of other entries is there — keeping circular dependencies. 

I just hit that when I started to customize my GentooXO (Gentoo stage4 on OLPC → http://gentooxo.org) for my own needs (mainly stripping it down). I had a lot of x11-libs entries in my world file from debugging sessions (“OK, what exactly is missing to make is work?”) and I realized that just throwing out unneeded entries and then stripping down by --depclean would prove a lot harder than it would have be (if I had all knowledge of portage at hand). 

A simple --output-worldfile-without-dependencies or similar would be useful for that. It would make sure that removing an entry from the world file would remove the corresponding program. 

I know that often some entries in world need to be redundant (even though xorg is a dependency of kde, I still want to keep it when I remove KDE). That’s why the command shouldn’t change the worldfile inplace, but rather output a stripped down file. 

Best wishes, 
Arne

Reproducible: Always