Opened 15 years ago

Closed 13 years ago

#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@…, fracai
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 (3)

Portfile (2.8 KB) - added by bm55b@… 15 years ago.
Original hacky Portfile for VirtualBox
virtualbox-remove-darwin.patch (13.1 KB) - added by mmitar@… 14 years ago.
A patch which links VirtualBox against non-framework Qt4
virtualbox-port-4.0.2.tgz (5.6 KB) - added by carsomyr@… 14 years ago.
The port archive for VirtualBox 4.0.2.

Download all attachments as: .zip

Change History (13)

Changed 15 years ago by bm55b@…

Attachment: Portfile added

Original hacky Portfile for VirtualBox

comment:1 Changed 15 years ago by jmroot (Joshua Root)

Milestone: MacPorts Future
Version: 1.8.1

comment:2 Changed 15 years ago by jp@…

Cc: jp@… added

Cc Me!

comment:3 in reply to:  description Changed 14 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:4 Changed 14 years ago by phillipao@…

Cc: phillipao@… added

Cc Me!

comment:5 Changed 14 years ago by mmitar@…

Cc: mmitar@… added

Cc Me!

comment:6 Changed 14 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 14 years ago by mmitar@…

A patch which links VirtualBox against non-framework Qt4

comment:7 Changed 14 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 14 years ago by carsomyr@…

Attachment: virtualbox-port-4.0.2.tgz added

The port archive for VirtualBox 4.0.2.

comment:8 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Version 4.0.4 has been submitted as #28469.

comment:9 Changed 13 years ago by fracai

Cc: arno+macports@… added

Cc Me!

comment:10 Changed 13 years ago by rmstonecipher@…

Resolution: duplicate
Status: newclosed

Refer to #28469 for current work on porting virtualbox.

Note: See TracTickets for help on using tickets.