Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 525356 - repoman should warn with IUSE="" + REQUIRED_USE="test? (...)" on EAPI<5
Summary: repoman should warn with IUSE="" + REQUIRED_USE="test? (...)" on EAPI<5
Status: RESOLVED OBSOLETE
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Repoman (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-14 00:47 UTC by Kent Fredric (IRC: kent\n) (RETIRED)
Modified: 2022-04-02 08:52 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 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2014-10-14 00:47:06 UTC
This looks related to bug 447570 and bug 442830 , but they're not exact matches.

Case A:

> EAPI=4
> IUSE=""
> REQUIRED_USE="test? ( ... )"

Case B:

> EAPI=5
> IUSE=""
> REQUIRED_USE="test? ( ... )"

Case B triggers a repoman warning, but case A does not.
In case A, "test" is injected by config.py 

> iuse_implicit.add("test")

Case A has the unfortunate side effect of the REQUIRED_USE segment being ignored by Paludis due to the absence of "test" in IUSE.

Case C:

> EAPI=4
> IUSE="test"
> REQUIRED_USE="test? ( ... )"


Case C has Paludis correctly respect the REQUIRED_USE statement.

Unfortunately it is probably not immediately practical to fix portage to break the same way Paludis does ;). But having repoman warn here would be a good start.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-04-18 03:23:11 UTC
We can probably call this obsolete given there’s no more EAPI 4 ebuilds in tree. Obviously Portage will retain support but I don’t think there’s any appetite to enhance repoman for banned EAPIs.
Comment 2 Ulrich Müller gentoo-dev 2022-04-02 08:52:14 UTC
(In reply to Sam James from comment #1)
> We can probably call this obsolete given there’s no more EAPI 4 ebuilds in
> tree. Obviously Portage will retain support but I don’t think there’s any
> appetite to enhance repoman for banned EAPIs.

Closing.