From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Aug 22 07:20:04 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CD75D1065691 for ; Sat, 22 Aug 2009 07:20:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A964A8FC1B for ; Sat, 22 Aug 2009 07:20:04 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n7M7K4bZ012789 for ; Sat, 22 Aug 2009 07:20:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n7M7K4Ek012787; Sat, 22 Aug 2009 07:20:04 GMT (envelope-from gnats) Resent-Date: Sat, 22 Aug 2009 07:20:04 GMT Resent-Message-Id: <200908220720.n7M7K4Ek012787@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, Anonymous Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD4F9106568F for ; 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 ; Sat, 22 Aug 2009 07:18:47 +0000 (UTC) Received: by ewy5 with SMTP id 5so1794773ewy.36 for ; 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 To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/138063: [patch] emulators/virtualbox: does NOT respect CC and CXX X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Aug 2009 07:20:05 -0000 >Number: 138063 >Category: ports >Synopsis: [patch] emulators/virtualbox: does NOT respect CC and CXX >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: Sat Aug 22 07:20:04 UTC 2009 >Closed-Date: >Last-Modified: >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 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: >Unformatted: