Removing default build of gcc
Gerald Pfeifer
gerald at pfeifer.com
Sat Mar 2 01:17:27 UTC 2013
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
More information about the freebsd-toolchain
mailing list