Let's suppose in Gentoo Linux I'm emerging a lot of packages with parallel emerging enabled, and one of them fails because compiling its source code takes a lot of RAM, so the compiler ran into an out-of-memory and got axed; this probably happened because the offending package was not the only one that was being built, so if I emerge that package individually, it might build without problems. So I want to emerge only that one package, and then resume the rest of my big previous emerge once it's done. How can I do it?
I've seen some solutions posted online such as saving the
resume list to a file and then loading it into emerge, but these solutions don't seem to be the best (that one solution didn't seem to support parallel emerging). Ideally, the best solution should allow for issuing
emerge --resume to continue the previous emerge after installing the offending package individually.