Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 228935

Summary: [QA] check for "command not found" (patch provided)
Product: Portage Development Reporter: Olivier Huber <oli.huber>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: High    
Version: 2.2   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 216231    
Attachments: small patch
right patch
dump ebuild

Description Olivier Huber 2008-06-22 17:56:59 UTC
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.
Comment 1 Olivier Huber 2008-06-22 17:58:00 UTC
Created attachment 158023 [details, diff]
small patch
Comment 2 Olivier Huber 2008-06-22 17:59:33 UTC
Created attachment 158025 [details, diff]
right patch
Comment 3 Olivier Huber 2008-06-22 18:01:27 UTC
Created attachment 158029 [details]
dump ebuild

Dumb ebuild to test features
Comment 4 Zac Medico gentoo-dev 2008-06-23 02:59:08 UTC
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
Comment 5 Zac Medico gentoo-dev 2008-07-23 07:57:09 UTC
This is fixed in 2.2_rc2.