Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Dec 2017 13:59:53 +0000 (UTC)
From:      Gerald Pfeifer <gerald@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r455405 - head/lang/gcc
Message-ID:  <201712031359.vB3DxrdS085207@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gerald
Date: Sun Dec  3 13:59:53 2017
New Revision: 455405
URL: https://svnweb.freebsd.org/changeset/ports/455405

Log:
  Ensure our dependencies also work properly when GCC_DEFAULT is one of
  the older versions, in particular 4.9 which is the last working on SPARC.
  
  Reported by:	linimon

Modified:
  head/lang/gcc/Makefile

Modified: head/lang/gcc/Makefile
==============================================================================
--- head/lang/gcc/Makefile	Sun Dec  3 13:33:02 2017	(r455404)
+++ head/lang/gcc/Makefile	Sun Dec  3 13:59:53 2017	(r455405)
@@ -10,7 +10,9 @@ DISTFILES=	# not applicable
 MAINTAINER=	gerald@FreeBSD.org
 COMMENT=	Meta-port for the default version of the GNU Compiler Collection
 
-RUN_DEPENDS=	gcc${GCC_DEFAULT}:lang/gcc${GCC_DEFAULT}
+# Once GCC 4.9 and 4.8 aren't options any longer, we can simply use
+# GCC_DEFAULT again below (the expression rewrites 4.9 to 49).
+RUN_DEPENDS=	gcc${GCC_DEFAULT:S/.//}:lang/gcc${GCC_DEFAULT:S/.//}
 
 NO_ARCH=	yes
 NO_BUILD=	yes



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712031359.vB3DxrdS085207>