Hi, I'd like to suggest moving the MAKEOPTS-checking code from paludis ebuild (in the pkg_setup() function) to some eclass, so it can be easily used elsewhere. Number of MB of the free memory per thread should be optional, I guess.
Reopen this bug when this is more than just a good idea.
That means "when there's any particular use for it" or "when you come up with the eclass"?
I wonder if checking MAKEOPTS (in particular -jX) is a good idea for three reasons:
- The currently implementation does not consider distcc configurations, slowing down the compilation process
- Following the Gentoo philosophy, the system should not force the user to some settings unless neccessary (printing warnings is ok)
- There is Gentoo-specific documentation available on setting -jX to a system-specific value, so any user with some understanding will set this switch to his/her preferred value anyways.