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'
Created attachment 65569 [details] Patch for revdep-rebuild to rebuild packages based on a list of USE flags
The functionality you described is provided by emerge --newuse.
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?