Bug 190432 - emulators/virtualbox-ose pulls unnecessary Qt libraries when building headless
Summary: emulators/virtualbox-ose pulls unnecessary Qt libraries when building headless
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Virtualbox Team (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-30 23:30 UTC by Hernan Freschi
Modified: 2018-01-27 15:30 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hernan Freschi 2014-05-30 23:30:00 UTC
When compiling VirtualBox (emulators/virtualbox-ose), with WITHOUT_X11=yes in /etc/make.conf, it still depends on Qt (it tries to build Qt frontend). This is because NLS option requires Qt libraries.

So the problem is that Qt starts compiling a *full* distribution (including unnecessary Qt Designer and WebKit components). This takes hours to build even on fast machines.

As a workaround, it's possible to disable NLS and Qt, which will build VirtualBox without pulling Qt.

How-To-Repeat: 1. Add WITHOUT_X11=yes to /etc/make.conf
2. build emulators/virtualbox-ose with default options

It will also build a complete Qt distribution.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-05-30 23:30:06 UTC
Responsible Changed
From-To: freebsd-ports-bugs->vbox

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Andriy Voskoboinyk freebsd_committer freebsd_triage 2015-08-07 20:53:53 UTC
Try "virtualbox-ose_UNSET_FORCE= X11 NLS QT4" instead (WITHOUT_X11 has no effect).
Comment 3 Walter Schwarzenfeld 2018-01-12 01:34:52 UTC
No answer since 2015-08-07.  Close?
Comment 4 Andriy Voskoboinyk freebsd_committer freebsd_triage 2018-01-27 15:22:59 UTC
WITHOUT_[...] was replaced by OPTIONS_UNSET= [...] (as noted at 20171214 in UPDATING) + the package will not build now due to BROKEN directives in Makefile:

.if ${PORT_OPTIONS:MNLS} && empty(PORT_OPTIONS:MQT5)
BROKEN=         NLS support requires QT frontend. Run 'make config' again!
.endif

.if ${PORT_OPTIONS:MQT[45]} && empty(PORT_OPTIONS:MX11)
BROKEN=         QT frontend requires X11 support. Run 'make config' again!
.endif

so, I think it can be safely closed.