toolchain.eclass: don't add _pre suffixes to tools
authorSergei Trofimovich <slyfox@gentoo.org>
Sun, 26 Jan 2020 20:01:15 +0000 (20:01 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Sun, 26 Jan 2020 20:55:33 +0000 (20:55 +0000)
${GCC_CONFIG_VER} != ${GCC_RELEASE_VER} does not really
work today. We don't override enough paths and don't rename
tool versions.

Let's keep thins simpler and stick to upstream versioning.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
eclass/toolchain.eclass

index 97c9e585723e3adb31e38fe09398331db46189eb..767240eb7f233ceca214478116f1ba0b4e1b01d4 100644 (file)
@@ -73,9 +73,10 @@ GCCMAJOR=$(ver_cut 1 ${GCC_PV})
 GCCMINOR=$(ver_cut 2 ${GCC_PV})
 GCCMICRO=$(ver_cut 3 ${GCC_PV})
 
-# According to gcc/c-cppbuiltin.c, GCC_CONFIG_VER MUST match this regex.
-# ([^0-9]*-)?[0-9]+[.][0-9]+([.][0-9]+)?([- ].*)?
-GCC_CONFIG_VER=${GCC_CONFIG_VER:-$(ver_rs 3 '-' ${GCC_PV})}
+# gcc hardcodes it's internal version into gcc/BASE-VER
+# and assumes various directories and tools to have the
+# same name.
+GCC_CONFIG_VER=${GCC_RELEASE_VER}
 
 # Pre-release support. Versioning schema:
 # 1.0.0_pre9999: live ebuild