commit:     6fdc7409b82633c05aeb96ed7901a65c33ca71c7
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 21 16:12:47 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Sep 21 16:14:13 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fdc7409

sys-devel/gcc: drop old 12 versions

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-devel/gcc/Manifest                    |  6 ---
 sys-devel/gcc/gcc-12.3.1_p20230728.ebuild | 64 -------------------------------
 sys-devel/gcc/gcc-12.3.1_p20230804.ebuild | 64 -------------------------------
 sys-devel/gcc/gcc-12.3.1_p20230811.ebuild | 64 -------------------------------
 sys-devel/gcc/gcc-12.3.1_p20230818.ebuild | 64 -------------------------------
 sys-devel/gcc/gcc-12.3.1_p20230901.ebuild | 64 -------------------------------
 sys-devel/gcc/gcc-12.3.1_p20230908.ebuild | 64 -------------------------------
 7 files changed, 390 deletions(-)

diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest
index 54e98e0496cc..f517228fcfd4 100644
--- a/sys-devel/gcc/Manifest
+++ b/sys-devel/gcc/Manifest
@@ -14,13 +14,7 @@ DIST gcc-11.4.0.tar.xz 79837032 BLAKE2B 
6e3b095a5837d4b5512719f848f4b9c4b4a6d7dc
 DIST gcc-12-20230428.tar.xz 79744932 BLAKE2B 
f9d0000cdd2f1b0af79f281851b3b0fe0ac50f14468844e1ee596f8ed1ccf33f55c7617464d88df7e4b3435d58fedecf640592e0661fd1be9ba163acd26dae68
 SHA512 
992f9cd71f9910efea401048540ba2b43360170f76ce992cf356b1ab383240f481e29c5b0ad32fa4efb2bdbb397477506cb83a825268cfbdd2cde7044d43c758
 DIST gcc-12-20230526.tar.xz 79780444 BLAKE2B 
6f6eca272ab506e16a231003c399e28572595c82fbaaec9deb14b78ff9fc493fb24afe1c375d4f2fd75e9813805934857ef2ceb6c05b7977dbfe2e50abdc3ec9
 SHA512 
fb190ce5bf3d38a1899016475c1551550d44c6f71f1f1a71ced545cbb2aff0446bd2765230b0920379579a13103a507ffc1e197ac69afb0a4f08efe11b50918d
 DIST gcc-12-20230623.tar.xz 79782948 BLAKE2B 
6eeabdd1495482b8bc5a6f2f90cd7d7967b66664d277c5f755f1ee98ac2c99db1552ab13b1c69f4c47d1d0b8de584e6a5f024b45e3c5934f49179cf65ca30acc
 SHA512 
09aa0304a8a916aea7a4714eb3a7541b2015e3bdb8ae9bd40bc289553c4ec86f91b054925d2af45f33af9d20a7422949e691c0f552d68ee1d5206b4007310a88
-DIST gcc-12-20230728.tar.xz 79813460 BLAKE2B 
89db12fbdc7d75d298335fdd61b15439c161090deb94e224d13592d25fa64fd21c289f75fbe77e5c0d10f90e18019a12c343014e73ef446281ac8c471a39b937
 SHA512 
20c8bbe3918ed41b05b00cc3fa90e1ee59faf9ece876faf3e93ab01b2a79e6b83b55812e41d662ad1b9a420ca3f891f46cd70aa9f7f6bcf292dda0f57b56681e
-DIST gcc-12-20230804.tar.xz 79785996 BLAKE2B 
6af25c245bed3affa42a265e56afc59afe7001603572223226b236efb67c804697a53b8f31ad68a5ddcaee1533212de87725bbad4acbb67a75e9b007e69fc071
 SHA512 
44b0c202f913913c586313a0f76bd721566e4519824a18b5569339e3996d556c866e7b980c341aa1d433f56fc8f18d2a11fc47e5bc91b693a3ecfdce37b9082b
-DIST gcc-12-20230811.tar.xz 79789344 BLAKE2B 
eac77a22bf93524e60320db7aeb7ecbfceb0f2e84596ed81b0e8f8ea985fbf412a88c42bf2d58f1aa42698e4cf2037d24fa5457ba4a7d18a5c14fde509b56399
 SHA512 
