From owner-freebsd-toolchain@FreeBSD.ORG Sat Mar 2 01:17:27 2013 Return-Path: Delivered-To: toolchain@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 19E0729B; Sat, 2 Mar 2013 01:17:27 +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 DBD80ED; Sat, 2 Mar 2013 01:17:26 +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 8BBEF3F410; Fri, 1 Mar 2013 20:17:14 -0500 (EST) Date: Sat, 2 Mar 2013 02:17:13 +0100 (CET) From: Gerald Pfeifer To: David Chisnall Subject: Re: Removing default build of gcc In-Reply-To: <74D8E686-3679-46F2-8A08-4CF5DFC020CA@FreeBSD.org> Message-ID: References: <74D8E686-3679-46F2-8A08-4CF5DFC020CA@FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: toolchain@FreeBSD.org X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Mar 2013 01:17:27 -0000 On Fri, 25 Jan 2013, David Chisnall wrote: > In 10.0, the plan is not to ship any GPL'd code, so I'd like to > start disconnecting things from the default build, starting with > gcc. I've been running a gcc-free system for a while, and I think > all of the ports that don't build with clang are now explicitly > depending on gcc. I am surprised you did not run into problems with the ports infra- structure, for there definitely are some still. The patch below is the first in a series of contributions to address this (though this specific one would not have lead to a failure -- yet). I plan on shortly committing patches by Yamaya Takashi, destilled from PR 175252, which will address further issues. Gerald Author: gerald Date: Sat Mar 2 01:06:15 2013 New Revision: 313177 URL: http://svnweb.freebsd.org/changeset/ports/313177 Log: Remove a bogus old check that assumes that every version of FreeBSD has GCC in the base. Adjust a comment, now describing the real purpose of the code remaining in that block. PR: 175252 Modified: head/Mk/bsd.gcc.mk Modified: head/Mk/bsd.gcc.mk ============================================================================== --- head/Mk/bsd.gcc.mk Sat Mar 2 00:40:53 2013 (r313176) +++ head/Mk/bsd.gcc.mk Sat Mar 2 01:06:15 2013 (r313177) @@ -143,20 +143,16 @@ IGNORE= Unknown version of GCC specified .endif # -# Determine current GCCVERSION +# Initialize _GCC_FOUND${v}. # .for v in ${GCCVERSIONS} . if exists(${LOCALBASE}/bin/gcc${_GCCVERSION_${v}_V:S/.//}) _GCC_FOUND${v}= port . endif . if ${OSVERSION} >= ${_GCCVERSION_${v}_L} && ${OSVERSION} < ${_GCCVERSION_${v}_R} -_GCCVERSION:= ${v} _GCC_FOUND${v}:= base . endif .endfor -.if !defined(_GCCVERSION) -IGNORE= Couldn't find your current GCCVERSION (OSVERSION=${OSVERSION}) -.endif # # If the GCC package defined in USE_GCC does not exist, but a later