git: 87ffb193231a - main - emulators/virtualbox-ose{,-nox11}{,-legacy,-70,-71,-72}: Fix build with custom USERS/GROUPS not in UIDs/GIDs
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 23 Apr 2026 23:11:46 UTC
The branch main has been updated by vvd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=87ffb193231a5aa75d37c1206059f309ef82c9cd
commit 87ffb193231a5aa75d37c1206059f309ef82c9cd
Author: Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2026-04-23 23:07:49 +0000
Commit: Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2026-04-23 23:07:49 +0000
emulators/virtualbox-ose{,-nox11}{,-legacy,-70,-71,-72}: Fix build with custom USERS/GROUPS not in UIDs/GIDs
Sponsored by: UNIS Labs
MFH: 2026Q2
---
emulators/virtualbox-ose-70/Makefile | 4 ++++
emulators/virtualbox-ose-71/Makefile | 4 ++++
emulators/virtualbox-ose-72/Makefile | 4 ++++
emulators/virtualbox-ose-legacy/Makefile | 4 ++++
emulators/virtualbox-ose/Makefile | 4 ++++
5 files changed, 20 insertions(+)
diff --git a/emulators/virtualbox-ose-70/Makefile b/emulators/virtualbox-ose-70/Makefile
index 7a505e1fdfef..f4f6dd625723 100644
--- a/emulators/virtualbox-ose-70/Makefile
+++ b/emulators/virtualbox-ose-70/Makefile
@@ -66,8 +66,12 @@ WRKSRC= ${WRKDIR}/VirtualBox-${DISTVERSION}
VBOXUSER?= vboxusers
VBOXWSUSER?= vboxusers
VBOXGROUP?= vboxusers
+.if ${VBOXUSER} == vboxusers
USERS= ${VBOXUSER}
+.endif
+.if ${VBOXGROUP} == vboxusers
GROUPS= ${VBOXGROUP}
+.endif
VBOX_DIR= ${PREFIX}/${VBOX_DIR_REL}
VBOX_DIR_REL= lib/virtualbox
VBOX_ETC= ${PREFIX}/etc/vbox
diff --git a/emulators/virtualbox-ose-71/Makefile b/emulators/virtualbox-ose-71/Makefile
index c8d6b72584ef..8b8440a8e867 100644
--- a/emulators/virtualbox-ose-71/Makefile
+++ b/emulators/virtualbox-ose-71/Makefile
@@ -67,8 +67,12 @@ WRKSRC= ${WRKDIR}/VirtualBox-${DISTVERSION}
VBOXUSER?= vboxusers
VBOXWSUSER?= vboxusers
VBOXGROUP?= vboxusers
+.if ${VBOXUSER} == vboxusers
USERS= ${VBOXUSER}
+.endif
+.if ${VBOXGROUP} == vboxusers
GROUPS= ${VBOXGROUP}
+.endif
VBOX_DIR= ${PREFIX}/${VBOX_DIR_REL}
VBOX_DIR_REL= lib/virtualbox
VBOX_ETC= ${PREFIX}/etc/vbox
diff --git a/emulators/virtualbox-ose-72/Makefile b/emulators/virtualbox-ose-72/Makefile
index d55cdd7468b2..8f35d3cd2bc9 100644
--- a/emulators/virtualbox-ose-72/Makefile
+++ b/emulators/virtualbox-ose-72/Makefile
@@ -68,8 +68,12 @@ WRKSRC= ${WRKDIR}/VirtualBox-${DISTVERSION}
VBOXUSER?= vboxusers
VBOXWSUSER?= vboxusers
VBOXGROUP?= vboxusers
+.if ${VBOXUSER} == vboxusers
USERS= ${VBOXUSER}
+.endif
+.if ${VBOXGROUP} == vboxusers
GROUPS= ${VBOXGROUP}
+.endif
VBOX_DIR= ${PREFIX}/${VBOX_DIR_REL}
VBOX_DIR_REL= lib/virtualbox
VBOX_ETC= ${PREFIX}/etc/vbox
diff --git a/emulators/virtualbox-ose-legacy/Makefile b/emulators/virtualbox-ose-legacy/Makefile
index 7eff393e1386..551cafdb9cd9 100644
--- a/emulators/virtualbox-ose-legacy/Makefile
+++ b/emulators/virtualbox-ose-legacy/Makefile
@@ -61,8 +61,12 @@ WRKSRC= ${WRKDIR}/VirtualBox-${DISTVERSION}
VBOXUSER?= vboxusers
VBOXWSUSER?= vboxusers
VBOXGROUP?= vboxusers
+.if ${VBOXUSER} == vboxusers
USERS= ${VBOXUSER}
+.endif
+.if ${VBOXGROUP} == vboxusers
GROUPS= ${VBOXGROUP}
+.endif
VBOX_DIR= ${PREFIX}/${VBOX_DIR_REL}
VBOX_DIR_REL= lib/virtualbox
VBOX_ETC= ${PREFIX}/etc/vbox
diff --git a/emulators/virtualbox-ose/Makefile b/emulators/virtualbox-ose/Makefile
index 4e9bfec5a215..42e6d45e1981 100644
--- a/emulators/virtualbox-ose/Makefile
+++ b/emulators/virtualbox-ose/Makefile
@@ -64,8 +64,12 @@ WRKSRC= ${WRKDIR}/VirtualBox-${DISTVERSION}
VBOXUSER?= vboxusers
VBOXWSUSER?= vboxusers
VBOXGROUP?= vboxusers
+.if ${VBOXUSER} == vboxusers
USERS= ${VBOXUSER}
+.endif
+.if ${VBOXGROUP} == vboxusers
GROUPS= ${VBOXGROUP}
+.endif
VBOX_DIR= ${PREFIX}/${VBOX_DIR_REL}
VBOX_DIR_REL= lib/virtualbox
VBOX_ETC= ${PREFIX}/etc/vbox