New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #23080 (closed submission: duplicate)

Opened 2 years ago

Last modified 6 months ago

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

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

Change History

Changed 2 years ago by bm55b@…

Original hacky Portfile for VirtualBox

  Changed 2 years ago by jmr@…

  • version 1.8.1 deleted
  • milestone MacPorts Future deleted

  Changed 2 years ago by jp@…

  • cc jp@… added

Cc Me!

in reply to: ↑ description   Changed 16 months 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.

  Changed 16 months ago by phillipao@…

  • cc phillipao@… added

Cc Me!

  Changed 13 months ago by mmitar@…

  • cc mmitar@… added

Cc Me!

  Changed 13 months 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 13 months ago by mmitar@…

A patch which links VirtualBox against non-framework Qt4

  Changed 12 months 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 12 months ago by carsomyr@…

The port archive for VirtualBox 4.0.2.

  Changed 12 months ago by ryandesign@…

Version 4.0.4 has been submitted as #28469.

  Changed 6 months ago by arno+macports@…

  • cc arno+macports@… added

Cc Me!

  Changed 6 months ago by rmstonecipher@…

  • status changed from new to closed
  • resolution set to duplicate

Refer to #28469 for current work on porting virtualbox.

Note: See TracTickets for help on using tickets.