Bug 364621 - doesn't properly sort release numbers
doesn't properly sort release numbers
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Panu Matilainen
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2007-11-02 16:31 EDT by Bill Nottingham
Modified: 2014-03-16 23:11 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-01-09 02:22:24 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Bill Nottingham 2007-11-02 16:31:03 EDT
>>> print rpm.labelCompare(['0','8.9.α','1'], ['0','8.9.β','1'])
Comment 1 Panu Matilainen 2007-11-05 02:45:17 EST
Rpm version comparison only works on [a-z][A-Z][0-9] alphanumerics, here's
another funny case:
>>> print rpm.labelCompare(['0','8.9.+','1'], ['0','8.9.*','1'])

Me thinks the real bug here is that rpm permits characters it can't meaningfully
compare in version and release.
Comment 2 Jeff Johnson 2007-11-05 06:49:13 EST
Um, rpm did not "permit" arguments to labelCompare ...
Comment 3 Panu Matilainen 2007-11-05 07:22:54 EST
Um, sure it did, labelCompare() could throw an exception if invalid data is
thrown at it.
Comment 4 Bill Nottingham 2007-11-05 19:36:28 EST
Why is it invalid? As long as UTF-8 is *accepted* in a version/release at build
time, it should have some sort of meaningful comparison semantics.
Comment 5 Panu Matilainen 2007-11-06 02:14:40 EST
Bill, that's exactly my point: rpm shouldn't permit characters in
version/release that it can't meaningfully compare. As it is currently, rpm
vercmp algorithm can only sort plain old ascii alphanumerics properly.
Comment 6 Bill Nottingham 2007-11-06 10:01:26 EST
Oh, I would take the other argument - rpm should learn to meaningfully sort unicode.
Comment 7 Bug Zapper 2008-04-04 10:23:18 EDT
Based on the date this bug was created, it appears to have been reported
during the development of Fedora 8. In order to refocus our efforts as
a project we are changing the version of this bug to '8'.

If this bug still exists in rawhide, please change the version back to
(If you're unable to change the bug's version, add a comment to the bug
and someone will change it for you.)

Thanks for your help and we apologize for the interruption.

The process we're following is outlined here:

We will be following the process here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping to ensure this
doesn't happen again.
Comment 8 Bug Zapper 2008-11-26 03:11:02 EST
This message is a reminder that Fedora 8 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 8.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '8'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 8's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 8 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
Comment 9 Bug Zapper 2009-01-09 02:22:24 EST
Fedora 8 changed to end-of-life (EOL) status on 2009-01-07. Fedora 8 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.

Note You need to log in before you can comment on or make changes to this bug.