From owner-svn-ports-all@FreeBSD.ORG Sun Mar 3 03:21:30 2013 Return-Path: Delivered-To: svn-ports-all@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 50D92F57; Sun, 3 Mar 2013 03:21:30 +0000 (UTC) (envelope-from gerald@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 139CA108; Sun, 3 Mar 2013 03:21:30 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r233LT89061747; Sun, 3 Mar 2013 03:21:29 GMT (envelope-from gerald@svn.freebsd.org) Received: (from gerald@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r233LTPP061745; Sun, 3 Mar 2013 03:21:29 GMT (envelope-from gerald@svn.freebsd.org) Message-Id: <201303030321.r233LTPP061745@svn.freebsd.org> From: Gerald Pfeifer Date: Sun, 3 Mar 2013 03:21:29 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r313323 - head/Mk X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Mar 2013 03:21:30 -0000 Author: gerald Date: Sun Mar 3 03:21:29 2013 New Revision: 313323 URL: http://svnweb.freebsd.org/changeset/ports/313323 Log: Do not just rely on the version number of FreeBSD in deciding whether a certain version of GCC is in the base, but also check the existence of /usr/bin/gcc. This unbreaks systems where GCC is not built as part of the world, and instead relies on versions of GCC in the Ports Collection there. PR: 175252 Submitted by: Yamaya Takashi Modified: head/Mk/bsd.gcc.mk Modified: head/Mk/bsd.gcc.mk ============================================================================== --- head/Mk/bsd.gcc.mk Sun Mar 3 02:51:25 2013 (r313322) +++ head/Mk/bsd.gcc.mk Sun Mar 3 03:21:29 2013 (r313323) @@ -150,7 +150,9 @@ IGNORE= Unknown version of GCC specified _GCC_FOUND${v}= port . endif . if ${OSVERSION} >= ${_GCCVERSION_${v}_L} && ${OSVERSION} < ${_GCCVERSION_${v}_R} +. if exists(/usr/bin/gcc) _GCC_FOUND${v}:= base +. endif . endif .endfor @@ -194,7 +196,7 @@ _USE_GCC:= ${GCC_DEFAULT_VERSION} # dependencies, CC, CXX, CPP, and flags. .for v in ${GCCVERSIONS} . if ${_USE_GCC} == ${_GCCVERSION_${v}_V} -. if ${OSVERSION} < ${_GCCVERSION_${v}_L} || ${OSVERSION} > ${_GCCVERSION_${v}_R} +. if ${OSVERSION} < ${_GCCVERSION_${v}_L} || ${OSVERSION} > ${_GCCVERSION_${v}_R} || !exists(/usr/bin/gcc) V:= ${_GCCVERSION_${v}_V:S/.//} _GCC_PORT_DEPENDS:= gcc${V} . if ${_USE_GCC} == ${GCC_DEFAULT_VERSION} @@ -219,7 +221,7 @@ FFLAGS+= -Wl,-rpath=${_GCC_RUNTIME} # ever telling us; to be fixed. _GCC_BUILD_DEPENDS:= ${_GCC_PORT_DEPENDS} . endif # ${_USE_GCC} != 3.4 -. else # ${OSVERSION} < ${_GCCVERSION_${v}_L} || ${OSVERSION} > ${_GCCVERSION_${v}_R} +. else # Use GCC in base. CC:= gcc CXX:= g++ . if exists(/usr/bin/gcpp) @@ -227,7 +229,7 @@ CPP:= gcpp . else CPP:= cpp . endif -. endif # ${OSVERSION} < ${_GCCVERSION_${v}_L} || ${OSVERSION} > ${_GCCVERSION_${v}_R} +. endif # Use GCC in base. . endif # ${_USE_GCC} == ${_GCCVERSION_${v}_V} .endfor .undef V