commit:     316d250ee4d7bf08015da05b04e56264735cb178
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 24 01:42:05 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Dec 24 01:44:30 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=316d250e

sys-devel/gcc: add 11.3.1_p20221223

As remarked on IRC, this + the last GCC 10 snapshot + GCC 12 tomorrow are likely
the last ones to be keyworded for a little while, as we want the make 4.4 fixes,
with the exception of 12 which might get another one kewyorded beyond this 
weekend
if there's a fix for the PPC + LLVM issues.

Bug: https://bugs.gentoo.org/884633
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-devel/gcc/Manifest                    |  1 +
 sys-devel/gcc/gcc-11.3.1_p20221223.ebuild | 52 +++++++++++++++++++++++++++++++
 2 files changed, 53 insertions(+)

diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest
index b9d9b80f5c20..458863418e4d 100644
--- a/sys-devel/gcc/Manifest
+++ b/sys-devel/gcc/Manifest
@@ -9,6 +9,7 @@ DIST gcc-10.5.0-patches-1.tar.xz 17180 BLAKE2B 
d8ecc7cc15fa1ab420fa9eff11173a1d5
 DIST gcc-10.5.0-patches-3.tar.xz 17292 BLAKE2B 
403b3955756c060fa00cdc55c29cdad58cf0ce449af7a75aabf4ddecc9043cffe5f1d6fe77bec00a59de2040e207fabb390f9c603748926821d189be53f4000d
 SHA512 
f5a192f42222d02ab765e8b284dfbd999e69db8a7d6a2e5f1f378a16ba3f0b26f35bbad3b3a9e6e9e30c6734b76d8b69d80b802593cbe4d671f14cc16db30c8e
 DIST gcc-11-20221209.tar.xz 76240768 BLAKE2B 
3be0f1ece4473bbbf10f7242102f330a6e246c8481da5bd32620dcb15d2acd008bad60d2576a301f03e444e3d93a3c72d5184740c6fb3de2bc05e1863b68a0bc
 SHA512 
33d9581d434c012526eb4d49a4453cf77c57b459fd43f84e49bc764745e0772939eac007e119269f4f1989755df8678613732a84474c691b0c2452237c5b38a3
 DIST gcc-11-20221216.tar.xz 76229680 BLAKE2B 
413c4c0ac26161fe0cf65920c073622f4ba1697c4808c602c15e15245c8384e0f041d5870c3072fafe019bb521793565b0a7ff0d5b3cb6f75e7aefd0f4e5a733
 SHA512 
91d692e37d12edc9f626b09472b3eaf34a3462da4f841bf83d81ec79c668d76c2ba3f2f0db7ab2b109f0cf2bf1aea9e4b0fc707452b4d816fdf3d68966882058
+DIST gcc-11-20221223.tar.xz 76237128 BLAKE2B 
4d50d3a296bae501dd4287ca7c877304a60b1a6d444b96598ff2e018f4cf540896c675c11a99cc127acfbe7e3af38d603f6b80b7049d9e525420eaee7c0f81e4
 SHA512 
efbb26ce3b8a5ffcc36ad84f797b638c1d8d0a1fe61e3d9bd984c0dbce0a887d1384f8644d71f4b25b22ae2c67fedcbc4282780a2b834a47a318ed558fd9e0ed
 DIST gcc-11.3.0-musl-patches-1.tar.xz 3856 BLAKE2B 
f511f8b4c0696771d906beee9645b5d009ea4b673602baa1ca562d6f23c5b0caf2012aae93578671624617c4286e3937d79a7383d6a03bb438c5b774a06fe8e6
 SHA512 
cd375ff2affb213475acaabf02989b1f05d719d972970ea0304d20a816986807390893d1401826f3b497787642f35d90a244195f8e466db41e8d768366057334
 DIST gcc-11.3.0-patches-7.tar.xz 15184 BLAKE2B 
426f00feaa982a35d2c459e7a2c2e9d29b4b467ac3625ebd72bb31077c75bbf0c028137df03921c52ddc97a14d92c49777bd3f27b47a7b47d8a05e2d106b6bdb
 SHA512 
bec8bf26b3e50633a5a2e0bb75ffeaba86becb704c14365ff3342e8d651ab75bb3ceec7808d88a25989b8c7182398184b95b6d1267aaef9aa828f687e4895e9d
 DIST gcc-11.3.0.tar.xz 81141364 BLAKE2B 
7e562d25446ca4ab9fe8cdb714866f66aba3744d78bf84f31bfb097c1a981e4c7f990cb1e6bcfec5ae6671836a4984e2b70eb8fed81dcef5e244f88da8623469
 SHA512 
f0be5ad705c73b84477128a69c047f57dd47002f375eb60e1e842e08cf2009a509e92152bca345823926d550b7395ae6d4de7db51d1ee371c2dc37313881fca7

diff --git a/sys-devel/gcc/gcc-11.3.1_p20221223.ebuild 
b/sys-devel/gcc/gcc-11.3.1_p20221223.ebuild
new file mode 100644
index 000000000000..f353c58a4ec6
--- /dev/null
+++ b/sys-devel/gcc/gcc-11.3.1_p20221223.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+TOOLCHAIN_PATCH_SUFFIX="xz"
+TOOLCHAIN_PATCH_DEV="sam"
+PATCH_VER="5"
+PATCH_GCC_VER="11.4.0"
+MUSL_VER="0"
+MUSL_GCC_VER="11.4.0"
+
+if [[ $(ver_cut 3) == 9999 ]] ; then
+       MY_PV_2=$(ver_cut 2)
+       if [[ ${MY_PV_2} == 0 ]] ; then
+               MY_PV_2=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))
+fi
+
+inherit toolchain
+# Needs to be after inherit (for now?), bug #830908
+EGIT_BRANCH=releases/gcc-$(ver_cut 1)
+
+# Don't keyword live ebuilds
+if ! tc_is_live && [[ -z ${TOOLCHAIN_USE_GIT_PATCHES} ]] ; then
+       KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86"
+fi
+
+# 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(-)?]"
+
+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