diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2020-07-31 19:52:42 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2020-07-31 21:42:07 +0100 |
commit | 7faed09083a9e8c406ddd14cf663bf9229b88d88 (patch) | |
tree | 33b0b851650d041781a069f81ce273e99a398f04 /eclass | |
parent | toolchain.eclass: drop fixheadtails.eclass use for <gcc-4.3 (diff) | |
download | gentoo-7faed09083a9e8c406ddd14cf663bf9229b88d88.tar.gz gentoo-7faed09083a9e8c406ddd14cf663bf9229b88d88.tar.bz2 gentoo-7faed09083a9e8c406ddd14cf663bf9229b88d88.zip |
toolchain.eclass: always validate gcc/BASE-VER (assume >=gcc-4.1)
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index b205aeccb5cf..4d08574228dc 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -474,12 +474,10 @@ toolchain_src_prepare() { setup_multilib_osdirnames gcc_version_patch - if tc_version_is_at_least 4.1 ; then - local actual_version=$(< "${S}"/gcc/BASE-VER) - 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 + local actual_version=$(< "${S}"/gcc/BASE-VER) + 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 |