From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Apr 16 23:20:00 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B36F5FEF for ; Wed, 16 Apr 2014 23:20:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 89CBB106E for ; Wed, 16 Apr 2014 23:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s3GNK0oK052134 for ; Wed, 16 Apr 2014 23:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s3GNK0cw052133; Wed, 16 Apr 2014 23:20:00 GMT (envelope-from gnats) Resent-Date: Wed, 16 Apr 2014 23:20:00 GMT Resent-Message-Id: <201404162320.s3GNK0cw052133@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Lawrence "The Dreamer" Chen Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0E053B2B for ; Wed, 16 Apr 2014 23:10:37 +0000 (UTC) Received: from mho-01-ewr.mailhop.org (mho-03-ewr.mailhop.org [204.13.248.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D1D271FE0 for ; Wed, 16 Apr 2014 23:10:35 +0000 (UTC) Received: from ip70-179-144-228.fv.ks.cox.net ([70.179.144.228] helo=zen.lhaven.homeip.net) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1WaYyK-000HVl-QO for FreeBSD-gnats-submit@freebsd.org; Wed, 16 Apr 2014 23:10:29 +0000 Received: from zen.lhaven.homeip.net (localhost [127.0.0.1]) by zen.lhaven.homeip.net (8.14.8/8.14.7) with ESMTP id s3GNARSE065560; Wed, 16 Apr 2014 18:10:27 -0500 (CDT) (envelope-from lchen@zen.lhaven.homeip.net) Received: (from lchen@localhost) by zen.lhaven.homeip.net (8.14.8/8.14.7/Submit) id s3GNAMpr065559; Wed, 16 Apr 2014 18:10:22 -0500 (CDT) (envelope-from lchen) Message-Id: <201404162310.s3GNAMpr065559@zen.lhaven.homeip.net> Date: Wed, 16 Apr 2014 18:10:22 -0500 (CDT) From: Lawrence "The Dreamer" Chen To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: ports/188710: [patch] net/boinc-client: fails to detect VirtualBox X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Lawrence The Dreamer Chen List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Apr 2014 23:20:00 -0000 >Number: 188710 >Category: ports >Synopsis: [patch] net/boinc-client: fails to detect VirtualBox >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Apr 16 23:20:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Lawrence "The Dreamer" Chen >Release: FreeBSD 9.2-RELEASE-p4 amd64 >Organization: >Environment: System: FreeBSD zen.lhaven.homeip.net 9.2-RELEASE-p4 FreeBSD 9.2-RELEASE-p4 #0: Tue Apr 8 18:08:22 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: 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. >How-To-Repeat: >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. --- patch begins here --- --- files/patch-client__hostinfo_unix.cpp.orig 1969-12-31 18:00:00.000000000 -0600 +++ files/patch-client__hostinfo_unix.cpp 2014-04-16 17:14:25.138932145 -0500 @@ -0,0 +1,20 @@ +--- client/hostinfo_unix.cpp.orig 2013-12-20 14:28:08.000000000 -0600 ++++ client/hostinfo_unix.cpp 2014-04-16 17:07:56.996236131 -0500 +@@ -1213,6 +1213,8 @@ + + #if LINUX_LIKE_SYSTEM + safe_strcpy(path, "/usr/lib/virtualbox/VBoxManage"); ++#elif defined( __FreeBSD__) ++ safe_strcpy(path, "/usr/local/lib/virtualbox/VBoxManage"); + #elif defined( __APPLE__) + FSRef theFSRef; + OSStatus status = noErr; +@@ -1231,7 +1233,7 @@ + #endif + + if (boinc_file_exists(path)) { +-#if LINUX_LIKE_SYSTEM ++#if LINUX_LIKE_SYSTEM || defined( __FreeBSD__) + if (access(path, X_OK)) { + return 0; + } --- patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: