GNU GRUB - Bugs: bug #42844, version_find_latest function in...
You are not allowed to post comments on this tracker with your current authentication level.
bug #42844: version_find_latest function in grub-mkconfig_lib produces wrong results
Submitter: | Tal <tal> | ||
Submitted: | Fri 25 Jul 2014 11:00:42 PM UTC | ||
Category: | None | Severity: | Major |
Priority: | 5 - Normal | Item Group: | Software Error |
Status: | None | Privacy: | Public |
Assigned to: | None | Originator Name: | |
Open/Closed: | Open | Release: | Git master |
Release: | Reproducibility: | Every Time | |
Planned Release: | 2.03+ |
Wed 31 Jan 2018 01:31:38 AM UTC, comment #4: |
Sir Grublon <grublon> |
Sun 04 Jan 2015 03:30:44 PM UTC, comment #3: version_find_latest function uses version_test_gt to sort the list. version_test_gt uses version_test_numeric to compare two versions. version_test_numeric depends on sort -V (if present but it is indeed present on CentOS) to determine the order of two versions.
|
-Deleted Account- <plamentotev> |
Sun 27 Jul 2014 04:00:55 PM UTC, comment #2: test2.sh has version_find_latest go through a list of kernel versions (just a random list I found online) to sort them. Not only does it appear to do this backwards (it finds the oldest ones first), it also doesn't do it in the right order. I'm seeing output like:
|
Tal <tal> |
Sat 26 Jul 2014 01:32:43 AM UTC, comment #1: Small update:
|
Tal <tal> |
Fri 25 Jul 2014 11:00:42 PM UTC, original submission:
Hey Guys.
|
Tal <tal> |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 4 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2016-03-02 | phcoder | Planned Release | None | 2.03+ | |
2015-01-04 | plamentotev | Attached File | - | Added version_ordering.patch, #32756 | |
2014-07-27 | tal | Attached File | - | Added test2.sh, #31781 | |
2014-07-25 | tal | Attached File | - | Added test.sh, #31776 |
Powered by Savane 3.13-f8d8.
Corresponding source code
it´s the way how sort as part of the coreutils is working.
https://lists.gnu.org/archive/html/coreutils/2017-07/msg00074.html
maybe they should implement a different version string sorting