Summary: | sys-apps/portage:: emirrordist ignores USE-conditional RESTRICTs | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Sergei Trofimovich (RETIRED) <slyfox> |
Component: | Tools | Assignee: | Portage Tools Team <tools-portage> |
Status: | CONFIRMED --- | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Sergei Trofimovich (RETIRED)
2019-05-12 10:40:41 UTC
The SRC_URI evaluation is oversimplified, it uses use_reduce with matchall=True like this:
> >>> use_reduce('cdinstall? ( http://www.dxx-rebirth.com/download/dxx/misc/descent-game-content-10to14a-patch.zip ) !cdinstall? ( setup_descent_1.4a_(16596).exe )', uselist=None, matchall=True, eapi='6')
> ['http://www.dxx-rebirth.com/download/dxx/misc/descent-game-content-10to14a-patch.zip', 'setup_descent_1.4a_(16596).exe']
We make it loop through all combinations of states for the USE flags found in RESTRICT, and evaluate SRC_URI only for those combinations where fetch is not restricted.
The number of USE combinations could be prohibitively large in some cases (see bug 374397 for example), so in those cases we'll fallback to the matchall behavior. |