summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-02-05 00:17:45 +0000
committerSam James <sam@gentoo.org>2024-02-05 00:19:34 +0000
commitd1ae0cebfb7b3008963cbc3acbe0646e7ecaf43f (patch)
tree9b87a78413f9d0cc146584ec37129777ac23d57c /eclass/toolchain.eclass
parentsys-devel/gcc: add 14.0.1_pre20240204 (diff)
downloadgentoo-d1ae0cebfb7b3008963cbc3acbe0646e7ecaf43f.tar.gz
gentoo-d1ae0cebfb7b3008963cbc3acbe0646e7ecaf43f.tar.bz2
gentoo-d1ae0cebfb7b3008963cbc3acbe0646e7ecaf43f.zip
toolchain.eclass: ignore GCC version mismatch for live ebuilds
We want to have live ebuilds use e.g. 14.0.9999. not 14.0.1.9999 which is inconsistent and requires a rename/adjustment to package.accept_keywords files when going from stage3->stage4 (.0 -> .1). We can do this now because we use --with-major-version-only nowadays, so SLOT matches the installed path of just '14'. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r--eclass/toolchain.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 4cf76229cf88..6a4b59972fa3 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -580,7 +580,7 @@ toolchain_src_prepare() {
setup_multilib_osdirnames
local actual_version=$(< "${S}"/gcc/BASE-VER)
- if [[ "${GCC_RELEASE_VER}" != "${actual_version}" ]] ; then
+ if ! tc_is_live && [[ "${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