From d2f7c8c1e90dd39818c8a810c57c9b15f96ffbe0 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 27 Oct 2019 20:15:41 +0000 Subject: [PATCH] toolchain.eclass: set SLOT=${GCCMAJOR} for gcc-10* Signed-off-by: Sergei Trofimovich --- eclass/toolchain.eclass | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 <<---- -- 2.26.2