e9de50607ae2f8b1800346c1e7f85a042f363c5da00497fc7355d3e89f2e2196df8e04ee1514153cae4bbcc8c8dba187558f062a30ff977f7725576b624f5e42
-DIST gcc-12-20230818.tar.xz 79797008 BLAKE2B 
f838f69b699d74fedc2e9b038211bd0089d0ff38811ccbc45911dc2ef21452481216329b5398275ea36b1fc54052086daf5c7a86a7cdb53a14784b90d56c0dc7
 SHA512 
7a86639efb41fd2c9092729e9ebcdbb49d12bffb1ed6052b595892d2c3fab78955dda4d4fdbb89b4fb4ab2f827f458eb97ab01d76995267f2d7f1ee8cb6a0aad
 DIST gcc-12-20230825.tar.xz 79804260 BLAKE2B 
4d3eb40eb5954d497b3e9586dad0d18c9e561d3fdd0bdccc5c9572edfbe024a235e30371a10116d98c77f0b6042739600c57ac99253d34f0fbb8b8465b187e1f
 SHA512 
a6cd868f474c356886460b95263807828f9a379ce97524611ec504d6a9149ca1f92585128e6ffd03fa2647442e72fde6ebe987fd49f2fc49d8df39ab056905c5
-DIST gcc-12-20230901.tar.xz 79798068 BLAKE2B 
2ed8b52dda448398e0c5954251f854c4051235c3c2364bdee1910ee513986f5b43cd776896b6a45f3479d7aef494aa0a956cee22338e004a7c0b8aa0d317ef99
 SHA512 
741e823916a025fe79779f40fb26518314eda45d004add8c6eaee7a6f32a25ac1afcfa1137d3cbec645a72cac83a759865dc37dee33d8fad2c742d6ce658fb8a
-DIST gcc-12-20230908.tar.xz 79788640 BLAKE2B 
1ade0324dc16fba5ae410277d0af7ddfd1dc4bcce9bd6d887e955b9069cae986ffece4916313399d5439663ffb40b71aad236b8021b06cb2e777fa13f912f18f
 SHA512 
f31e40d9c3683a6e35b6b0c5b40a8d12a14c964609244415ed4776179c3139a2aead3dde7df3c5e20691360656b98387acefb41c445c840fe3cb27ee05fa28df
 DIST gcc-12-20230915.tar.xz 79794800 BLAKE2B 
9aa506c61de626c19466ac05cc77172a4a8b2c5b839e68597a14f92fd977c73c63a3833f0a7a4f5da57e31f4c36ec38cb2be1356178dd3bc749093cba5573db7
 SHA512 
cf26b4bf5cf5dbee3e71c72df056cd81e9c3b79948390c90e6d64916f650998426b41e2c04ffc539f49dd9275b0913a07cd2255e08997397152656cbb5bea03c
 DIST gcc-12.3.0-musl-patches-1.tar.xz 3572 BLAKE2B 
c7bf65f7c9ea8023ddaac821ee2b778622fa310ac72a72b2f7032494a8f304eac86217f9204622e6c21aaef9952bece0d09bc126facd4f42b602927909815ab5
 SHA512 
babc279fea2c1fd4c018815f2f5630214fd46015ce9f365c28af242681d51818eaca30ce298eddcab1eed5ac5f2759e2b47b2335afab9d722b4469a6d4fec326
 DIST gcc-12.3.0-patches-2.tar.xz 14236 BLAKE2B 
06c43662c9abb0fa3cf90d5e2273c69aecb9158e6cf6f23c04754ed5d686be2616e81e2502eb16f4298ddd50518ca7677e13249da9e9b091162d3931ff65e4fe
 SHA512 
b0d4b85dbf1a54aaaa1997203b872e3106906b4ad49cde57e1428bc22b2f8e2d73b8cb10ae0d0b792aebaf664594da4d1dea04c44ddc34e59047410766db04d1

