Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 5309

Summary: sort "world"
Product: Portage Development Reporter: Maik Schreiber <blizzy-keyword-gentoo_bugs2.a8a736>
Component: UnclassifiedAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED FIXED    
Severity: enhancement CC: carpaski, seemant
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Maik Schreiber 2002-07-20 11:15:35 UTC
/var/cache/edb/world should be sorted. Makes it much easier to throw unwanted
stuff out.
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2002-07-21 03:38:47 UTC
It's more useful in merge order that in alpha order as you can see the order 
you told it to merge things. Might seem trivial, but it's easier to code that 
way and has more use than alpha order.

If you wanna sort it then sort it. No reason why you couldn't.

cp /var/cache/edb/world /var/cache/edb/world.orig
sort -u < /var/cache/edb/world.orig > /var/cache/edb/world
Comment 2 Maik Schreiber 2002-07-21 12:55:16 UTC
Nicholas: I really can't see how the world file is sorted in merge order. I just
merged "cdlabelgen", which just depends on >perl-5.6.1. But it appears in the
middle of the file, not at the beginning or the end. It doesn't appear to have
any sorting order at all.

Seemant: Why got this bug closed WONTFIX? I'd like to have at least a reason for
that.
Comment 3 Maik Schreiber 2002-07-21 12:57:01 UTC
Adding attachments so Bugzilla really sends out mail.
Comment 4 Steven Schwartfeger 2006-06-08 03:04:52 UTC
Hi, I was thinking of requesting the same thing.

The order of the packages in my '/var/lib/portage/world' file seems random - the same as the previous poster. I sometimes look through it to remove packages that I don't really want, then do 'emerge --depclean' to get rid of dependencies too. 'sort' arranges it nicely, but portage messes it up again.

I was wondering how hard it is to change portage to sort it? Or should the world file really be edited by hand at all?

No stress, just an idea.

Thanks, Steven.