Created attachment 265419 [details] patch that makes Qt optional for building The attached patch removes build dependency for Qt when NLS or graphical frontend is not required. This may save disk space for portmaster users and build time espacially for OPTIONS_UNSET="X11 NLS" users.
1. Remove USE_QT. 2. Use goal instead of ".if": post-patch-NLS-off: @${ECHO} 'VBOX_WITH_NLS =' >> ${WRKSRC}/LocalConfig.kmk @${ECHO} 'VBOX_WITH_MAIN_NLS =' >> ${WRKSRC}/LocalConfig.kmk @${ECHO} 'VBOX_WITH_PUEL_NLS =' >> ${WRKSRC}/LocalConfig.kmk @${ECHO} 'VBOX_WITH_VBOXMANAGE_NLS =' >> ${WRKSRC}/LocalConfig.kmk Testing in progress…
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=4f1b651ebc7aa3fca1b19f4f45fed00e5a397d57 commit 4f1b651ebc7aa3fca1b19f4f45fed00e5a397d57 Author: Vladimir Druzenko <vvd@FreeBSD.org> AuthorDate: 2025-11-21 18:49:00 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2025-11-21 18:58:54 +0000 emulators/virtualbox-ose-{,-nox11}-7{0,1,2}: Make Qt optional for building Remove build dependency for Qt when NLS and graphical frontend is not required. PR: 291023 Co-authored-by: takahiro.kurosawa@gmail.com MFH: 2025Q4 emulators/virtualbox-ose-70/Makefile | 11 ++++++++--- emulators/virtualbox-ose-71/Makefile | 11 ++++++++--- emulators/virtualbox-ose-72/Makefile | 12 +++++++++--- 3 files changed, 25 insertions(+), 9 deletions(-)
A commit in branch 2025Q4 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=ff235af03459d4bac2415b7c736f725d608317de commit ff235af03459d4bac2415b7c736f725d608317de Author: Vladimir Druzenko <vvd@FreeBSD.org> AuthorDate: 2025-11-21 18:49:00 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2025-11-21 19:03:17 +0000 emulators/virtualbox-ose-{,-nox11}-7{0,1,2}: Make Qt optional for building Remove build dependency for Qt when NLS and graphical frontend is not required. PR: 291023 Co-authored-by: takahiro.kurosawa@gmail.com MFH: 2025Q4 (cherry picked from commit 4f1b651ebc7aa3fca1b19f4f45fed00e5a397d57) emulators/virtualbox-ose-70/Makefile | 11 ++++++++--- emulators/virtualbox-ose-71/Makefile | 11 ++++++++--- emulators/virtualbox-ose-72/Makefile | 12 +++++++++--- 3 files changed, 25 insertions(+), 9 deletions(-)
Thanks.