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

Bug 101929

Summary: Patch for revdep-rebuild to rebuild packages based on a list of USE flags
Product: Gentoo Linux Reporter: Rick Harris <rickfharris>
Component: Current packagesAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: 2005.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch for revdep-rebuild to rebuild packages based on a list of USE flags

Description Rick Harris 2005-08-09 19:25:06 UTC
Attached is a patch for revdep-rebuild to rebuild packages based on a user
supplied list of USE flags.

Usage example:
revdep-rebuild --useflags ipv6,X,ssl -pvt

This example will pretend to rebuild all packages containing the USE flags ipv6,
X, ssl + those package's dependencies.
Especially useful if one or a set of widely used USE flags is changed, but the
user is unsure of which packages to re-emerge to add or remove that USE flags'
feature set.

Versioning works the same as 'emerge world', so it will emerge the latest
version of each package (behaves the same as if '-X' is used, regardless of
whether it is used or not).

For the sake of sanity, after it rebuilds the packages it re-runs with
'revdep-rebuild -X -pvt' to check for any broken libs or deps.

Included in this patch also is a fix for $IS_REAL_MERGE staying true if other
emerge options are used. eg. 'revdep-rebuild -pvt'
Comment 1 Rick Harris 2005-08-09 19:27:56 UTC
Created attachment 65569 [details]
Patch for revdep-rebuild to rebuild packages based on a list of USE flags
Comment 2 Colin Kingsley (RETIRED) gentoo-dev 2005-08-09 19:35:55 UTC
The functionality you described is provided by emerge --newuse.
Comment 3 Paul Varner (RETIRED) gentoo-dev 2005-08-09 20:07:14 UTC
To expand on the previous comment. Is there any reason why emerge --update
--deep --newuse world && revdep-rebuild doesn't do what you are trying to do?