From: "Alessandro Barbieri" <lssndrbarbieri@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-kernel/xpmem/
Date: Tue, 24 Aug 2021 06:15:40 +0000 (UTC) [thread overview]
Message-ID: <1629785737.1ef1daf985929a1aa286b28c7f66bde6673b2a5d.Alessandro-Barbieri@gentoo> (raw)
commit: 1ef1daf985929a1aa286b28c7f66bde6673b2a5d
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Tue Aug 24 05:53:36 2021 +0000
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Tue Aug 24 06:15:37 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1ef1daf9
sys-kernel/xpmem: check for compatible kernel
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
sys-kernel/xpmem/xpmem-2.6.3_p20210217.ebuild | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/sys-kernel/xpmem/xpmem-2.6.3_p20210217.ebuild b/sys-kernel/xpmem/xpmem-2.6.3_p20210217.ebuild
index 602ce6c71..8debc587e 100644
--- a/sys-kernel/xpmem/xpmem-2.6.3_p20210217.ebuild
+++ b/sys-kernel/xpmem/xpmem-2.6.3_p20210217.ebuild
@@ -3,11 +3,13 @@
EAPI=7
+MAX_KV_MAJ="5"
+MAX_KV_MIN="8"
MODULES_OPTIONAL_USE="modules"
MODULES_OPTIONAL_USE_IUSE_DEFAULT=1
MY_REV="242eaa1eca92567c2118afe21e37cafc524f9166"
-inherit autotools linux-mod
+inherit autotools linux-info linux-mod
DESCRIPTION="Linux Cross-Memory Attach"
HOMEPAGE="https://github.com/hjelmn/xpmem"
@@ -21,6 +23,16 @@ KEYWORDS="~amd64"
MODULE_NAMES="xpmem(misc:${WORKDIR}/module/kernel:${WORKDIR}/module/kernel)"
BUILD_TARGETS="all"
+pkg_pretend() {
+ # https://github.com/hjelmn/xpmem/issues/43
+ if use modules; then
+ if kernel_is ge ${MAX_KV_MAJ} ${MAX_KV_MINOR}; then
+ eerror "Unsupported kernel version"
+ die
+ fi
+ fi
+}
+
src_prepare() {
default
AT_M4DIR="m4" eautoreconf
next reply other threads:[~2021-08-24 6:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-24 6:15 Alessandro Barbieri [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-09-01 0:38 [gentoo-commits] repo/proj/guru:dev commit in: sys-kernel/xpmem/ Alessandro Barbieri
2021-08-03 9:09 Alessandro Barbieri
2021-08-03 8:07 Alessandro Barbieri
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1629785737.1ef1daf985929a1aa286b28c7f66bde6673b2a5d.Alessandro-Barbieri@gentoo \
--to=lssndrbarbieri@gmail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox