From owner-freebsd-ports@FreeBSD.ORG Sun Sep 4 07:40:08 2011 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 301501065672 for ; Sun, 4 Sep 2011 07:40:08 +0000 (UTC) (envelope-from mandree@FreeBSD.org) Received: from unimail.uni-dortmund.de (mx1.HRZ.Uni-Dortmund.DE [129.217.128.51]) by mx1.freebsd.org (Postfix) with ESMTP id B5A528FC12 for ; Sun, 4 Sep 2011 07:40:07 +0000 (UTC) Received: from [192.168.0.3] (p4FE33D45.dip.t-dialin.net [79.227.61.69]) (authenticated bits=0) by unimail.uni-dortmund.de (8.14.5/8.14.5) with ESMTP id p847Qxoi024050 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NOT) for ; Sun, 4 Sep 2011 09:26:59 +0200 (CEST) Message-ID: <4E632843.2090602@FreeBSD.org> Date: Sun, 04 Sep 2011 09:26:59 +0200 From: Matthias Andree Organization: FreeBSD User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.21) Gecko/20110831 Lightning/1.0b2 Mnenhy/0.8.3 Thunderbird/3.1.13 MIME-Version: 1.0 To: freebsd-ports@FreeBSD.org References: <20110725155920.GA83490@freebsd.org> <4E2DE60C.8030902@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: Re: [ANNOUNCE]: clang compiling ports, take 2 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Sep 2011 07:40:08 -0000 Am 04.09.2011 05:09, schrieb Gerald Pfeifer: > On Mon, 25 Jul 2011, Matthias Andree wrote: >> Namely: if a port sets USE_GCC=4.2+ (for instance, sysutils/busybox does >> that), the Pointyhat build does not install GCC. I think the bug is in >> ports/Mk/bsd.gcc.mk which is unaware that there are newer clang-based >> 9-CURRENT systems without gcc. >> >> I hope we can have another -exp run soon that addresses this. > > Matthias, sorry for not getting to this earlier. If you look at > Mk/bsd.port.mk, there is a line > > GCCVERSION_040200= 700042 999999 4.2 > > which indicates that GCC 4.2 has been in the base system starting > with FreeBSD 7.0 (and that magic 42 marker) until the rest of times. > > Can you advise which value of __FreeBSD_version to use? The official > list at > http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/freebsd-versions.html > does not have a reference from what I can see. Gerald, I'm not sure if checking one of the OS Version features will be sufficient. I am unaware of how exactly the Clang switchover is going to happen, and how we detect it. Possibly we need to check if ${CC} is part of the base system, and if it isn't, install a GCC port, at least for now. Best, Matthias