Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 618558 - sys-apps/portage (and tools) should accept atoms with a version but without an equal/greater than/littler than sign preceding it
Summary: sys-apps/portage (and tools) should accept atoms with a version but without a...
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-15 19:05 UTC by Jeroen Roovers (RETIRED)
Modified: 2017-08-22 09:06 UTC (History)
2 users (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 Jeroen Roovers (RETIRED) gentoo-dev 2017-05-15 19:05:17 UTC
package.provided accepts only atoms that are not preceded by an equal sign, so that should equally apply to all its other inputs, whether command line, configuration files or ebuilds.

Currently, passing an atom with a version but without [<>=] returns an error.
Comment 1 Zac Medico gentoo-dev 2017-05-15 19:29:47 UTC
This is doable, since there is no ambiguity. PMS guarantees that there is no ambiguity because it forbids package names that have a version-like suffix (this part of the spec was tightened for bug 174536).
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-05-15 19:37:49 UTC
I do not think it reasonable to relax Portage behavior here. The long-term mixing of different syntaxes has already resulted in absurd requirements in the PMS. We oughtn't use those requirements as an excuse to make things worse again. Especially that providing a valid input is not an issue.

If at all, we should strive to finally get rid of those requirements and be able to follow upstream naming independently of whether the author did consider that his name may accidentally match one of the very complex Gentoo version naming rules.
Comment 3 Ulrich Müller gentoo-dev 2017-05-15 20:43:19 UTC
(In reply to Michał Górny from comment #2)
> I do not think it reasonable to relax Portage behavior here. The long-term
> mixing of different syntaxes has already resulted in absurd requirements in
> the PMS. We oughtn't use those requirements as an excuse to make things
> worse again. Especially that providing a valid input is not an issue.

Removing the ambiguity was precisely the argument that was used in bug 174536 for tightening the requirements on package names (while I was much in favour of loosening them, see attachment 300745 [details, diff]). So it is only logical that Portage should follow up to this now.

If that is not going to happen, then there is no reason for the current PMS wording that package names "must not end in a hyphen followed by anything matching the version syntax".