From 9caab17c1b812323d02048aad25aa353a730ede1 Mon Sep 17 00:00:00 2001 From: Flatcar Buildbot Date: Mon, 8 Sep 2025 07:07:56 +0000 Subject: [PATCH] eclass/linux-mod-r1: Sync with Gentoo It's from Gentoo commit 4a056f17b0e9e65d74a8008c9eaf32db3759aeb3. Signed-off-by: Flatcar Buildbot --- .../third_party/portage-stable/eclass/linux-mod-r1.eclass | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sdk_container/src/third_party/portage-stable/eclass/linux-mod-r1.eclass b/sdk_container/src/third_party/portage-stable/eclass/linux-mod-r1.eclass index 91dca82c8f..3e6bd15981 100644 --- a/sdk_container/src/third_party/portage-stable/eclass/linux-mod-r1.eclass +++ b/sdk_container/src/third_party/portage-stable/eclass/linux-mod-r1.eclass @@ -1224,8 +1224,11 @@ _modules_sanity_kernelversion() { fi fi + # wrt *, KV_EXTRA can have e.g. -p1 used by dist-kernel's version as + # _p1, ideally would check it too but this string can contain about + # anything so ignore it rather than try to figure out what it is if use dist-kernel && - ! has_version "~virtual/dist-kernel-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}" + ! has_version "=virtual/dist-kernel-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}*" then ewarn ewarn "The kernel modules in ${CATEGORY}/${PN} are being built for"