commit: 11ef303b92baa2ebf15244b35f27383689663a29
Author: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 20 14:07:58 2025 +0000
Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Mon Oct 20 14:15:17 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11ef303b
app-emulation/virtualbox: sync live ebuild
Add fixes from latest virtualbox and virtualbox-modules to live ebuild.
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>
app-emulation/virtualbox/virtualbox-9999.ebuild | 26 +++++++++++++++++--------
1 file changed, 18 insertions(+), 8 deletions(-)
diff --git a/app-emulation/virtualbox/virtualbox-9999.ebuild
b/app-emulation/virtualbox/virtualbox-9999.ebuild
index 88af8e866ef2..ab85ca518eff 100644
--- a/app-emulation/virtualbox/virtualbox-9999.ebuild
+++ b/app-emulation/virtualbox/virtualbox-9999.ebuild
@@ -42,7 +42,7 @@ SRC_URI="
LICENSE="GPL-2+ GPL-3 LGPL-2.1 MIT dtrace? ( CDDL )"
SLOT="0/$(ver_cut 1-2)"
-IUSE="alsa dbus debug doc dtrace +gui java lvm nls pam pch pulseaudio +opengl
python +sdk +sdl test +udev vboxwebsrv vde +vmmraw vnc"
+IUSE="alsa dbus debug doc dtrace +gui java lvm nls pam pch pulseaudio +opengl
python +sdk +sdl test +udev vboxwebsrv vde vnc"
RESTRICT="!test? ( test )"
unset WATCOM #856769
@@ -59,7 +59,7 @@ COMMON_DEPEND="
sys-libs/zlib
dbus? ( sys-apps/dbus )
gui? (
- dev-qt/qtbase:6[X,widgets]
+ dev-qt/qtbase:6[X,wayland,widgets]
dev-qt/qtscxml:6
dev-qt/qttools:6[assistant]
x11-libs/libX11
@@ -211,7 +211,7 @@ PATCHES=(
DOCS=() # Don't install the default README file during einstalldocs
-CONFIG_CHECK="~!SPINLOCK JUMP_LABEL"
+CONFIG_CHECK="~!SPINLOCK JUMP_LABEL ~PREEMPT_NOTIFIERS"
pkg_pretend() {
if ! use gui; then
@@ -383,7 +383,6 @@ src_configure() {
$(usev !python --disable-python)
$(usev !vboxwebsrv --with-gsoap-dir=/dev/null)
$(usev vde --enable-vde)
- $(usev !vmmraw --disable-vmmraw)
$(usev vnc --enable-vnc)
)
@@ -397,10 +396,8 @@ src_configure() {
myconf+=(
--build-headless
)
- fi
-
- if use amd64 && ! has_multilib_profile; then
- myconf+=( --disable-vmmraw )
+ # disable shared clipboard when headless, it crashes when
connecting with RDP: bug #955867
+ echo -e "\nVBOX_WITH_SHARED_CLIPBOARD :=" >> LocalConfig.kmk ||
die
fi
# not an autoconf script
@@ -548,6 +545,19 @@ src_install() {
vboxnetflt
vboxnetadp
EOF
+ 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
cd "${S}"/out/linux.${ARCH}/$(usex debug debug release)/bin || die