summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-05-25 01:19:40 +0100
committerSam James <sam@gentoo.org>2022-05-25 01:19:50 +0100
commit53b514a5ab5b3b23240f9ad5790a76209c29f55a (patch)
tree840025f86ec7d1a8bd689d7a961017349fda9d72
parentsys-libs/glibc: add 2.35-r6 with loong patchset version 20220522 (diff)
downloadgentoo-53b514a5ab5b3b23240f9ad5790a76209c29f55a.tar.gz
gentoo-53b514a5ab5b3b23240f9ad5790a76209c29f55a.tar.bz2
gentoo-53b514a5ab5b3b23240f9ad5790a76209c29f55a.zip
sys-devel/gcc: fix TOOLCHAIN_GCC_PV in 13.0.9999
Closes: https://bugs.gentoo.org/847226 Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--sys-devel/gcc/gcc-13.0.9999.ebuild4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys-devel/gcc/gcc-13.0.9999.ebuild b/sys-devel/gcc/gcc-13.0.9999.ebuild
index 39b0e5637249..a9ec2dbc272b 100644
--- a/sys-devel/gcc/gcc-13.0.9999.ebuild
+++ b/sys-devel/gcc/gcc-13.0.9999.ebuild
@@ -10,14 +10,16 @@ MUSL_GCC_VER="12.0.0"
if [[ $(ver_cut 3) == 9999 ]] ; then
MY_PV_2=$(ver_cut 2)
+ MY_PV_3=$(($(ver_cut 3) - 9998))
if [[ ${MY_PV_2} == 0 ]] ; then
MY_PV_2=0
+ MY_PV_3=0
else
MY_PV_2=$(($(ver_cut 2) - 1))
fi
# e.g. 12.2.9999 -> 12.1.1
- TOOLCHAIN_GCC_PV=$(ver_cut 1).${MY_PV_2}.$(($(ver_cut 3) - 9998))
+ TOOLCHAIN_GCC_PV=$(ver_cut 1).${MY_PV_2}.${MY_PV_3}
fi
inherit toolchain