diff --git a/sys-devel/gcc/gcc-12.3.1_p20230728.ebuild 
b/sys-devel/gcc/gcc-12.3.1_p20230728.ebuild
deleted file mode 100644
index 1ffe2b97a4bf..000000000000
--- a/sys-devel/gcc/gcc-12.3.1_p20230728.ebuild
+++ /dev/null
@@ -1,64 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-TOOLCHAIN_PATCH_DEV="sam"
-PATCH_GCC_VER="12.3.0"
-PATCH_VER="2"
-MUSL_VER="1"
-MUSL_GCC_VER="12.3.0"
-
-if [[ ${PV} == *.9999 ]] ; then
-       MY_PV_2=$(ver_cut 2)
-       MY_PV_3=1
-       if [[ ${MY_PV_2} == 0 ]] ; then
-               MY_PV_2=0
-               MY_PV_3=0
-       else
-               MY_PV_2=$((${MY_PV_2} - 1))
-       fi
-
-       # e.g. 12.2.9999 -> 12.1.1
-       TOOLCHAIN_GCC_PV=$(ver_cut 1).${MY_PV_2}.${MY_PV_3}
-elif [[ -n ${TOOLCHAIN_GCC_RC} ]] ; then
-       # Cheesy hack for RCs
-       MY_PV=$(ver_cut 1).$((($(ver_cut 2) + 1))).$((($(ver_cut 3) - 
1)))-RC-$(ver_cut 5)
-       MY_P=${PN}-${MY_PV}
-       GCC_TARBALL_SRC_URI="mirror://gcc/snapshots/${MY_PV}/${MY_P}.tar.xz"
-       TOOLCHAIN_SET_S=no
-       S="${WORKDIR}"/${MY_P}
-fi
-
-inherit toolchain
-
-if tc_is_live ; then
-       # Needs to be after inherit (for now?), bug #830908
-       EGIT_BRANCH=releases/gcc-$(ver_cut 1)
-elif [[ -z ${TOOLCHAIN_USE_GIT_PATCHES} ]] ; then
-       # Don't keyword live ebuilds
-       #KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc 
~ppc64 ~riscv ~s390 ~sparc ~x86"
-       :;
-fi
-
-if [[ ${CATEGORY} != cross-* ]] ; then
-       # Technically only if USE=hardened *too* right now, but no point in 
complicating it further.
-       # If GCC is enabling CET by default, we need glibc to be built with 
support for it.
-       # bug #830454
-       RDEPEND="elibc_glibc? ( sys-libs/glibc[cet(-)?] )"
-       DEPEND="${RDEPEND}"
-       BDEPEND=">=${CATEGORY}/binutils-2.30[cet(-)?]"
-fi
-
-src_prepare() {
-       local p upstreamed_patches=(
-               # add them here
-       )
-       for p in "${upstreamed_patches[@]}"; do
-               rm -v "${WORKDIR}/patch/${p}" || die
-       done
-
-       toolchain_src_prepare
-
-       eapply_user
-}

diff --git a/sys-devel/gcc/gcc-12.3.1_p20230804.ebuild 
b/sys-devel/gcc/gcc-12.3.1_p20230804.ebuild
deleted file mode 100644
index 1ffe2b97a4bf..000000000000
--- a/sys-devel/gcc/gcc-12.3.1_p20230804.ebuild
+++ /dev/null
@@ -1,64 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-TOOLCHAIN_PATCH_DEV="sam"
-PATCH_GCC_VER="12.3.0"
-PATCH_VER="2"
-MUSL_VER="1"
-MUSL_GCC_VER="12.3.0"
-
-if [[ ${PV} == *.9999 ]] ; then
-       MY_PV_2=$(ver_cut 2)
-       MY_PV_3=1
-       if [[ ${MY_PV_2} == 0 ]] ; then
-               MY_PV_2=0
-               MY_PV_3=0
-       else
-               MY_PV_2=$((${MY_PV_2} - 1))
-       fi
-
-       # e.g. 12.2.9999 -> 12.1.1
-       TOOLCHAIN_GCC_PV=$(ver_cut 1).${MY_PV_2}.${MY_PV_3}
-elif [[ -n ${TOOLCHAIN_GCC_RC} ]] ; then
-       # Cheesy hack for RCs
-       MY_PV=$(ver_cut 1).$((($(ver_cut 2) + 1))).$((($(ver_cut 3) - 
1)))-RC-$(ver_cut 5)
-       MY_P=${PN}-${MY_PV}
-       GCC_TARBALL_SRC_URI="mirror://gcc/snapshots/${MY_PV}/${MY_P}.tar.xz"
-       TOOLCHAIN_SET_S=no
-       S="${WORKDIR}"/${MY_P}
-fi
-
-inherit toolchain
-
-if tc_is_live ; then
-       # Needs to be after inherit (for now?), bug #830908
-       EGIT_BRANCH=releases/gcc-$(ver_cut 1)
-elif [[ -z ${TOOLCHAIN_USE_GIT_PATCHES} ]] ; then
-       # Don't keyword live ebuilds
-       #KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc 
~ppc64 ~riscv ~s390 ~sparc ~x86"
-       :;
-fi
-
-if [[ ${CATEGORY} != cross-* ]] ; then
-       # Technically only if USE=hardened *too* right now, but no point in 
complicating it further.
-       # If GCC is enabling CET by default, we need glibc to be built with 
support for it.
-       # bug #830454
-       RDEPEND="elibc_glibc? ( sys-libs/glibc[cet(-)?] )"
-       DEPEND="${RDEPEND}"
-       BDEPEND=">=${CATEGORY}/binutils-2.30[cet(-)?]"
-fi
-
-src_prepare() {
-       local p upstreamed_patches=(
-               # add them here
-       )
-       for p in "${upstreamed_patches[@]}"; do
-               rm -v "${WORKDIR}/patch/${p}" || die
-       done
-
-       toolchain_src_prepare
-
-       eapply_user
-}

