summaryrefslogtreecommitdiff
path: root/sys-devel/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'sys-devel/gcc')
-rw-r--r--sys-devel/gcc/Manifest2
-rw-r--r--sys-devel/gcc/gcc-12.2.1_p20230318.ebuild52
2 files changed, 54 insertions, 0 deletions
diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest
index 81f199570804..5716d5bb73bc 100644
--- a/sys-devel/gcc/Manifest
+++ b/sys-devel/gcc/Manifest
@@ -22,6 +22,7 @@ DIST gcc-11.4.0-patches-8.tar.xz 13788 BLAKE2B a1406d5dcd906ed51ef06bb6571c216d8
DIST gcc-12-20230121.tar.xz 79652428 BLAKE2B f4f0e6474d179454dc56dd05c823fca919a894e9efdc64625bb13045c7bd549a7bab59dfb4052d45d594d4484801ab5b18cf3f3d6277be54eaec24a53abd439c SHA512 b6c2486916418a64fab64c3655329bc18ca93ee4eca240e8779bd6d8280124fcd07b1aa8eff979fd317656646ecdba9353107887338354d8bd2c1f68c1609349
DIST gcc-12-20230304.tar.xz 79683276 BLAKE2B e02622f1193ba17dd1041eae0c2f594b26806b00cfb269e683cc356d6d405ae8a49e60823ed6f814d2aac820ef01d9004f68d628a853be139fa6a70e8601ba2a SHA512 0c23a8845c8f202b0c0e4aceb3104bf76c0aca9171ba65d292057703d160fc4ce0b0d7c8876cf1bb30f998c4a5a0a8f3c4165dd4d8d316019cff0dc19aa62182
DIST gcc-12-20230311.tar.xz 79694468 BLAKE2B 7c775bf81e43d431dd03b17b995ee6b7d54c8c8f2eb2962498dcb741b4a661d1c02b48cf3cc17f9074a58a8a299977e1caecb1ba34200759b00a18e36e156fe3 SHA512 e016537c8a06311ccfec5760417f9daa4c4e55b32fc28f32dd0ec7429f53ed753a84a788da304b12f9c7443ec693ad881536cfa875829d201d803138fde59c16
+DIST gcc-12-20230318.tar.xz 79703428 BLAKE2B ec1a4c1e8de27f8762ef91f553a2f8045f26a38c1beb49be4a39c86a11b894b609548f3f6f47b6bf2de9a357995a1f72c3667dba4892189eedee01c9e3c160ed SHA512 7ba9acab02a42090fde3e903bb579d20bd1ba6ae0403fa344e25db74e4a81dfe5a81a98971869baaf0d70c089f313bf789287f037294f813429480634afea8f6
DIST gcc-12.2.0-musl-patches-7.tar.xz 3652 BLAKE2B 295ea907efea854a3c2447d472bedb24714d78b7b725476b1eac3898d89c0c549da8e69db28911205bb3293f62cf344a90ade0898ecf5fed57ff00fcf8547a9f SHA512 7a7a440bc08de8dcb37c080ea0c27904adaaadaaaafaab24d90becd2d009243dcfc886d8f674ce3ccddb4ebb5ad17f04d841064d9ec2e2e2e96a1afac3002111
DIST gcc-12.2.0-patches-1.tar.xz 12864 BLAKE2B a5ae0a85dfc1b6f0bd968f0d5262ebed14ec9cdb3249e3a4c571578c54eda0e53708ee7fe8e03e506366c7f3cf7926eced9b390d9dee948c1249298c0fabd9fb SHA512 f3d793b89a2a0385d596162fb0c653d4acdf21ae418cb792c1786a01fde0391bd0719715dbf07d53636f127168f5cd99108a1dc11cf6cea889b7d82385bcc258
DIST gcc-12.2.0-patches-10.tar.xz 14252 BLAKE2B 99368db982227728a6a9e2b1f694999f041f38db4a3806b6a740c86218735f9b561197bc150423a3caad0b5fd335c95d1aca130a519754423cd44a083e655373 SHA512 f7f0d8185e908926046f579793dba5916dc27392b85bfe50a7e70c213c3ba29479dfdb1b27514765b76bc897c4dbb530680e59c4deca7a245a808ed566120e4c
@@ -54,6 +55,7 @@ EBUILD gcc-12.2.0.ebuild 1434 BLAKE2B 6d074d9c9e2bc3ea20812064a12dbfe53a597e841f
EBUILD gcc-12.2.1_p20230121-r1.ebuild 1428 BLAKE2B d56ab522d3310613451860fe16e8358af342f43b42636f6b887307863960302b162c9a4661301f05f3a047641adbe39b16bcfbca9531daab9d8e7e0fc7de27a4 SHA512 b3435ccb29888230712c63c506eed39bd5dbc32ec832a36b9c31c25fd59f2f1faccefe179fc960ec47e41c252e13a3d11cca540dea2d89d986c36ac041b0ab5a
EBUILD gcc-12.2.1_p20230304.ebuild 1435 BLAKE2B 463c67567e8f2b1a480036dc5e0507418470f47898134cc2d45b88cf508d0953c0df5355651e4a52c8b312a3ae1951fa185a12c700d9c77e8e017db9e42e1955 SHA512 9d53d088c9f04dbf54d1c7652e9f0282ee7d0cf54b9a710fd1ce471b15963851fb729bca61d73ac735af0d9e83e38b3811609a21f4af3a7e8c30f116cb07c90f
EBUILD gcc-12.2.1_p20230311-r1.ebuild 1438 BLAKE2B c6ded0f0fb07a0f6498edeae751caeb11bab8cfdd842944c117a1fb8bfb5f6d6f98947ecbf9dbf7f797c8630516cd32e1c55f8be72e6e3b71a9456a4d0e0eaec SHA512 6fb6a42195d04dd46b7d6a5a3e3180d907394f662310506a7b31e589095dea29af832c0f084324434b822ee0368ad6790270db3ccec775338c14ebef647fcf19
+EBUILD gcc-12.2.1_p20230318.ebuild 1438 BLAKE2B c6ded0f0fb07a0f6498edeae751caeb11bab8cfdd842944c117a1fb8bfb5f6d6f98947ecbf9dbf7f797c8630516cd32e1c55f8be72e6e3b71a9456a4d0e0eaec SHA512 6fb6a42195d04dd46b7d6a5a3e3180d907394f662310506a7b31e589095dea29af832c0f084324434b822ee0368ad6790270db3ccec775338c14ebef647fcf19
EBUILD gcc-12.3.9999.ebuild 1545 BLAKE2B 78fdc4a7b20d22bba137cba00e49d2249c5616bf1c4cf619162da1d98c750fb3da71fbb1cd4e136624cc4e0a112547e6c4c29992aa58ab12507917c7d728831a SHA512 f3562696a79035e64b8e79cee720fe24c7041bf922d79e5cff1ae864a533997995465d0871bfc4f87f6d5a66e7f8ac02c490792554a0628ae30d96a061ef9279
EBUILD gcc-13.0.1.9999.ebuild 1252 BLAKE2B e8feaecedb676e0ddce69ec0e7fc5e944d8df870ba897a2e495781a0a860c972b013667ffc3b83a2e4da97cd1e8ce69b93fb3d212d5cd9af2fc8e5e3d799f3d1 SHA512 ba91dd930efdbd01f57a95f70e5e9e12fa9e7e1254d574239ecdf0b54d20515ede1df6dffa9772ef590c128fe852e378ae7e2c56d2f8f88db344675b7cc7ab45
EBUILD gcc-13.0.1_pre20230226.ebuild 1299 BLAKE2B 636e7cbe0eb844ad4cd92b20a4e1e7747d4dc05e90aa043a410077c99593cb92cb8d0c6d226cfb3819223954d1ea9344fb50e385142daa790c26ead4de4c1628 SHA512 d1cbd97fe9362c44aa81679a4267bde19030dcea0e0303063c998f8b6e7d7ff4eec3538313dbcb4c4636ce5a577f563f7a2c67141caa02b89d07b17dbce0324a
diff --git a/sys-devel/gcc/gcc-12.2.1_p20230318.ebuild b/sys-devel/gcc/gcc-12.2.1_p20230318.ebuild
new file mode 100644
index 000000000000..cb82e2228437
--- /dev/null
+++ b/sys-devel/gcc/gcc-12.2.1_p20230318.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+TOOLCHAIN_PATCH_DEV="sam"
+PATCH_VER="14"
+PATCH_GCC_VER="12.2.0"
+MUSL_VER="7"
+MUSL_GCC_VER="12.2.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))
+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="https://gcc.gnu.org/pub/gcc/snapshots/${MY_PV}/${MY_P}.tar.xz"
+ TOOLCHAIN_SET_S=no
+ S="${WORKDIR}"/${MY_P}
+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 ~loong ~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() {
+ toolchain_src_prepare
+
+ eapply_user
+}