Paapaa wrote:It would be REALLY nice if Portage new the build order itself without users having to wonder what to rebuild and how many times. Portage should have a third group (in addition to system and world) called "toolchain" which is a subset of system which is a subset of world, so that:
1. If you rebuild world: first Portage builds toolchain IN CORRECT ORDER, then the rest of the system files, then the rest of world files. No need to build ANY package more than once.
2. If you rebuild system, it first builds a sane toolchain then the rest of the system files.
I have no idea if this is hard/easy to implement but the need for this seems to be very high.
AFAIK, system IS the toolchain. you can't extract a subgroup.
for the same reason, what you're asking is not possible: packages in the toolchain normally require GTK, X, and Java, so you simply can't emerge them completely before the others - unless you're emerging them twice like now.
it would be very useful to have an "emerge toolchain" that emerges system exclusively with the USE flags in the profile and everything else switched off, so that it doesn't have any external dependency.
Another useful addition would be
emerge --toolchain world
which does
1)emerge toolchain
2)emerge -e world, except the packages in system that don't need recompilation since no USE flags had been stripped
analogally,
emerge --toolchain system
would result in a sane stage 3 without having to recompile packages twice when it's not necessary.