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

Bug 422533

Summary: [Future EAPI] Source eclasses only once
Product: Gentoo Hosted Projects Reporter: Michał Górny <mgorny>
Component: PMS/EAPIAssignee: PMS/EAPI <pms>
Status: RESOLVED WONTFIX    
Severity: enhancement CC: esigra, jlec, pacho
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 174380    

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-06-20 11:10:00 UTC
Since developers are already hacking eclasses to do that, it may be a good idea to just make it a standard.

The concept for EAPI5:

1) every eclass will be sourced just once;
2) any future call of inherit() with the same name will only cause inherited eclasses listed to be reordered;
3) effective exported functions will be chosen from ones exported by last eclasses on the list (last passed to inherit rather than last sourced).