commit:     39b35ee7ef8a8727465a9b828de0adfbaf39d400
Author:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 29 07:49:31 2026 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Thu Jan 29 16:26:47 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39b35ee7

app-emulation/virtualbox-modules: add 7.1.16

Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

 app-emulation/virtualbox-modules/Manifest          |  1 +
 .../virtualbox-modules-7.1.16.ebuild               | 48 ++++++++++++++++++++++
 2 files changed, 49 insertions(+)

diff --git a/app-emulation/virtualbox-modules/Manifest 
b/app-emulation/virtualbox-modules/Manifest
index 6b7427c9e795..713142be257e 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.14.tar.xz 768400 BLAKE2B 
71b1c0ed6e83a7ff723da1335dc77bdd540964602d8cf98e07bbd8fdd06ae86fb5fe8d506e167ce26fa8d432ce2ad619f058183b8583711b9acf71e885b020b7
 SHA512 
10fe023f505f1f6b8ee031d5e826208a4669c96d8890efe6df81c4d5e37fd323bb0a186a52b2063d5b9d0114b3cee94f5ce7abd0488c0fa67b3e3daf33348b70
+DIST vbox-host-kernel-module-src-7.1.16.tar.xz 768328 BLAKE2B 
186709e3dee3b218c383ecfb3554d11c19aa3c8823a366a6e18e26459ceda9c93ca23ba2e3dc80fbc8a2a63b1d32862898aaedb5b4b7811d1001b95f879f128f
 SHA512 
b2a9a2c91d31387b6549c6800f6924a722b3c99eb768f27f935a0d8a66ccbf32091689523c222452aabe24df257cbe1990c1782a6b26c97a0950f794a10d9359
 DIST vbox-host-kernel-module-src-7.2.4.tar.xz 812144 BLAKE2B 
5c18bf9bc656fb3e49c9b3bbc8e2b55175d83680cbb7d8182114a9d07a670d42159f845a79187d5c7ca34ad4e2cccfdce7cd1a4152b5df6aff05b436dfd67f48
 SHA512 
bff6cbbe8fc76e964078e9b54c10365628950a8bc7c8b6e08c26b903b118e8baeded1ecffd9dfe7170288ca023e877443d23aa9fd4554e3052b66d126634d62f
 DIST vbox-host-kernel-module-src-7.2.6.tar.xz 854948 BLAKE2B 
bf6dbaa2ba60eee2e204e08ad5dc4c76788e7e7cae2470c5ffc6355cd91c362a850dc06bdddbec38989df1b3cfeaea03d5f71db101d86b0b93bfa2c523d83003
 SHA512 
b1c710a6f2d339eb1be56d02794c8ed96f79976e4be8b424924788ffe906eea3c0e01f8289a400727a95123388a228210e70ea3e2c75b72cbb409536c2e899d9
 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.1.16.ebuild 
b/app-emulation/virtualbox-modules/virtualbox-modules-7.1.16.ebuild
new file mode 100644
index 000000000000..6d3fc94edaff
--- /dev/null
+++ b/app-emulation/virtualbox-modules/virtualbox-modules-7.1.16.ebuild
@@ -0,0 +1,48 @@
+# Copyright 2022-2026 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}"
+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)"
+KEYWORDS="~amd64"
+
+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
+}

Reply via email to