Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 459928 - Partial version token on atom not respected
Summary: Partial version token on atom not respected
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: PMS/EAPI
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-01 23:30 UTC by Cedric Sodhi
Modified: 2013-03-02 08:41 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 Cedric Sodhi 2013-03-01 23:30:21 UTC
> # emerge -a '>xf86-input-wacom-0.17'
> 
> These are the packages that would be merged, in order:
> 
> Calculating dependencies... done!
> [ebuild   R    ] x11-drivers/xf86-input-wacom-0.17.0
> 
> Would you like to merge these packages? [Yes/No]

Emerge considers 0.17>0.17.0 - is that correct?
Comment 1 Cedric Sodhi 2013-03-01 23:30:59 UTC
Erratum: "Emerge considers 0.17.0>0.17"
Comment 2 Zac Medico gentoo-dev 2013-03-02 00:01:54 UTC
Yes, it's specified by app-doc/pms here:

  http://dev.gentoo.org/~ulm/pms/5/pms.html#x1-29008r2

Specifically, this part:

  if Ann > Bnn then 
    return  A > B 
  else if Ann < Bnn then 
    return  A < B 
  end if
Comment 3 Ulrich Müller gentoo-dev 2013-03-02 08:38:42 UTC
Not a bug. We _define_ the version comparison, and we have chosen that 0.17.0 should be greater than 0.17 because it has more components. (strverscmp(3) makes the same choice, although it differs from our version comparison in other respects.)

The motivation to consider these versions as different is that two ebuilds with equal versions (and package name) are not allowed in the tree at the same time. So one wants to have inequality in as many cases as possible.
Comment 4 Ulrich Müller gentoo-dev 2013-03-02 08:41:33 UTC
The workaround is also easy:
# emerge -a '>=xf86-input-wacom-0.18'