app-emulation/virtualbox-modules: check kernel has KPROBES

This package needs CONFIG_KPROBES=y starting with kernel 6.16 to use
KVM to control hardware virtualization.
Starting with kernel 6.19, it fails to build without this option.
Add a config check.

Bug: https://bugs.gentoo.org/970012
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
This commit is contained in:
Viorel Munteanu
2026-02-21 12:23:47 +02:00
parent 63f2dc239c
commit 4bf89a4737

View File

@@ -23,7 +23,8 @@ PATCHES=(
"${FILESDIR}"/${P}-kernel-6.19-{1..3}.patch
)
CONFIG_CHECK="~!SPINLOCK JUMP_LABEL ~PREEMPT_NOTIFIERS"
CONFIG_CHECK="~!SPINLOCK JUMP_LABEL ~PREEMPT_NOTIFIERS ~KPROBES"
KPROBES_ERROR="CONFIG_KPROBES is required for kernel 6.16+; modules fail to build with kernel 6.19+"
src_compile() {
local modlist=( {vboxdrv,vboxnetflt,vboxnetadp}=misc )