The function getgccversion using the glob module but doesn't import it, so if the user does not have a '/etc/env.d/gcc/config' file then 'emerge --version' will break with a traceback. I don't know how often the 'config' file doesn't exist, and as such, how many users this may affect. "import glob" was included in the patch originally but for some reason it brought out some very weird errors with python and mixing tabs and spaces, i.e. the patch attached would break emerge.
Created attachment 18242 [details, diff] emerge patch diffed against 2.0.49-r6
I made this dependant on 29488 because if you apply this patch without applying the patches for 29488 and moving emergehelp.py to /usr/lib/python2.2/site-packages emerge will break.
Integrated.