Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 588558 - repoman: complain if dev-foo/foo[bar] (2-style USE) dep matches pkgs that doesn't have IUSE=bar
Summary: repoman: complain if dev-foo/foo[bar] (2-style USE) dep matches pkgs that doe...
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Repoman (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-10 21:08 UTC by Michał Górny
Modified: 2022-07-12 03:18 UTC (History)
0 users

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 2016-07-10 21:08:45 UTC
Let's say an ebuild has a dep like this:

  dev-foo/foo[bar]

Per PMS, 2-style USE deps (i.e. without (-) or (+)) are valid only on packages that have bar in IUSE_EFFECTIVE. Therefore, it would be nice if repoman could detect the case when the dep (USE-dep excluded) matches at least one package version that doesn't have that flag, and complain about it.

The most important problems found this way would be USE dependencies that force old version of a package implicitly due to replaced/removed USE flags.
Comment 1 Brian Dolbec (RETIRED) gentoo-dev 2016-07-10 21:24:21 UTC
Please add a few genb0rk repo test ebuilds that make it possible to properly detect that.  You will need a few, at least one that trips the check and one that doesn't.

We can then work on getting the code to check for that.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-12 03:18:27 UTC
repoman support has been removed per bug 835013.

Please file a new bug (or, I suppose, reopen this one) if you feel this check is still applicable to pkgcheck and doesn't already exist.