After running: /usr/portage/x11-libs/libxcb/files/xcb-rebuilder.sh I get a list of "* Broken packages" I would expect that emerge would be called with "-1av" option to simply press "y" (or "n") and rebuild them. Then, I read the script and saw that involved lines are commented: # #ebegin "Rebuilding broken packages" #${XCB_REBUILDER_INSTALL:-emerge -1} ${XCB_PACKAGES} #eend $? Why are they commented? Thanks Reproducible: Always
Would be also interesting to be able to pass more options to emerge command (like --jobs) like revdep-rebuild allows I am working on it
Created attachment 205194 [details, diff] xcb-rebuilder.patch This works for me when running: ./xcb-rebuilder.sh -- -1av --jobs
NAK, the guide explains _why_ this is approach fails and why we have a guide to begin with. Yes, xcb-rebuilder.sh is probably a bad name but really, all it does it to fix .la files and list broken packages. THanks
(In reply to comment #3) > NAK, the guide explains _why_ this is approach fails and why we have a guide to > begin with. > Sorry, but I don't see it :-( Do you expect to get reported packages rebuilt with "revdep-rebuild -L..." then? > Yes, xcb-rebuilder.sh is probably a bad name but really, all it does it to fix > .la files and list broken packages. > The name and also its help (shown when running "xcb-rebuilder.sh *")
(In reply to comment #4) > Sorry, but I don't see it :-( Indeed, I skipped the explanation in the final doc to make it shorter. The reason behind the subset is circular deps. When revdep-rebuild asks portage to rebuild all broken packages, if there's a single circular dep, portage will rebuild the packages in a completely random order. So to avoid that, we tell users to rebuild a simple subset (code listing 3.1) which breaks all common dependency loops. > Do you expect to get reported packages rebuilt with "revdep-rebuild -L..." > then? No, the guide says that users should follow _reading_ if the script reports broken packages. It's all written in the guide, I'm not making it up. > The name and also its help (shown when running "xcb-rebuilder.sh *") I'll make the script print out a blurb at the end to point users back to the guide for further instructions. Thanks
(In reply to comment #5) > No, the guide says that users should follow _reading_ if the script reports > broken packages. It's all written in the guide, I'm not making it up. Ah, sorry, I misinterpreted "read on" and think that I should read the reported list and re-emerge broken packages (that surprised me as I got a great list of broken apps and, then, I read the script seeing "Rebuilding" commented part) Thanks for the explanation