kernel-2.eclass: avoid lexicographical compare on versions, bug #705246
authorSergei Trofimovich <slyfox@gentoo.org>
Fri, 22 May 2020 19:10:43 +0000 (20:10 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Wed, 27 May 2020 19:20:57 +0000 (20:20 +0100)
commitc54b9d619157d9a24e72f04d5698a00ee9a368dd
tree86fabd815e75bc59356120a88b9970bbc718cc0b
parent46c1b0e31c9201a28a9c83bf3704f135c60f0406
kernel-2.eclass: avoid lexicographical compare on versions, bug #705246

Originally found in bug #705240 as:

```
if [[ ... || ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH} > 2.6.28 ]]; then
```

'>' are string comparisons. They are benign so far, but
will start failing on linux-10 :)

Let's be consistent and use version comparison.

Closes: https://bugs.gentoo.org/705246
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
eclass/kernel-2.eclass