toolchain.eclass: set SLOT=${GCCMAJOR} for gcc-10*
authorSergei Trofimovich <slyfox@gentoo.org>
Sun, 27 Oct 2019 20:15:41 +0000 (20:15 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Sun, 27 Oct 2019 20:16:48 +0000 (20:16 +0000)
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
eclass/toolchain.eclass

index 7e88900737ac84176cd875befe9ac9114c0af348..d2bfa6ab2f1d713f9bd897eacda9188344a493f6 100644 (file)
@@ -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 <<----