From owner-freebsd-ports@FreeBSD.ORG Sun Mar 17 23:16:18 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id F40511B1; Sun, 17 Mar 2013 23:16:17 +0000 (UTC) (envelope-from gerald@pfeifer.com) Received: from ainaz.pair.com (ainaz.pair.com [209.68.2.66]) by mx1.freebsd.org (Postfix) with ESMTP id D538985E; Sun, 17 Mar 2013 23:16:17 +0000 (UTC) Received: from [192.168.0.131] (vie-188-118-252-015.dsl.sil.at [188.118.252.15]) by ainaz.pair.com (Postfix) with ESMTPSA id 3940D3F417; Sun, 17 Mar 2013 19:16:16 -0400 (EDT) Date: Mon, 18 Mar 2013 00:16:15 +0100 (CET) From: Gerald Pfeifer To: Bryan Drewery Subject: Re: is it a good idea to overwrite GCC_DEFAULT_VERSION= in Mk/bsd.gcc.mk? In-Reply-To: <5144FD61.7010008@FreeBSD.org> Message-ID: References: <201302071050.r17AoxNJ078459@mech-cluster241.men.bris.ac.uk> <5144FD61.7010008@FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Anton Shterenlikht , freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Mar 2013 23:16:18 -0000 On Sat, 16 Mar 2013, Bryan Drewery wrote: >>> So I wonder if there are any side effects or unexpected >>> effects if I just change GCC_DEFAULT_VERSION= to e.g. 4.7? > I don't think this is working as expected. See also ports/177017 which I > believe is a bsd.gcc.mk issue and not a pkgng or portmaster issue. My > understanding is that this user want > > When I change GCC_DEFAULT_VERSION to 4.7, it now depends on the gcc47 > package, but still is using lang/gcc: You're right! In addition to setting GCC_DEFAULT_VERSION to 4.7, one also needs to adjust the following in Mk/bsd.gcc.mk: . if ${_USE_GCC} == ${GCC_DEFAULT_VERSION} _GCC_PORT:= gcc . else _GCC_PORT:= gcc${V} . endif The most correct way of doing this would be replacing the first line by . if ${_USE_GCC} == 4.6 That should then do the right thing; or you could just remove everything except for _GCC_PORT:= gcc${V} Either should work. (I'd love to update GCC_DEFAULT_VERSION to 4.7 one of these days; is the cluster sufficiently recovered for a test run?) Gerald