Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 281961 - [enhancement idea] make revdep-rebuild more intelligent
Summary: [enhancement idea] make revdep-rebuild more intelligent
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Conceptual/Abstract Ideas (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
: 287558 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-08-18 20:11 UTC by Michael Gaber
Modified: 2010-02-19 10:29 UTC (History)
3 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 Michael Gaber 2009-08-18 20:11:14 UTC
whenever i run revdep-rebuild i notice that it maps many many files to the same package and takes ages for it.
we have a tool (qlist) which does a pretty good job on providing all files to a given package.
so we should take the following steps:

1. sort the list of broken files alphabetically ( O(n log n) )
2. start from the top, 
2.1 match that file to a package, 
2.2 remove that file from the list
2.3 add that package to the rebuild-list
3. get all files belonging to that package
4. remove all matches with these files from the list of broken files
5. if there are files left goto 2
6. else emerge the rebuild-list

i hope I'm not totally off the course and that might help

Regards Michael

Reproducible: Always
Comment 1 Zac Medico gentoo-dev 2009-10-03 20:15:00 UTC
*** Bug 287558 has been marked as a duplicate of this bug. ***
Comment 2 Michael Weber (RETIRED) gentoo-dev 2010-02-19 10:29:26 UTC
Hello Michael,
you want to take a look at this:http://svn.xmw.de/gentoo-gaf/de.xmw.m.pandora/usr/local/sbin/revdep-mw.py

I've written my own version with the improvements, you mentioned above.

best regards, 

  Michael