Hello. I have my X server environment running with nice level of 10 (the reason for doing this is explained here: http://bugs.gentoo.org/show_bug.cgi?id=285764). All my desktop applications (including terminals) inherit the nice level of 10. When I run "emerge something..." I get it running with the nice level of 15, which is correct, because I have PORTAGE_NICENESS=5 option set in /etc/make.conf (resulting niceness: 10+5 = 15). And my system remains quite usefull: I can watch movies and do my work well without much delays, because of high CPU load. When I run revdep-rebuild I'm getting emerge nice level of 10. It seems that revdep-rebuild sets it's nice level to absolute value of 5 from PORTAGE_NICENESS variable value, and then it runs emerge, which adds 5 more to niceness. That's the wrong behaviour. The resulting niceness should be calculated as 10+5 (and probably +5 for emerge), but not as 0+5+5. I hope I explained well what's wrong with it. Sorry for my English. Reproducible: Always Steps to Reproduce:
$ svn commit -m "Fix revdep-rebuild to properly honor PORTAGE_NICENESS as an incremental to the current nice level. (Bug 297174)" Sending gentoolkit/ChangeLog Sending gentoolkit/bin/revdep-rebuild Transmitting file data .. Committed revision 724.
Created attachment 213300 [details, diff] Patch for gentoolkit-0.2.4.5 This is the patch for gentoolkit-0.2.4.5
The patch works nice. Thanks.
Released in gentoolkit-0.3.0_rc8