Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 422533 - [Future EAPI] Source eclasses only once
Summary: [Future EAPI] Source eclasses only once
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: PMS/EAPI (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: PMS/EAPI
Depends on:
Blocks: future-eapi
  Show dependency tree
Reported: 2012-06-20 11:10 UTC by Michał Górny
Modified: 2014-06-24 09:58 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
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).