diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2019-10-27 20:15:41 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2019-10-27 20:16:48 +0000 |
commit | d2f7c8c1e90dd39818c8a810c57c9b15f96ffbe0 (patch) | |
tree | 38d5bee4c9a886ccdce11f5281a21daf06780f06 /eclass/toolchain.eclass | |
parent | sys-devel/gcc: drop old (diff) | |
download | gentoo-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.eclass | 8 |
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 <<---- |