Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 525356

Summary: repoman should warn with IUSE="" + REQUIRED_USE="test? (...)" on EAPI<5
Product: Portage Development Reporter: Kent Fredric (IRC: kent\n) (RETIRED) <kentnl>
Component: RepomanAssignee: Portage team <dev-portage>
Status: RESOLVED OBSOLETE    
Severity: normal CC: sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=447570
Whiteboard:
Package list:
Runtime testing required: ---

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.