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

Bug 380389

Summary: ebuild skips EAPI unsupported phases silently
Product: Portage Development Reporter: Richard <shiningarcanine>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: UNCONFIRMED ---    
Severity: enhancement CC: jer
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://devmanual.gentoo.org/ebuild-writing/eapi/index.html
Whiteboard:
Package list:
Runtime testing required: ---

Description Richard 2011-08-23 15:40:50 UTC
The following will unpack and apply patches, but it won't run the configure script:

ebuild `equery which app-shells/bash-4.2_p10` configure

To run the configure script, I need to tell ebuild to compile bash, rather than to configure bash. These should be separate stages.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-08-25 14:15:40 UTC
The ebuild has EAPI=1 so src_configure is not a valid build phase and is ignored, which is fine. The problem you are looking at is that ebuild(1) should probably fail when an invalid phase is called.
Comment 2 SpanKY gentoo-dev 2011-08-26 03:07:11 UTC
ebuild does abort for generally invalid phases (try "ebuild ... foo"), but it silently skips invalid ones based on the active EAPI