in 1.12 eutils.eclass if I'm running an x86 architecture under UML then /proc/cpuinfo *does not* have a Processor: line in it and my -j option is set incorrectly in get_number_of_jobs Might expr `grep -c '^processor' /proc/cpuinfo` + 1 be a better way to calculate the number of jobs? This breaks lots of ebuilds...
Actually a little experimentation says that changing the * 2 to + 1 in export MAKEOPTS="${MAKEOPTS} -j$((`grep -c ^processor /proc/cpuinfo` * 2))" seems to be the minimal change. This gives 1 job on UML and nprocs + 1 on regular x86.
UML means I'm runnibg the gentoo in a User Mode Linux machine (there are at least 2 meanings of UML I'm aware of, sorry for any confusion)
martin, not sure why my first reassign didn't work...
Created attachment 7227 [details, diff] eutils.patch Have a look if this fixes it. Also added some other stuff, nall please verify.
Nall, have a look at comment #4.
looks great to me...
Seems OK to me - I got -j1 for my UML instance.
Fixed.