Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 566398 - layout.conf: Allow EAPIs via allowed-eapis= whitelist rather than banning them
Summary: layout.conf: Allow EAPIs via allowed-eapis= whitelist rather than banning them
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-21 17:03 UTC by Michał Górny
Modified: 2015-11-21 18:27 UTC (History)
1 user (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 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-11-21 17:03:04 UTC
Right now we deprecate and ban old EAPIs in layout.conf. However, we have no way of making repoman refuse non-standard EAPIs or new EAPIs.

I'd say we introduce a new variable stating which EAPIs are allowed, i.e.:

  allowed-eapis = 0 1 2 3 4 5 6

which would effectively ban EAPIs 7 as well as 5-progress, etc.

(CC-ing qa@ for opinion)
Comment 1 Zac Medico gentoo-dev 2015-11-21 18:27:08 UTC
Maybe it makes sense to support boolean attribute, or EAPI categories of some sort, so that we don't have to explicitly list all of the "official gentoo" EAPIs.

Boolean example:

   official-gentoo-eapis-only = true
   official-gentoo-eapi-max = 6

Category example:

  allowed-eapi-categories = official-gentoo
  official-gentoo-eapi-max = 6

The official-gentoo-eapi-max attribute is only needed if we want to prevent new official EAPIs from being automatically allowed.