diff --git a/sys-devel/gcc/gcc-12.3.1_p20230811.ebuild 
b/sys-devel/gcc/gcc-12.3.1_p20230811.ebuild
deleted file mode 100644
index 1ffe2b97a4bf..000000000000
--- a/sys-devel/gcc/gcc-12.3.1_p20230811.ebuild
+++ /dev/null
@@ -1,64 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-TOOLCHAIN_PATCH_DEV="sam"
-PATCH_GCC_VER="12.3.0"
-PATCH_VER="2"
-MUSL_VER="1"
-MUSL_GCC_VER="12.3.0"
-
-if [[ ${PV} == *.9999 ]] ; then
-       MY_PV_2=$(ver_cut 2)
-       MY_PV_3=1
-       if [[ ${MY_PV_2} == 0 ]] ; then
-               MY_PV_2=0
-               MY_PV_3=0
-       else
-               MY_PV_2=$((${MY_PV_2} - 1))
-       fi
-
-       # e.g. 12.2.9999 -> 12.1.1
-       TOOLCHAIN_GCC_PV=$(ver_cut 1).${MY_PV_2}.${MY_PV_3}
-elif [[ -n ${TOOLCHAIN_GCC_RC} ]] ; then
-       # Cheesy hack for RCs
-       MY_PV=$(ver_cut 1).$((($(ver_cut 2) + 1))).$((($(ver_cut 3) - 
1)))-RC-$(ver_cut 5)
-       MY_P=${PN}-${MY_PV}
-       GCC_TARBALL_SRC_URI="mirror://gcc/snapshots/${MY_PV}/${MY_P}.tar.xz"
-       TOOLCHAIN_SET_S=no
-       S="${WORKDIR}"/${MY_P}
-fi
-
-inherit toolchain
-
-if tc_is_live ; then
-       # Needs to be after inherit (for now?), bug #830908
-       EGIT_BRANCH=releases/gcc-$(ver_cut 1)
-elif [[ -z ${TOOLCHAIN_USE_GIT_PATCHES} ]] ; then
-       # Don't keyword live ebuilds
-       #KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc 
~ppc64 ~riscv ~s390 ~sparc ~x86"
-       :;
-fi
-
-if [[ ${CATEGORY} != cross-* ]] ; then
-       # Technically only if USE=hardened *too* right now, but no point in 
complicating it further.
-       # If GCC is enabling CET by default, we need glibc to be built with 
support for it.
-       # bug #830454
-       RDEPEND="elibc_glibc? ( sys-libs/glibc[cet(-)?] )"
-       DEPEND="${RDEPEND}"
-       BDEPEND=">=${CATEGORY}/binutils-2.30[cet(-)?]"
-fi
-
-src_prepare() {
-       local p upstreamed_patches=(
-               # add them here
-       )
-       for p in "${upstreamed_patches[@]}"; do
-               rm -v "${WORKDIR}/patch/${p}" || die
-       done
-
-       toolchain_src_prepare
-
-       eapply_user
-}

