Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 470670 - repoman should warn about deprecated EAPIs
Summary: repoman should warn about deprecated EAPIs
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Repoman (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Portage team
URL: http://www.gentoo.org/proj/en/council...
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 468524
  Show dependency tree
 
Reported: 2013-05-19 16:03 UTC by Ulrich Müller
Modified: 2015-03-14 15:26 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2013-05-19 16:03:31 UTC
Per council decision in the April 2013 meeting (see URL):
"EAPIs 1 and 2 are discouraged. Repoman should warn about this."
Comment 1 Zac Medico gentoo-dev 2013-05-19 16:15:52 UTC
We could control this with a setting in metadata/layout.conf that specifies which EAPIs are deprecated, like this:

eapis-deprecated = 1 2
Comment 2 Zac Medico gentoo-dev 2013-05-19 16:18:29 UTC
@pms-bugs: Any feedback for the layout.conf extension proposed in comment #1?
Comment 3 Ciaran McCreesh 2013-05-19 16:21:11 UTC
We should probably standardise layout.conf, since people seem to be using it.
Comment 4 Ulrich Müller gentoo-dev 2013-05-19 18:30:18 UTC
(In reply to comment #1)
> We could control this with a setting in metadata/layout.conf that specifies
> which EAPIs are deprecated, like this:
> 
> eapis-deprecated = 1 2

Repository dependent, so that overlays can have a more (or less?) proactive policy? Good idea.
Comment 5 Ulrich Müller gentoo-dev 2013-05-19 18:35:35 UTC
Thinking about it, maybe you should foresee both warnings and fatal errors for certain EAPIs.
Comment 6 Zac Medico gentoo-dev 2013-05-20 15:36:20 UTC
(In reply to comment #5)
> Thinking about it, maybe you should foresee both warnings and fatal errors
> for certain EAPIs.

Maybe something like this then:

eapis-deprecated = 1 2
eapis-banned = 6 7 8

Do we want to support some kind of matching like regular expressions or fnmatch, or is an explicit list of EAPIs good enough?
Comment 7 Ciaran McCreesh 2013-05-20 15:42:05 UTC
A list is fine.
Comment 9 Zac Medico gentoo-dev 2013-05-24 05:50:09 UTC
This is fixed in 2.1.12.2 and 2.2.0_alpha177.

I've added "eapis-deprecated = 1 2" to metadata/layout.conf in CVS.