From bb1bddbccb8a2bfeb0b3d966eb2726e612ecc7c5 Mon Sep 17 00:00:00 2001 From: Viorel Munteanu Date: Fri, 27 Jun 2025 14:32:00 +0300 Subject: [PATCH] app-emulation/virtualbox-modules: add 7.2.0_beta2 Signed-off-by: Viorel Munteanu --- app-emulation/virtualbox-modules/Manifest | 1 + .../virtualbox-modules-7.2.0_beta2.ebuild | 47 +++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 app-emulation/virtualbox-modules/virtualbox-modules-7.2.0_beta2.ebuild diff --git a/app-emulation/virtualbox-modules/Manifest b/app-emulation/virtualbox-modules/Manifest index 8a2808dc847a1..0deaa074b82ec 100644 --- a/app-emulation/virtualbox-modules/Manifest +++ b/app-emulation/virtualbox-modules/Manifest @@ -1,4 +1,5 @@ DIST vbox-host-kernel-module-src-7.1.10.tar.xz 767632 BLAKE2B 8c2b40cb2c123be8e6f8dd3b56f7f0af20b1dd9fa1013690e53ba03f3d54bea8e6b2a9460fd9535d90879459f230c397387efe2877b7fb526a1248b9d7fc10fb SHA512 7311712e1d9f1c9556a47f47db17e7f0c45d3e816c2cc46b013ab4dd676797856dd40013a7d3058d93482c51aa71118d8e47efe407aae80f5c8eb541513a8fff DIST vbox-host-kernel-module-src-7.1.8.tar.xz 767424 BLAKE2B 846a0f77892aad8edd7ee6935e2c846daa8cd6b42fb2eccc78813e0d5e19c371849e94a8f75a12a2bf2a65e641b4c22ff3a9c4ff9b3f5747bbd02e07867a4a89 SHA512 5430de7428b4951abe7e55243d63fa533ce720ae27c6664349db76d3f7522f4bcbd46d334f7fdad9dc731c6f2ce8c993c11bd4194f98f9a5a17c2a83160eda1c DIST vbox-host-kernel-module-src-7.2.0_BETA1.tar.xz 808492 BLAKE2B 3236be8e944a7b342a55650c2a88223f8fcfbd702811a55ef4ba8e989ed0449b231c8a356f966f610b731f4b1d5c78801558e1e919190a6f782c7101d4ef07c3 SHA512 74a90d6086d0ef21569490e092d4a6ad090ee459fbe75e3893d6c526dc8f941e292c1d001e484fd4c4974c478146398779b6176ec36b3550601ac922d8536b94 +DIST vbox-host-kernel-module-src-7.2.0_BETA2.tar.xz 808984 BLAKE2B 53f252b7438a8befeafea572b644baa1ec102240774952e3dc7d6ffffb0b03143a8f3ce8cceccecee3be6afea42d3f3209cb3ed7bea9f3332d080321852bf362 SHA512 e80d0af79f3ed036998ad07954be960b343c1723e0a48347e57ea8bf323d87c785dd01a128908257194272e2173e4ee90598e446ad12f18d53853068dc68f385 DIST vbox-kernel-module-src-7.0.26.tar.xz 721876 BLAKE2B 355ac80cc96f4ad259a0fdbb909803bbec884c1d25fc9061f45f7039a0857b4f6cc93d4739cf85a82b9544aae06bf7b689d5d530ffc2fe97a874ef57d123423f SHA512 5980721197b908d5d991b258be395a8b542b8183eac7b146b147e4dbea9ff0b0408de5733b12d02a159b689bde29966a55fa7b64c953b9abe4180dbf6e0ebcb6 diff --git a/app-emulation/virtualbox-modules/virtualbox-modules-7.2.0_beta2.ebuild b/app-emulation/virtualbox-modules/virtualbox-modules-7.2.0_beta2.ebuild new file mode 100644 index 0000000000000..5e7f83f0b7e2d --- /dev/null +++ b/app-emulation/virtualbox-modules/virtualbox-modules-7.2.0_beta2.ebuild @@ -0,0 +1,47 @@ +# Copyright 2022-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# XXX: the tarball here is just the kernel modules split out of the binary +# package that comes from VirtualBox-*.run +# XXX: update: now it is split from virtualbox-*-Debian~bullseye_amd64.deb + +EAPI=8 + +inherit linux-mod-r1 + +MY_P="vbox-host-kernel-module-src-${PV^^[beta]}" +DESCRIPTION="Kernel Modules for Virtualbox" +HOMEPAGE="https://www.virtualbox.org/" +SRC_URI="https://dev.gentoo.org/~ceamac/${CATEGORY}/${PN}/${MY_P}.tar.xz" +S="${WORKDIR}" + +LICENSE="GPL-3" +SLOT="0/$(ver_cut 1-2)" + +CONFIG_CHECK="~!SPINLOCK JUMP_LABEL ~PREEMPT_NOTIFIERS" + +src_compile() { + local modlist=( {vboxdrv,vboxnetflt,vboxnetadp}=misc ) + local modargs=( KERN_DIR="${KV_OUT_DIR}" KERN_VER="${KV_FULL}" ) + linux-mod-r1_src_compile +} + +src_install() { + linux-mod-r1_src_install + insinto /usr/lib/modules-load.d/ + newins "${FILESDIR}"/virtualbox.conf-r1 virtualbox.conf + + insinto /etc/modprobe.d # bug #945135 + newins - virtualbox.conf <<-EOF + # modprobe.d configuration file for VBOXSF + + # Starting with kernel 6.12, + # KVM initializes virtualization on module loading by default. + # This prevents VirtualBox VMs from starting. + # See also: + # https://bugs.gentoo.org/945135 + # https://www.virtualbox.org/wiki/Changelog-7.1 + # ------------------------------ + options kvm enable_virt_at_load=0 + EOF +}