diff --git a/sys-devel/gcc/gcc-12.3.1_p20230818.ebuild 
b/sys-devel/gcc/gcc-12.3.1_p20230818.ebuild
deleted file mode 100644
index 1ffe2b97a4bf..000000000000
--- a/sys-devel/gcc/gcc-12.3.1_p20230818.ebuild
+++ /dev/null
@@ -1,64 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-TOOLCHAIN_PATCH_DEV="sam"
-PATCH_GCC_VER="12.3.0"
-PATCH_VER="2"
-MUSL_VER="1"
-MUSL_GCC_VER="12.3.0"
-
-if [[ ${PV} == *.9999 ]] ; then
-       MY_PV_2=$(ver_cut 2)
-       MY_PV_3=1
-       if [[ ${MY_PV_2} == 0 ]] ; then
-               MY_PV_2=0
-               MY_PV_3=0
-       else
-               MY_PV_2=$((${MY_PV_2} - 1))
-       fi
-
-       # e.g. 12.2.9999 -> 12.1.1
-       TOOLCHAIN_GCC_PV=$(ver_cut 1).${MY_PV_2}.${MY_PV_3}
-elif [[ -n ${TOOLCHAIN_GCC_RC} ]] ; then
-       # Cheesy hack for RCs
-       MY_PV=$(ver_cut 1).$((($(ver_cut 2) + 1))).$((($(ver_cut 3) - 
1)))-RC-$(ver_cut 5)
-       MY_P=${PN}-${MY_PV}
-       GCC_TARBALL_SRC_URI="mirror://gcc/snapshots/${MY_PV}/${MY_P}.tar.xz"
-       TOOLCHAIN_SET_S=no
-       S="${WORKDIR}"/${MY_P}
-fi
-
-inherit toolchain
-
-if tc_is_live ; then
-       # Needs to be after inherit (for now?), bug #830908
-       EGIT_BRANCH=releases/gcc-$(ver_cut 1)
-elif [[ -z ${TOOLCHAIN_USE_GIT_PATCHES} ]] ; then
-       # Don't keyword live ebuilds
-       #KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc 
~ppc64 ~riscv ~s390 ~sparc ~x86"
-       :;
-fi
-
-if [[ ${CATEGORY} != cross-* ]] ; then
-       # Technically only if USE=hardened *too* right now, but no point in 
complicating it further.
-       # If GCC is enabling CET by default, we need glibc to be built with 
support for it.
-       # bug #830454
-       RDEPEND="elibc_glibc? ( sys-libs/glibc[cet(-)?] )"
-       DEPEND="${RDEPEND}"
-       BDEPEND=">=${CATEGORY}/binutils-2.30[cet(-)?]"
-fi
-
-src_prepare() {
-       local p upstreamed_patches=(
-               # add them here
-       )
-       for p in "${upstreamed_patches[@]}"; do
-               rm -v "${WORKDIR}/patch/${p}" || die
-       done
-
-       toolchain_src_prepare
-
-       eapply_user
-}

diff --git a/sys-devel/gcc/gcc-12.3.1_p20230901.ebuild 
b/sys-devel/gcc/gcc-12.3.1_p20230901.ebuild
deleted file mode 100644
index 1ffe2b97a4bf..000000000000
--- a/sys-devel/gcc/gcc-12.3.1_p20230901.ebuild
+++ /dev/null
@@ -1,64 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-TOOLCHAIN_PATCH_DEV="sam"
-PATCH_GCC_VER="12.3.0"
-PATCH_VER="2"
-MUSL_VER="1"
-MUSL_GCC_VER="12.3.0"
-
-if [[ ${PV} == *.9999 ]] ; then
-       MY_PV_2=$(ver_cut 2)
-       MY_PV_3=1
-       if [[ ${MY_PV_2} == 0 ]] ; then
-               MY_PV_2=0
-               MY_PV_3=0
-       else
-               MY_PV_2=$((${MY_PV_2} - 1))
-       fi
-
-       # e.g. 12.2.9999 -> 12.1.1
-       TOOLCHAIN_GCC_PV=$(ver_cut 1).${MY_PV_2}.${MY_PV_3}
-elif [[ -n ${TOOLCHAIN_GCC_RC} ]] ; then
-       # Cheesy hack for RCs
-       MY_PV=$(ver_cut 1).$((($(ver_cut 2) + 1))).$((($(ver_cut 3) - 
1)))-RC-$(ver_cut 5)
-       MY_P=${PN}-${MY_PV}
-       GCC_TARBALL_SRC_URI="mirror://gcc/snapshots/${MY_PV}/${MY_P}.tar.xz"
-       TOOLCHAIN_SET_S=no
-       S="${WORKDIR}"/${MY_P}
-fi
-
-inherit toolchain
-
-if tc_is_live ; then
-       # Needs to be after inherit (for now?), bug #830908
-       EGIT_BRANCH=releases/gcc-$(ver_cut 1)
-elif [[ -z ${TOOLCHAIN_USE_GIT_PATCHES} ]] ; then
-       # Don't keyword live ebuilds
-       #KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc 
~ppc64 ~riscv ~s390 ~sparc ~x86"
-       :;
-fi
-
-if [[ ${CATEGORY} != cross-* ]] ; then
-       # Technically only if USE=hardened *too* right now, but no point in 
complicating it further.
-       # If GCC is enabling CET by default, we need glibc to be built with 
support for it.
-       # bug #830454
-       RDEPEND="elibc_glibc? ( sys-libs/glibc[cet(-)?] )"
-       DEPEND="${RDEPEND}"
-       BDEPEND=">=${CATEGORY}/binutils-2.30[cet(-)?]"
-fi
-
-src_prepare() {
-       local p upstreamed_patches=(
-               # add them here
-       )
-       for p in "${upstreamed_patches[@]}"; do
-               rm -v "${WORKDIR}/patch/${p}" || die
-       done
-
-       toolchain_src_prepare
-
-       eapply_user
-}

