When a package (from the list of packages to rebuild) doesn't build, revdep-rebuild stops rebuilding. It's a minor annoyance only, but still. When the list contains other packages with no common dependencies with the one(s) that doesn't build, it would be nice if revdep-rebuild went on and rebuilt as much as it can. I don't know if this behavior is a feature or a bug, but in case it's a bug, the patch below is my solution to it. There probably is a zillion other ways to do it, though. Note that the following line: echo "emerge --oneshot $EMERGE_OPTIONS $REBUILD_LIST" which is about 15 lines above the beginning of my patch, may need to be adapted for mostly cosmetic reasons. Denis.
Created attachment 101415 [details, diff] The patch for revdep-rebuild
*** Bug 163295 has been marked as a duplicate of this bug. ***
Can you please, explain me how works this patch? For example: I run revdep-rebuild and it re-emerges 50 apps, when it has compiled 20, compilation fails. What will do revdep-rebuild with your patch? Thanks a lot for information :-)
(In reply to comment #3) > For example: I run revdep-rebuild and it re-emerges 50 apps, when it has > compiled 20, compilation fails. > > What will do revdep-rebuild with your patch? It will attempt to emerge each package individually, and if one fails it will skip to the next one. At the end of the process, if one package failed to emerge it will show a warning. Denis.
(In reply to comment #4) > (In reply to comment #3) > > For example: I run revdep-rebuild and it re-emerges 50 apps, when it has > > compiled 20, compilation fails. > > > > What will do revdep-rebuild with your patch? > > It will attempt to emerge each package individually, and if one fails it will > skip to the next one. At the end of the process, if one package failed to > emerge it will show a warning. > > Denis. > A really good behavior ;-) Thanks for the patch
I plan on adding this patch within gentoolkit-0.2.3. I just need to find some time to test and play with it before it goes in.
This did not make it in to gentoolkit-0.2.3, I will look at it for gentoolkit-0.2.4
Won't simply running `emerge --resume --skipfirst` do the trick?
This is probably now obsolete due to the --keep-going option in portage