From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 51CDA158041 for ; Sat, 16 Mar 2024 00:27:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id ED406E29E3; Sat, 16 Mar 2024 00:27:51 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D1670E29E3 for ; Sat, 16 Mar 2024 00:27:51 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0B55E33B864 for ; Sat, 16 Mar 2024 00:27:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9C7071504 for ; Sat, 16 Mar 2024 00:27:49 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1710548831.1112bcd0e76add705ec994d41149b4096f440e8d.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/gcc/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-devel/gcc/Manifest sys-devel/gcc/gcc-12.3.1_p20240315.ebuild X-VCS-Directories: sys-devel/gcc/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 1112bcd0e76add705ec994d41149b4096f440e8d X-VCS-Branch: master Date: Sat, 16 Mar 2024 00:27:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ad46d1f5-c77b-4f7a-b592-c1a186c05bb2 X-Archives-Hash: ccdf63fa433a4e9554178351e48a8156 commit: 1112bcd0e76add705ec994d41149b4096f440e8d Author: Sam James gentoo org> AuthorDate: Sat Mar 16 00:27:11 2024 +0000 Commit: Sam James gentoo org> CommitDate: Sat Mar 16 00:27:11 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1112bcd0 sys-devel/gcc: add 12.3.1_p20240315 Signed-off-by: Sam James gentoo.org> sys-devel/gcc/Manifest | 1 + sys-devel/gcc/gcc-12.3.1_p20240315.ebuild | 64 +++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest index 85bf16789553..44e4b521e801 100644 --- a/sys-devel/gcc/Manifest +++ b/sys-devel/gcc/Manifest @@ -14,6 +14,7 @@ DIST gcc-12-20240209.tar.xz 79824868 BLAKE2B 1ae5a646da470f06648c4766c77475ceb28 DIST gcc-12-20240223.tar.xz 79826600 BLAKE2B 408f3193c1254f3155b1bc679861fa4c994b94090cace14532a6e753ae217be9990919c5a9b2763b294b1ebbaf95876055c841e854132773cc6cb81454d0caec SHA512 e9c23cb4a5101e556123fd621fd849f961e11871fcbfbb9dd898de66a932be9b891030d327231327946300beb0e0c3abe58f8f1c72158c910785e8ecb2f687c0 DIST gcc-12-20240301.tar.xz 79812760 BLAKE2B af6fe0a9432bf6f4e8bcc1f06a66632abfde9925ef6eec2fd092214f75383d68d3a7fbaf0e9195e602aa5e3d994b8e5005362ef7229121fb7f3ace902e53188f SHA512 4ecaff01a6c3806b14f4361881fe9c5a7bab32d258d46e5f8d5b577aebd910b2cf152915d5e832d3496a1f82644f01530ba3ee9f0ff2ee2b1b358911ae90935f DIST gcc-12-20240308.tar.xz 79833804 BLAKE2B 08a41ab1ec664810fe7e57b59fcb9e2b429d7c8fab259d06828d74465c177ac84066b288164fbba96104a01122bbbfd76aa6113601dcc0c034446e490fa62d23 SHA512 da5348f2262ec5a7099bcd42b39c23a06ce31a28fba0a0138669ed1501b9a6e3b9e599a860b987236162927825f466354998483213becf8bbc696cb5f34ceab1 +DIST gcc-12-20240315.tar.xz 79836176 BLAKE2B 0e72c195c65b2c18cae82a2ef0e619638d3c19928b7098bc5b295b99e32243f791a10013f04498b4b95d34e93c77bfe5c7e9a980aeeab0ac44e5b5d6cbe1ebf0 SHA512 4a7a448932f4897f6514e344674bf58f0564f8a7ca6269f98ffd23f1be6fe6287117e9e2cd5cb69a597958c4c052edbb66d0b71d6ded420af3bf9b1fbaf18955 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 DIST gcc-12.3.0-patches-3.tar.xz 14852 BLAKE2B 7a5f1f43063b15f424099afd72096212fbbbc5151ff01f2de15dfb6e7cf274981c8cfaedba9ef61576c9096fb172fc550a7deb5cd7d9366fd249fd5dd3951f76 SHA512 aa89e4c2ae02f4fb42229ad5167f2eaa3a8fae51118645bf07199fe2124b9c83948590662b053d08002ef709fa870ea88315fd4ccbe4441a74e9cb62edcb82fb diff --git a/sys-devel/gcc/gcc-12.3.1_p20240315.ebuild b/sys-devel/gcc/gcc-12.3.1_p20240315.ebuild new file mode 100644 index 000000000000..44985e9fed07 --- /dev/null +++ b/sys-devel/gcc/gcc-12.3.1_p20240315.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2024 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="3" +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="amd64? ( >=${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 +}