From: Mike Frysinger Date: Mon, 13 Apr 2015 04:16:35 +0000 (+0000) Subject: handle versions 6.x+ like 5.x X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=37650a133fa20fe419f0bcba413fc6e1fa1ab000;p=gentoo.git handle versions 6.x+ like 5.x --- diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index a1cee187c850..b26c6e3e78e8 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.661 2015/04/13 04:15:59 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.662 2015/04/13 04:16:35 vapier Exp $ # Maintainer: Toolchain Ninjas @@ -86,9 +86,9 @@ elif [[ ${GCC_PV} == *_rc* ]] ; then SNAPSHOT=${GCC_PV%_rc*}-RC-${GCC_PV##*_rc} fi -if [[ ${SNAPSHOT} == 5.0-* ]] ; then - # The gcc-5 release has dropped the .0 for some reason. - SNAPSHOT=${SNAPSHOT/5.0/5} +if [[ ${SNAPSHOT} == [56789].0-* ]] ; then + # The gcc-5+ releases have dropped the .0 for some reason. + SNAPSHOT=${SNAPSHOT/.0} fi export GCC_FILESDIR=${GCC_FILESDIR:-${FILESDIR}}