Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 453638 - sys-apps/portage: repoman shall warn if 'foo(-)?' USE-dep is not satisfied by the newest matching package
Summary: sys-apps/portage: repoman shall warn if 'foo(-)?' USE-dep is not satisfied by...
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Repoman (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-23 08:30 UTC by Michał Górny
Modified: 2022-07-12 03:19 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 2013-01-23 08:30:52 UTC
Let's say package dev-python/foo deps on dev-python/setuptools[py2.5(-)?].

Now, let's assume:

  setuptools-1 has IUSE="py2.5 ... py3.3" (all of them)
  setuptools-2 has IUSE="py2.6 ... py3.3" (lacks py2.5)

In other words, the newest version has dropped support for py2.5.

By the nature of the dep, py2.5 users will have to stay with the older version. I think repoman shall print a warning when checking dev-python/foo in that case (something like 'newest matching version does not satisfy the USE dependency') so that people will know that something has changed and they should think about adjusting their package.

Moreover, if at some point setuptools-1 is removed and none of setuptools versions provide the flag anymore (and the flag is not masked), I think repoman shall treat this as an error. Currently, it does that only with a plain '[py2.5?]' dep.
Comment 1 Zac Medico gentoo-dev 2013-01-23 17:27:37 UTC
This might require special handling for things like || ( foo[x] foo[y] ) which may be used to handle use flag renames.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-01-24 00:06:12 UTC
(In reply to comment #1)
> This might require special handling for things like || ( foo[x] foo[y] )
> which may be used to handle use flag renames.

Hmm, I think || shall trigger an error if no packages match any of them but that's probably a regular case already.

For other cases, I'd guess a warning can still be thrown. If developer intended that, he will understand the warning ;).
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-12 03:18:41 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.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-12 03:19:27 UTC
FWIW, I think pkgcheck has this as MissingUsedepDefault.