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 C2CD415ACFB for ; Sat, 8 Apr 2023 22:43:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F41F8E0858; Sat, 8 Apr 2023 22:43:05 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 BAB6FE0858 for ; Sat, 8 Apr 2023 22:43:05 +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 BFB30341153 for ; Sat, 8 Apr 2023 22:43:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 519E79FA for ; Sat, 8 Apr 2023 22:43:02 +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: <1680993737.0b1f4099f976921fa86f483a142dc7d4758ca88c.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.2.1_p20230408.ebuild X-VCS-Directories: sys-devel/gcc/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 0b1f4099f976921fa86f483a142dc7d4758ca88c X-VCS-Branch: master Date: Sat, 8 Apr 2023 22:43:02 +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: 86c038d3-066e-4f3e-bdf8-f95b36ea4634 X-Archives-Hash: 1735f23fa8dc5bcbdfa0b4b6a8370d33 commit: 0b1f4099f976921fa86f483a142dc7d4758ca88c Author: Sam James gentoo org> AuthorDate: Sat Apr 8 22:42:17 2023 +0000 Commit: Sam James gentoo org> CommitDate: Sat Apr 8 22:42:17 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b1f4099 sys-devel/gcc: add 12.2.1_p20230408 Signed-off-by: Sam James gentoo.org> sys-devel/gcc/Manifest | 1 + sys-devel/gcc/gcc-12.2.1_p20230408.ebuild | 54 +++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest index e57bfd6f9fcc..1825d40b6c30 100644 --- a/sys-devel/gcc/Manifest +++ b/sys-devel/gcc/Manifest @@ -24,6 +24,7 @@ DIST gcc-12-20230304.tar.xz 79683276 BLAKE2B e02622f1193ba17dd1041eae0c2f594b268 DIST gcc-12-20230318.tar.xz 79703428 BLAKE2B ec1a4c1e8de27f8762ef91f553a2f8045f26a38c1beb49be4a39c86a11b894b609548f3f6f47b6bf2de9a357995a1f72c3667dba4892189eedee01c9e3c160ed SHA512 7ba9acab02a42090fde3e903bb579d20bd1ba6ae0403fa344e25db74e4a81dfe5a81a98971869baaf0d70c089f313bf789287f037294f813429480634afea8f6 DIST gcc-12-20230325.tar.xz 79708484 BLAKE2B 8c72569cc3f070e910b2abaf186575d1711d0c4097f192bb87ddb5bb969c794454331fdc0b363edfc26df93937d2d88d392230b1f7f47f1c1fa3bf7aff189282 SHA512 ff05bd4a113b3cabaf90f319c452c0027786ab295d1c25f5cc06c5dfa72fee5444219189bb51935e6f90facd026fc760bd335b9fe3e2b5b10e1bc9f6ee7b7ccb DIST gcc-12-20230401.tar.xz 79715852 BLAKE2B 6dc4a0d8b619fbabe5bad9b8daa1ff6d109bb08634b71bf7fab39d22179f9841091bda58bf503ef08a8e26a53f1b49c835e4758f0dcb41f2863820c26d7383da SHA512 b0757f56cd778ca537090c79d1ca606e28d258473a9add59df9be39dcfe3047cbe324e81a389f101d8ded31419b0e535410997593bd99a6fa22730288362de4e +DIST gcc-12-20230408.tar.xz 79713052 BLAKE2B 932457993304a40337fc25864ce7d1bd2c5b31a91b4dfae19a0ecdb93658b3ef68e5f4a1911f4921fa26e4388664274ade2c6e3ba852e1bc9fb8e1f2f0d6513c SHA512 c75ac4be453f2f95a58de7b34f80d1050ba6d5a71b7987ac7359315f8e682c76ae004d9c34b4b6bfe78a7708319e51e9cdb1bdaaa3cb15e76214d60557ce39dc 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 diff --git a/sys-devel/gcc/gcc-12.2.1_p20230408.ebuild b/sys-devel/gcc/gcc-12.2.1_p20230408.ebuild new file mode 100644 index 000000000000..763aa90c2051 --- /dev/null +++ b/sys-devel/gcc/gcc-12.2.1_p20230408.ebuild @@ -0,0 +1,54 @@ +# 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 + +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() { + toolchain_src_prepare + + eapply_user +}