Bug 258159 - emulators/virtualbox-ose-additions CONFLICTS_INSTALL edge case(s)
Summary: emulators/virtualbox-ose-additions CONFLICTS_INSTALL edge case(s)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Vladimir Druzenko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-30 07:19 UTC by Graham Perrin
Modified: 2025-01-04 21:19 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (vbox)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Graham Perrin freebsd_committer freebsd_triage 2021-08-30 07:19:25 UTC
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. …
Comment 1 Guido Falsi freebsd_committer freebsd_triage 2021-09-03 10:48:34 UTC
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.
Comment 2 Vladimir Druzenko freebsd_committer freebsd_triage 2023-08-07 14:47:27 UTC
(In reply to Guido Falsi from comment #1)
But what about nested virtualization?
Comment 3 Guido Falsi freebsd_committer freebsd_triage 2023-08-07 16:09:21 UTC
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.
Comment 4 Vladimir Druzenko freebsd_committer freebsd_triage 2025-01-04 14:00:05 UTC
I'm putting things in order.
Comment 5 commit-hook freebsd_committer freebsd_triage 2025-01-04 21:15:25 UTC
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(-)