Bug 188710

Summary: [patch] net/boinc-client: fails to detect VirtualBox
Product: Ports & Packages Reporter: Lawrence Chen <beastie>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: marino
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch none

Description Lawrence Chen 2014-04-17 00:20:00 UTC
	
	Back when I first started running boinc on FreeBSD, it was nice to find
	that it detected the presence of VirtualBox and that I was able to
	participate in Test4Theory.

	But, later whenever I would check on things, I would see that its unable
	to find it.  In the past this has usually been a issue with boinc-client
	starting before virtualbox is ready, but after solving a different
	problem in rcordering (tmp/cleartmp being called after vboxheadless
	has started, causing the socket in /tmp to vanish.)

	I decided I needed to look deeper.

Fix: Eventually, I found that in hostinfo_unix.cpp, it looks in for
	"/usr/lib/virtualbox/VBoxManage" if on a LINUX_LIKE system, or another
	way for Mac OS X, but nothing for FreeBSD.

	Don't know when it stopped supporting FreeBSD, but now suspect it might
	been between the 6.x and 7.x versions.  Seem to recall it was something
	that had quickly been added near the end of 6.x, but designed into 7.
Comment 1 John Marino freebsd_committer freebsd_triage 2014-07-22 19:33:52 UTC
note: this port has no maintainer.  Mark PR as patch-ready.
Comment 2 John Marino freebsd_committer freebsd_triage 2014-07-27 09:30:11 UTC
ugh, you hardcoded "/usr/local", I'm going to have to post-patch fetch that.
Comment 3 commit-hook freebsd_committer freebsd_triage 2014-07-27 09:37:24 UTC
A commit references this bug:

Author: marino
Date: Sun Jul 27 09:36:58 UTC 2014
New revision: 363031
URL: http://svnweb.freebsd.org/changeset/ports/363031

Log:
  net/boinc-client: Fix to detect virtualbox again

  The virtualbox path detection code has been patched to work on FreeBSD.
  The PR submission was modified to avoid hardcoding /usr/local.

  PR:		188710
  Submitted by:	Lawrence Chen

Changes:
  head/net/boinc-client/Makefile
  head/net/boinc-client/files/patch-client__hostinfo_unix.cpp