Sometimes, when there's a typo in the ebuild, or when an eclass is not inherit, we encounter this error : /var/tmp/portage/xxx/yyy/temp/environment: line XXX: zzz command not found or /usr/portage/xxx/yyy/yyy.ebuild: line XXX: zzz command not found I think it could be great to search such failure and display an QA message so people will report it. I'll post a little patch based on what was written for "maintainer mode" and "Unrecognized options" I know that there are not so much failures like that (I have found 4 by grepping logs), but I think it may be useful.
Created attachment 158023 [details, diff] small patch
Created attachment 158025 [details, diff] right patch
Created attachment 158029 [details] dump ebuild Dumb ebuild to test features
Thanks, I've committed a slightly condensed version of your patch: http://sources.gentoo.org/viewcvs.py/portage/main/trunk/pym/portage/__init__.py?r1=10752&r2=10763
This is fixed in 2.2_rc2.