diff --git a/sys-devel/gcc/gcc-12.3.1_p20230908.ebuild 
b/sys-devel/gcc/gcc-12.3.1_p20230908.ebuild
deleted file mode 100644
index 1ffe2b97a4bf..000000000000
--- a/sys-devel/gcc/gcc-12.3.1_p20230908.ebuild
+++ /dev/null
@@ -1,64 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-TOOLCHAIN_PATCH_DEV="sam"
-PATCH_GCC_VER="12.3.0"
-PATCH_VER="2"
-MUSL_VER="1"
-MUSL_GCC_VER="12.3.0"
-
-if [[ ${PV} == *.9999 ]] ; then
-       MY_PV_2=$(ver_cut 2)
-       MY_PV_3=1
-       if [[ ${MY_PV_2} == 0 ]] ; then
-               MY_PV_2=0
-               MY_PV_3=0
-       else
-               MY_PV_2=$((${MY_PV_2} - 1))
-       fi
-
-       # e.g. 12.2.9999 -> 12.1.1
-       TOOLCHAIN_GCC_PV=$(ver_cut 1).${MY_PV_2}.${MY_PV_3}
-elif [[ -n ${TOOLCHAIN_GCC_RC} ]] ; then
-       # Cheesy hack for RCs
-       MY_PV=$(ver_cut 1).$((($(ver_cut 2) + 1))).$((($(ver_cut 3) - 
1)))-RC-$(ver_cut 5)
-       MY_P=${PN}-${MY_PV}
-       GCC_TARBALL_SRC_URI="mirror://gcc/snapshots/${MY_PV}/${MY_P}.tar.xz"
-       TOOLCHAIN_SET_S=no
-       S="${WORKDIR}"/${MY_P}
-fi
-
-inherit toolchain
-
-if tc_is_live ; then
-       # Needs to be after inherit (for now?), bug #830908
-       EGIT_BRANCH=releases/gcc-$(ver_cut 1)
-elif [[ -z ${TOOLCHAIN_USE_GIT_PATCHES} ]] ; then
-       # Don't keyword live ebuilds
-       #KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc 
~ppc64 ~riscv ~s390 ~sparc ~x86"
-       :;
-fi
-
-if [[ ${CATEGORY} != cross-* ]] ; then
-       # Technically only if USE=hardened *too* right now, but no point in 
complicating it further.
-       # If GCC is enabling CET by default, we need glibc to be built with 
support for it.
-       # bug #830454
-       RDEPEND="elibc_glibc? ( sys-libs/glibc[cet(-)?] )"
-       DEPEND="${RDEPEND}"
-       BDEPEND=">=${CATEGORY}/binutils-2.30[cet(-)?]"
-fi
-
-src_prepare() {
-       local p upstreamed_patches=(
-               # add them here
-       )
-       for p in "${upstreamed_patches[@]}"; do
-               rm -v "${WORKDIR}/patch/${p}" || die
-       done
-
-       toolchain_src_prepare
-
-       eapply_user
-}

Reply via email to