I see the various CONFLICTS_INSTALL lines under <https://www.freshports.org/emulators/virtualbox-ose-additions/#description> An edge case arose when I (carelessly) tested to tell whether virtualbox-ose-kmod-legacy was installable on FreeBSD 12.2-RELEASE-p7: root@freebsd:~ # pkg info -x virtualbox virtualbox-ose-additions-6.1.26 virtualbox-ose-kmod-legacy-5.2.44_5 virtualbox-ose-nox11-legacy-5.2.44_6 – careless because the test, in response to <https://forums.FreeBSD.org/threads/81892/post-529422>, was in a VirtualBox guest (not on real hardware). > … there should probably be a conflict between guest additions > and the kernel module. …
I'm not sure if anything is actually wrong in this case. Does having additions and the kmod installed at the same time cause issues? Both are also not loaded by default even if installed. I'd say that trying to load them at the same time is a configuration error, preventing it goes beyond the package management tools duties.
(In reply to Guido Falsi from comment #1) But what about nested virtualization?
Sorry can't help anymore here. I stopped using VirtualBox months ago and not contributing to its ports anymore. Never tried nested virtualization and I'm not even sure it is actually supported, though. In theory the additions and virtualization (kmod) modules perform very different tasks and they could, in theory, be loaded together, but I never tried, nor going to, since, as I said, I don't use this software anymore.
I'm putting things in order.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=b4a6bc8744f4f15b0e510af1553afeb1c8a027b3 commit b4a6bc8744f4f15b0e510af1553afeb1c8a027b3 Author: Vladimir Druzenko <vvd@FreeBSD.org> AuthorDate: 2025-01-04 21:05:54 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2025-01-04 21:14:31 +0000 emulators/virtualbox-ose*: Improve ports * Replace PORTVERSION with DISTVERSION. * Fix CONFLICTS_INSTALL. * Fix PYTHON in DEFAULT_OPTIONS in emulators/virtualbox-ose. * Pet portclippy and portlint. * Formatting and etc. PR: 258159 emulators/virtualbox-ose-additions-legacy/Makefile | 39 +++++----- .../virtualbox-ose-additions-nox11-legacy/Makefile | 6 +- emulators/virtualbox-ose-additions-nox11/Makefile | 6 +- emulators/virtualbox-ose-additions/Makefile | 40 +++++----- emulators/virtualbox-ose-kmod-legacy/Makefile | 26 +++---- emulators/virtualbox-ose-kmod/Makefile | 35 ++++----- emulators/virtualbox-ose-legacy/Makefile | 77 +++++++++---------- emulators/virtualbox-ose-nox11-legacy/Makefile | 6 +- emulators/virtualbox-ose-nox11/Makefile | 4 +- emulators/virtualbox-ose/Makefile | 87 +++++++++++----------- 10 files changed, 161 insertions(+), 165 deletions(-)