diff options
author | Sam James <sam@gentoo.org> | 2022-04-15 04:09:09 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-04-15 04:09:31 +0100 |
commit | bc950592bad6f3472921cbb18869f84e7622eca5 (patch) | |
tree | b4ba3f211d376fabb8b2b067117ed73daecd3aee /eclass | |
parent | app-containers/docker: drop 20.10.9 (diff) | |
download | gentoo-bc950592bad6f3472921cbb18869f84e7622eca5.tar.gz gentoo-bc950592bad6f3472921cbb18869f84e7622eca5.tar.bz2 gentoo-bc950592bad6f3472921cbb18869f84e7622eca5.zip |
Revert "toolchain.eclass: handle RCs correctly"
The install paths are still mixed with 11.2.1/11.3.0. Bleh.
This reverts commit 0768e37e87fd7b73566a4f1b658f941b575bca12.
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 383e533bf8b4..8788e72efebb 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -461,19 +461,9 @@ toolchain_src_prepare() { gcc_version_patch local actual_version=$(< "${S}"/gcc/BASE-VER) - if [[ ${PV} == *_rc* ]] ; then - # Mangle e.g. 11.2.1 -> 11.3.0 - # Upstream don't update the file until the final release - local actual_version_mangled=$(ver_cut 1 ${actual_version}).$(($(ver_cut 3 ${actual_version}) + 1)).$(($(ver_cut 5 ${actual_version}) + 1)) - local gcc_release_ver_mangled=$(ver_cut 1 ${GCC_RELEASE_VER}).$(($(ver_cut 3 ${GCC_RELEASE_VER}) + 2)).$(($(ver_cut 5 ${GCC_RELEASE_VER}) + 1)) - else - local actual_version_mangled=${actual_version} - local gcc_release_ver_mangled=${GCC_RELEASE_VER} - fi - - if [[ "${actual_version_mangled}" != "${gcc_release_ver_mangled}" ]] ; then - eerror "'${S}/gcc/BASE-VER' contains '${actual_version_mangled}', expected '${gcc_release_ver_mangled}'" - die "Please set 'TOOLCHAIN_GCC_PV' to '${actual_version_mangled}'" + if [[ "${GCC_RELEASE_VER}" != "${actual_version}" ]] ; then + eerror "'${S}/gcc/BASE-VER' contains '${actual_version}', expected '${GCC_RELEASE_VER}'" + die "Please set 'TOOLCHAIN_GCC_PV' to '${actual_version}'" fi # >= gcc-4.3 doesn't bundle ecj.jar, so copy it |