# Copyright 2021-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 # BENTOO-DIVERGENCE: RDEPEND - adds ~sys-kernel/bentoo-kernel{,-bin}-${PV%_p*}, so # modules built against virtual/dist-kernel accept bentoo's kernel. Same PVR as the # ::gentoo virtual on purpose: gentoo-kernel users still match the first # alternatives, and the subslot (0/${PVR}) stays the one they have installed. # A revbump here would change it and rebuild every out-of-tree module # (nvidia-drivers, virtualbox-modules, ...) for every bentoo user. This copy # wins over ::gentoo's by repository priority (bentoo 0, gentoo -1000). # # The bentoo atoms use ${PV%_p*}, like vanilla-kernel: a _pN suffix is a new # Gentoo dist-kernel patchset on the same kernel.org release, and # sys-kernel/bentoo-kernel keeps PV equal to the kernel.org version (a patchset # change there is a revbump), so bentoo-kernel-7.3.5 satisfies this 7.3.5_p1. # # Never prune the version matching the newest sys-kernel/bentoo-kernel, even # when pkgcheck calls it RedundantVersion: bentoo-kernel pins the virtual to # its own PV until a newer bentoo-kernel exists, so a bentoo-kernel machine # resolves to exactly that version. DESCRIPTION="Virtual to depend on any Distribution Kernel" SLOT="0/${PVR}" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" RDEPEND=" || ( ~sys-kernel/gentoo-kernel-bin-${PV} ~sys-kernel/gentoo-kernel-${PV} ~sys-kernel/vanilla-kernel-${PV%_p*} ~sys-kernel/gentoo-kernel-modprep-${PV} ~sys-kernel/bentoo-kernel-${PV%_p*} ~sys-kernel/bentoo-kernel-bin-${PV%_p*} ) "