commit:     e5ac22374a2f1d4d049857cc1271ba9f82567e9f
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri May 16 05:53:05 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri May 16 05:53:31 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5ac2237

sys-devel/gcc: add 14.2.1_p20250515 (RC1)

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

 sys-devel/gcc/Manifest                    |  1 +
 sys-devel/gcc/gcc-14.2.1_p20250515.ebuild | 58 +++++++++++++++++++++++++++++++
 2 files changed, 59 insertions(+)

diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest
index 9f8aa69c2f88..2c2300080d75 100644
--- a/sys-devel/gcc/Manifest
+++ b/sys-devel/gcc/Manifest
@@ -37,6 +37,7 @@ DIST gcc-14-20250509.tar.xz 88289160 BLAKE2B 
59188064dad7f3e7fd8483896738a78857b
 DIST gcc-14.1.0-musl-patches-1.tar.xz 3600 BLAKE2B 
4cd920b7ca1f122cae806707564d8e45bfd48e78c88788a12a301f6068b5a5f335d8885e67479ac536c66aeaa81f2ecb7240ae56e9fc821a7246ab66b453711f
 SHA512 
61c48d90a55dfc2129d96aee69d939d6a89f6407f69f7bd12c1a619f28989f471fd219d731958f8e62b0fd650c32300f0ad8dc06d5df23d9fc8c1a77fe210c25
 DIST gcc-14.2.0-patches-7.tar.xz 14244 BLAKE2B 
11236e91e1fe83fec8ffaa40ec0cdd4b52a00a951e9aa9a7a0a932b234b8f1a9603333a7ccf55859f4ef53dd4d8ad1fd5c1d2514b6e45fce5b86bb58622a0ecc
 SHA512 
5a4d86d943e31fa068b5a784c0132bd83c23243dcb3cf972557a42e004469a415e1b3185f31b1bb36f916594d475f266a2fda031a414e4a15e0bbfe471269eee
 DIST gcc-14.2.0-patches-8.tar.xz 14540 BLAKE2B 
09f66035343d4cab694b8ab382170f8e2d546ddffedf3477f26edbd6a798ddf94294f569c2661729d40088d590bc17a4eb651710d8d9f66f33703734a1a82b67
 SHA512 
7a9a2724ef8db3c57b033d90751192969c16e5eaa8f4777b7f16470222ff3a18771b461bd89feaad701e7f0d573b883b487981588129933c732fb76117728b86
+DIST gcc-14.3.0-RC-20250515.tar.xz 95343884 BLAKE2B 
81b1b6556d32e85d75d7a5bbe5a5b106fd103dc59a621ea7144f2f8a8a58c9b6878f44e204e8d9885603e32da3f048c822cbc2287f6402847072c271c58fad97
 SHA512 
3065696e5b521374a88dcb9c1910c3083dea73dd8afbe0b662fa4e70c27aa06734bd3ad2522ddfad322cacdb63349f8ddb109c16e98adb9ea58a7095a84ff598
 DIST gcc-15-20250426.tar.xz 92081764 BLAKE2B 
1aded22dbac3458140744c85409da569c3fb8db0b0798a1a7bdea2d9d77b0375f68a240721bda5c8e97e363c3e06e63489ced6987dd6a517b7c4f185e0468f86
 SHA512 
2278176ed9b7a19e81dc7a174d587523ae01d5a2e49710ac36381b30463c84ed3184c1f1e9c96116e9387b9ff58bc7d389b8dfda7b755c4a0d8470c14f1872c5
 DIST gcc-15-20250503.tar.xz 92076804 BLAKE2B 
9c32f2c354df41ae0d340d15aacfe0724f1e75666b3c31a98b2bfc68e0446cb4b38f38b08580fd6dd3ac109544710649d735846c742ebc950c6843e1805907c2
 SHA512 
30d10cde478800d44fae444ed1cd45b566f449143bc50df95a1a8c8cd80bab0d0cb09255e50fd134bb128c4b49f60a37a21c34924cd1b1143f8f7a4a4709bf31
 DIST gcc-15-20250510.tar.xz 92092512 BLAKE2B 
c264dd81bb7560d02a0779ae6a6a303f55fc0bc041b021d9ce87628bd99681a3084d457b9134cb1e744189696f8bd9da5efc9b7c64e80ef38cc5caeee227c38a
 SHA512 
7d1e8cc5d60904ddffcaea94086d916d641ad1b94dc452879b120023a0be0a58df96394f460006daffdaf2ecb48748fa7ea21239973e78281885b29961e01d6b

diff --git a/sys-devel/gcc/gcc-14.2.1_p20250515.ebuild 
b/sys-devel/gcc/gcc-14.2.1_p20250515.ebuild
new file mode 100644
index 000000000000..46b798c08303
--- /dev/null
+++ b/sys-devel/gcc/gcc-14.2.1_p20250515.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# Maintenance notes and explanations of GCC handling are on the wiki:
+# https://wiki.gentoo.org/wiki/Project:Toolchain/sys-devel/gcc
+
+TOOLCHAIN_PATCH_DEV="sam"
+TOOLCHAIN_HAS_TESTS=1
+TOOLCHAIN_GCC_RC=1
+PATCH_GCC_VER="14.2.0"
+PATCH_VER="8"
+MUSL_VER="1"
+MUSL_GCC_VER="14.1.0"
+PYTHON_COMPAT=( python3_{10..14} )
+
+if [[ -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
+       # m68k doesnt build (ICE, bug 932733)
+       #KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~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}"
+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 "${FILESDIR}"/${PN}-13-fix-cross-fixincludes.patch
+       eapply_user
+}

Reply via email to