From swell.k@gmail.com  Sat Aug 22 07:18:47 2009
Return-Path: <swell.k@gmail.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id DD4F9106568F
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 22 Aug 2009 07:18:47 +0000 (UTC)
	(envelope-from swell.k@gmail.com)
Received: from mail-ew0-f209.google.com (mail-ew0-f209.google.com [209.85.219.209])
	by mx1.freebsd.org (Postfix) with ESMTP id 69FEB8FC0C
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 22 Aug 2009 07:18:47 +0000 (UTC)
Received: by ewy5 with SMTP id 5so1794773ewy.36
        for <FreeBSD-gnats-submit@freebsd.org>; Sat, 22 Aug 2009 00:18:46 -0700 (PDT)
Received: by 10.210.135.9 with SMTP id i9mr2394140ebd.65.1250925526117;
        Sat, 22 Aug 2009 00:18:46 -0700 (PDT)
Received: from localhost (95-24-169-95.broadband.corbina.ru [95.24.169.95])
        by mx.google.com with ESMTPS id 28sm4726526eyg.32.2009.08.22.00.18.44
        (version=TLSv1/SSLv3 cipher=RC4-MD5);
        Sat, 22 Aug 2009 00:18:45 -0700 (PDT)
Message-Id: <8663cg1fl9.fsf@gmail.com>
Date: Sat, 22 Aug 2009 11:18:42 +0400
From: Anonymous <swell.k@gmail.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: [patch] emulators/virtualbox: does NOT respect CC and CXX
X-Send-Pr-Version: 3.113

>Number:         138063
>Category:       ports
>Synopsis:       [patch] emulators/virtualbox: does NOT respect CC and CXX
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    vbox
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 22 07:20:04 UTC 2009
>Closed-Date:    Thu Sep 10 23:17:50 UTC 2009
>Last-Modified:  Thu Sep 10 23:20:00 UTC 2009
>Originator:     Anonymous
>Release:        FreeBSD 8.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD 8.0-BETA2 #0 r196396M: Thu Aug 20 02:38:37 UTC 2009     root@luffy:/usr/obj/usr/src/sys/PHOENIX  amd64

I have gcc, cc -> gcc45 symlink in PATH
>Description:
$ make CC=gcc43 CXX=g++43
===>  Configuring for virtualbox-3.0.51.r22226
Checking for environment: Determined build machine: freebsd.amd64, target machine: freebsd.amd64, OK.
Checking for kBuild: found, OK.
Checking for gcc:
  ** gcc version 4.5.0 found, expected gcc 3.x with x>1 or gcc 4.x with 0<x<4!
===>  Script "configure" failed unexpectedly.
Please report the problem to vbox@FreeBSD.org [maintainer] and attach the
"/var/tmp/ports/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22226/config.log"
including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. an `ls /var/db/pkg`).
*** Error code 1

>How-To-Repeat:
1. add symlink gcc, cc -> gcc45 to PATH before /usr/bin/gcc
2. try to build using CC and CXX set in environment or as make args
>Fix:
--- virtualbox.diff begins here ---
Index: emulators/virtualbox/Makefile
===================================================================
RCS file: /home/csup/ports/emulators/virtualbox/Makefile,v
retrieving revision 1.5
diff -u -p -r1.5 Makefile
--- emulators/virtualbox/Makefile	14 Aug 2009 16:10:23 -0000	1.5
+++ emulators/virtualbox/Makefile	22 Aug 2009 07:04:00 -0000
@@ -32,6 +32,7 @@ ONLY_FOR_ARCHS=	i386 amd64
 USE_BZIP2=	yes
 
 HAS_CONFIGURE=	yes
+CONFIGURE_ARGS+=--with-gcc=${CC} --with-g++=${CXX}
 USE_LDCONFIG=	${PREFIX}/lib/virtualbox
 
 CONFLICTS=	bcc-[0-9]*
--- virtualbox.diff ends here ---
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->vbox 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Aug 22 07:20:20 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=138063 
State-Changed-From-To: open->closed 
State-Changed-By: beat 
State-Changed-When: Thu Sep 10 23:17:49 UTC 2009 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=138063 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/138063: commit references a PR
Date: Thu, 10 Sep 2009 23:17:06 +0000 (UTC)

 beat        2009-09-10 23:16:56 UTC
 
   FreeBSD ports repository
 
   Modified files:
     emulators/virtualbox Makefile distinfo pkg-plist 
   Added files:
     emulators/virtualbox/files patch-Config.kmk 
                                patch-src-VBox-Runtime-r0drv-freebsd-semeventmulti-r0drv-freebsd.c 
                                patch-src-VBox-Runtime-r0drv-freebsd-spinlock-r0drv-freebsd.c 
                                patch-src-VBox-Runtime-r0drv-freebsd.semevent-r0drv-freebsd.c 
   Removed files:
     emulators/virtualbox/files patch-include-iprt-types.h 
                                patch-src-VBox-Additions-common-VBoxGuest-VBoxGuest-freebsd.c 
   Log:
   - Update to 3.0.51r22683. This version adds support for tap interface
     networking done by nox@, working VT-x, ACPI and Host DVD/CD access
     support and several FreeBSD related bugfixes.
   - Update Guest Additions to 3.0.6.
   - Respect CC and CXX variables. [1]
   - Add support for WITHOUT_X11 build. [2]
   - Fix pkg-plist for WITHOUT_NLS. [2]
   - Use LocalConfig.kmk to simplify configuration. [2]
   - Install vboxapi module and fix xpcom.vboxxpcom python api. [2]
   
   PR:             ports/138063 [1]
   Submitted by:   Anonymous <swell dot k at gmail dot com> [1],
                   Bernhard Froehlich <decke AT bluelife.at> [2]
   On behalf of:   vbox@ (decke, dhn, miwi, nox)
   
   Revision  Changes    Path
   1.6       +42 -21    ports/emulators/virtualbox/Makefile
   1.4       +6 -6      ports/emulators/virtualbox/distinfo
   1.3       +10 -0     ports/emulators/virtualbox/files/patch-Config.kmk (new)
   1.2       +0 -14     ports/emulators/virtualbox/files/patch-include-iprt-types.h (dead)
   1.3       +0 -14     ports/emulators/virtualbox/files/patch-src-VBox-Additions-common-VBoxGuest-VBoxGuest-freebsd.c (dead)
   1.1       +41 -0     ports/emulators/virtualbox/files/patch-src-VBox-Runtime-r0drv-freebsd-semeventmulti-r0drv-freebsd.c (new)
   1.1       +14 -0     ports/emulators/virtualbox/files/patch-src-VBox-Runtime-r0drv-freebsd-spinlock-r0drv-freebsd.c (new)
   1.1       +41 -0     ports/emulators/virtualbox/files/patch-src-VBox-Runtime-r0drv-freebsd.semevent-r0drv-freebsd.c (new)
   1.5       +54 -34    ports/emulators/virtualbox/pkg-plist
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
