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>
Tue, 26 May 2020 22:00:08 +0000 (23:00 +0100)
commit8493b3a1823ea5f24f44ea317ceced513b6722ed
tree8eed8eb1c26098b0a14695026f0e6c0a50a4ac71
parentd83541f17ef9d1a0d2e0b8abb48e048e7b8adb9c
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