From: Sergei Trofimovich Date: Sun, 26 Jan 2020 22:31:31 +0000 (+0000) Subject: toolchain.eclass: make ${GCC_CONFIG_VER} != ${GCC_RELEASE_VER} nonfatal X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3dd25eef1c1ab86a142864cbce3bd46f2db006ce;p=gentoo.git toolchain.eclass: make ${GCC_CONFIG_VER} != ${GCC_RELEASE_VER} nonfatal dev-lang/gnat-gpl uses ${GCC_CONFIG_VER} to override exposed gcc version. Let's keep it nonfatal until ada ebuilds are fixed. Signed-off-by: Sergei Trofimovich --- diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 23b299254690..8796ff10e8ee 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -574,7 +574,9 @@ toolchain_src_prepare() { 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 rename ebuild to '${PN}-${actual_version}...'" + # TODO: once ada ebuilds are fixed turn it to 'die' + eerror "Please set GCC_RELEASE_VER to '${actual_version}'" + echo "${GCC_CONFIG_VER}" > "${S}"/gcc/BASE-VER fi fi