svn commit: r455405 - head/lang/gcc

Gerald Pfeifer gerald at FreeBSD.org
Sun Dec 3 13:59:54 UTC 2017


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 at 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


More information about the svn-ports-all mailing list