We have just seen another case (bug 585072) of an INVALID bug being triggered by a forgotten script in /etc/portage/env/ I think it would be better to store in build.log when an extra script from there is run (also when people play with /etc/portage/bashrc) to help us to locate that issues more easily Thanks