Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 5309 - sort "world"
Summary: sort "world"
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-20 11:15 UTC by Maik Schreiber
Modified: 2011-10-30 22:21 UTC (History)
2 users (show)

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 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.