From owner-freebsd-current@FreeBSD.ORG Tue Sep 25 12:42:31 2012 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24AD5106564A; Tue, 25 Sep 2012 12:42:31 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by mx1.freebsd.org (Postfix) with ESMTP id D1AB38FC0C; Tue, 25 Sep 2012 12:42:30 +0000 (UTC) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost1.zedat.fu-berlin.de (Exim 4.69) with esmtp (envelope-from ) id <1TGUT2-002Rwt-8s>; Tue, 25 Sep 2012 14:42:24 +0200 Received: from e178013022.adsl.alicedsl.de ([85.178.13.22] helo=thor.walstatt.dyndns.org) by inpost2.zedat.fu-berlin.de (Exim 4.69) with esmtpsa (envelope-from ) id <1TGUT2-001XLF-6A>; Tue, 25 Sep 2012 14:42:24 +0200 Message-ID: <5061A6AF.5040800@zedat.fu-berlin.de> Date: Tue, 25 Sep 2012 14:42:23 +0200 From: "O. Hartmann" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:15.0) Gecko/20120910 Thunderbird/15.0.1 MIME-Version: 1.0 To: Ports FreeBSD , Current FreeBSD X-Enigmail-Version: 1.4.3 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Originating-IP: 85.178.13.22 Cc: Subject: lang/icon: Port does not respect "USE_GCC=4.6+ override and stops building duet to "BROKEN" flag X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Sep 2012 12:42:31 -0000 If someone overrides the default system compiler which is in my case CLANG 3.2 (on FreeBSD 10.0-CURRENT #1 r240885M: Mon Sep 24 12:30:44 CEST 2012 amd64), the if-statement does always take place and prevents lang/icon to be build: [...] .if ${CC} == "clang" || ${CXX} == "clang++" BROKEN= does not pass all tests when compiled with clang .endif [...] In /etc/makefile.conf, I include an additional file located in /usr/local/etc/ports.conf which contains statements like # lang/icon .if ${.CURDIR:M*/lang/icon} USE_GCC= 4.6+ #CC= cc #CXX= c++ #CPP= cpp .endif I'd expect the build system system to have already setup CC, CPP and CXX according to the specifications made in /etc/make.conf and the overridings in my ports.conf file with "USE_GCC=4.6+", but obviously this doesn't happen. I expect by setting "USE_GCC=4.6" all the nasty stuff like -Wl,rpatch=, CC,CXX,CPP et cetera is set for me and I do not have to take care of it. How can this problem be solved? I think this will become an issue when CLANG will be the default compiler. oh