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

Bug 459928

Summary: Partial version token on atom not respected
Product: Portage Development Reporter: Cedric Sodhi <manday>
Component: CoreAssignee: PMS/EAPI <pms>
Status: RESOLVED INVALID    
Severity: minor CC: manday
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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'