kernel-2.eclass: add linux 5.x support
authorThomas Deutschmann <whissi@gentoo.org>
Mon, 7 Jan 2019 20:14:25 +0000 (21:14 +0100)
committerThomas Deutschmann <whissi@gentoo.org>
Mon, 7 Jan 2019 20:16:50 +0000 (21:16 +0100)
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
eclass/kernel-2.eclass

index 8e595d581cf67e521ec7fbb3a50b6b4184f42b35..48146b7284b9647460c9235cadea99bf7e3e3f78 100644 (file)
@@ -509,7 +509,7 @@ detect_version() {
 
                        # as of 12/5/2017, the rc patch is no longer offered as a compressed
                        # file, and no longer is it mirrored on kernel.org
-                       if [[ ${KV_MAJOR} -ge 4 ]] && [[ ${KV_PATCH} -ge 12 ]]; then
+                       if ver_test "${KV_MAJOR}.${KV_PATCH}" -ge "4.12"; then
                                KERNEL_URI="https://git.kernel.org/torvalds/p/v${KV_FULL}/v${OKV} -> patch-${KV_FULL}.patch
                                                        ${KERNEL_BASE_URI}/linux-${OKV}.tar.xz"
                                UNIPATCH_LIST_DEFAULT="${DISTDIR}/patch-${CKV//_/-}.patch"