summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2019-10-27 20:15:41 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2019-10-27 20:16:48 +0000
commitd2f7c8c1e90dd39818c8a810c57c9b15f96ffbe0 (patch)
tree38d5bee4c9a886ccdce11f5281a21daf06780f06 /eclass/toolchain.eclass
parentsys-devel/gcc: drop old (diff)
downloadgentoo-d2f7c8c1e90dd39818c8a810c57c9b15f96ffbe0.tar.gz
gentoo-d2f7c8c1e90dd39818c8a810c57c9b15f96ffbe0.tar.bz2
gentoo-d2f7c8c1e90dd39818c8a810c57c9b15f96ffbe0.zip
toolchain.eclass: set SLOT=${GCCMAJOR} for gcc-10*
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r--eclass/toolchain.eclass8
1 files changed, 7 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 7e88900737ac..d2bfa6ab2f1d 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -186,7 +186,13 @@ if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then
tc_version_is_at_least 9.1 && IUSE+=" lto"
fi
-SLOT="${GCC_CONFIG_VER}"
+if tc_version_is_at_least 10; then
+ # Note: currently we pull in prereleases, snapshots and
+ # git versions into the same SLOT.
+ SLOT="${GCCMAJOR}"
+else
+ SLOT="${GCC_CONFIG_VER}"
+fi
#---->> DEPEND <<----