Ticket #23080 (closed submission: duplicate)
VirtualBox
| Reported by: | bm55b@… | Owned by: | macports-tickets@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | |
| Keywords: | Virtualization VirtualBox | Cc: | jp@…, phillipao@…, mmitar@…, arno+macports@… |
| Port: | virtualbox |
Description
Beginning of a Portfile for Sun's VirtualBox Open Source Edition. WARNING, this is incomplete. Author was playing around with it and got stuck. Original Portfile submission after execution requires reboot of machine to fix shell problems. Believe this is due to the VirtualBox build system calling VirtualBox provided 32 bit binaries!! Hmm...
Possibly Sun is building on a 32 bit machine??? Unknown. Want to use this ticket to work with people interested in from source build of VirtualBox. Comments welcome!
Attachments
Change History
comment:3 in reply to: ↑ description Changed 3 years ago by phillipao@…
Replying to bm55b@…:
Beginning of a Portfile for Sun's VirtualBox Open Source Edition. WARNING, this is incomplete. Author was playing around with it and got stuck. Original Portfile submission after execution requires reboot of machine to fix shell problems. Believe this is due to the VirtualBox build system calling VirtualBox provided 32 bit binaries!! Hmm...
Possibly Sun is building on a 32 bit machine??? Unknown. Want to use this ticket to work with people interested in from source build of VirtualBox. Comments welcome!
It's not too hard to build VirtualBox 3.2.8 for OS X 10.6 on a 32-bit machine. Here's a post explaining it:
http://forums.virtualbox.org/viewtopic.php?f=10&t=34615&p=156830#p156830
I'll try this portfile to see how well it builds in that environment.
comment:6 Changed 2 years ago by mmitar@…
I have managed to compile VirtualBox 4.0.0 against MacPorts' qt4-mac independently. The biggest problem is that VirtualBox is expecting Qt4 framework and MacPorts does not provide one. The solution was to just remove all special handling of "darwin" in VirtualBox build system and pretend it is Linux. And it worked.
I also have to remove some strange ApplicationServices references in auto-generated file AutoConfig.kmk, although it could be that this was needed just because I was trying all possible things in different order.
I have also created a file LocalConfig.kmk as described here. So except Qt4 everything else was straightforward.
I am attaching a patch of all changes I made.
I was doing this for myself so that I can have VirtualBox.app in Utilities subdirectory of Applications directory. So this change is also in the patch.
Changed 2 years ago by mmitar@…
- Attachment virtualbox-remove-darwin.patch added
A patch which links VirtualBox against non-framework Qt4
comment:7 Changed 2 years ago by carsomyr@…
Here's my take on VirtualBox. I've been working on it for a while, and everything builds and installs. The kernel modules are even loaded/unloaded by post-activate and pre-deactivate hooks. It should work for anyone running Snow Leopard. Please find attached virtualbox-port-4.0.2.tgz.
Changed 2 years ago by carsomyr@…
- Attachment virtualbox-port-4.0.2.tgz added
The port archive for VirtualBox 4.0.2.
comment:10 Changed 23 months ago by rmstonecipher@…
- Status changed from new to closed
- Resolution set to duplicate
Refer to #28469 for current work on porting virtualbox.


Original hacky Portfile for VirtualBox