From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 finch.gentoo.org (Postfix) with ESMTPS id 7AEDD1581B9 for ; Sun, 05 Oct 2025 23:09:13 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 54721340F85 for ; Sun, 05 Oct 2025 23:09:13 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 500931102C9; Sun, 05 Oct 2025 23:09:12 +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) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 453D81102C9 for ; Sun, 05 Oct 2025 23:09:12 +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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EFE49341073 for ; Sun, 05 Oct 2025 23:09:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 838C929C4 for ; Sun, 05 Oct 2025 23:09:10 +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: <1759705697.b4dfbef0bb81ddb06da78f6ba1c1bbb608387d40.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-16.0.0_p20251005.ebuild X-VCS-Directories: sys-devel/gcc/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: b4dfbef0bb81ddb06da78f6ba1c1bbb608387d40 X-VCS-Branch: master Date: Sun, 05 Oct 2025 23:09:10 +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: f454c9cf-1835-452f-85d3-56eb667522af X-Archives-Hash: 8ef00c655114766aa819618159271f16 commit: b4dfbef0bb81ddb06da78f6ba1c1bbb608387d40 Author: Sam James gentoo org> AuthorDate: Sun Oct 5 23:07:49 2025 +0000 Commit: Sam James gentoo org> CommitDate: Sun Oct 5 23:08:17 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4dfbef0 sys-devel/gcc: add 16.0.0_p20251005 Bug: https://bugs.gentoo.org/956605 Bug: https://bugs.gentoo.org/956715 Closes: https://bugs.gentoo.org/963206 Closes: https://bugs.gentoo.org/963540 Signed-off-by: Sam James gentoo.org> sys-devel/gcc/Manifest | 2 ++ sys-devel/gcc/gcc-16.0.0_p20251005.ebuild | 56 +++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest index 0be9cc8ac3b3..772a4c6dea3d 100644 --- a/sys-devel/gcc/Manifest +++ b/sys-devel/gcc/Manifest @@ -37,8 +37,10 @@ DIST gcc-15.2.0-musl-patches-1.tar.xz 7168 BLAKE2B 6b7cfb123c3a691693240db815e68 DIST gcc-15.2.0-patches-1.tar.xz 17412 BLAKE2B b761d5c75e084724a80287adb0659286fa208d40b731fc562e9c555d178f2531ecd1e3ca85b674d83f7aabe774d12b382c0b12d0cd024d45e8b915d185f7e229 SHA512 15442890b5b077e3bb392b9cab5dc7a2379c6da7820dc54d25ae337cc5238f662d834ea531882a273f3aba36672f14600baca40a2f4580fceb0e396f56b15594 DIST gcc-15.2.0.tar.xz 101056276 BLAKE2B e270320978ca690e6e8f5ef06414dc13caf561f16403a3783c76fbf3dcee57e755a2d5bba922bf7fcae0bb6120443755d819b003791ae823d54589dd799804de SHA512 89047a2e07bd9da265b507b516ed3635adb17491c7f4f67cf090f0bd5b3fc7f2ee6e4cc4008beef7ca884b6b71dffe2bb652b21f01a702e17b468cca2d10b2de DIST gcc-16-20250928.tar.xz 95726148 BLAKE2B e64e8914de05f4b811477a009b67c10ff9f47dc2735a24c6ab47449d14ae37970da6a084802dd19479b3b0878e260ee889e5d7bb3a37f47443487fef74ee8682 SHA512 bf3f948a34e30e28eafb226e3d676024c22b3f9d890a9e4ab09083f7ef9dddc404937edd05704bb8527b14ad5965bf1090ca358e5907db29f64d816fbb11be58 +DIST gcc-16-20251005.tar.xz 95768580 BLAKE2B 7caee206865414a84e01686ce905562bfd0498eb2087802bc1de2329fa3246545b0c42d9acae4f91b119b68a768cac69e03e4769a8c3fb69a22ff9d129165134 SHA512 7e5a731f789c0c502d62630ce4331976406561f69416ba9b741557a8a0d60cbcec251cac66258db23fa2f07359cfd477ed45393893272bf2291b0c02b8d1c271 DIST gcc-16.0.0-musl-patches-1.tar.xz 3040 BLAKE2B 18b16357699780eb470cf44a10710281955140103198e0bd55b75e1efe3dbec233689edb11e1b9a62f782f3d97293af4906c18c2c41613b422eda085ee819467 SHA512 5ba580c7c7bb9e62935a5162d44d357cc31185a113acff7498ed7b1ac43fd0a35de7c3de0c87f02fe0be46b5e55b49bb35d1f5cd470058d21a9ea4096a37e13d DIST gcc-16.0.0-patches-14.tar.xz 21676 BLAKE2B 6bd29ef5bb6993d846e7071a83c902354bc3c10b5576c345f60bc69e4d9725ed71086efa7cddcff2d20d0d4a8e2dec93719efd943263a6e684c543c42345c0fd SHA512 6f9080f4736d42d49b4c10b65da4f4c893be8034714b30f2ec6838a15fc2c201cde07d18cf752e0df0c689cf543a4303182e522b1d9054a8081d56e37eede6a0 +DIST gcc-16.0.0-patches-16.tar.xz 28672 BLAKE2B f2319a3364606fa3eb5557edae173c3defa3201731acc210ed9659500e0977b04214605d2004c5df44950d7687fc755ef750287ec2d1f7c1637ccb4c8d3c830a SHA512 69bc54b73c5e1663963361cf898a98b93458e490cc87143b59ff73265d8a1a2ec64e766d2ca5c4e9d01026d6008dac05e9eb6ace84e48cdbd6238f9fb60c0042 DIST gcc-8.5.0-patches-5.tar.xz 20188 BLAKE2B 45b29161105edc6344bb48f5bdf17e1aad6e8d9edb4d9434816425996c1b12c10f1303963776adad9db866d845f864d80d198a30e35ee6c204ca3659cf7a1401 SHA512 f22ab5d8e3116e2e896a5dcbbf5cef67dc5090182af364ef64fc22d2b28c029da5ed39f126f446721e388e7b6848239d01f5fc0346e49b96d5c04068b557f8f8 DIST gcc-8.5.0.tar.xz 63841008 BLAKE2B aa81a1a730fd7371360f6abed6ba78b5843fd18c58d5de5687acc320741b9e430e85df3535a1ef7a26051409be8d2f0945f503e5968480d919103123a99d4b12 SHA512 92f599680e6b7fbce88bcdda810f468777d541e5fddfbb287f7977d51093de2a5178bd0e6a08dfe37090ea10a0508a43ccd00220041abbbec33f1179bfc174d8 DIST gcc-9.5.0-patches-3.tar.xz 17888 BLAKE2B f2be05f32f4ecca41ebf4f402bf8fb3c11a36a8b7bd912ee9fe6baea980929774b629e12df7afb3405f1f5d044766a437b3eca5433f4af6c757f4a9dbb2e77eb SHA512 d31bb1964cdb2376572e4981b22c7ffa6fa695259c27af5d0d12aebc334cd1122c2f75739033f25f1e672300adeab2b3772622cb16099d002f3f8c5a8fe694f9 diff --git a/sys-devel/gcc/gcc-16.0.0_p20251005.ebuild b/sys-devel/gcc/gcc-16.0.0_p20251005.ebuild new file mode 100644 index 000000000000..24014bd4c17b --- /dev/null +++ b/sys-devel/gcc/gcc-16.0.0_p20251005.ebuild @@ -0,0 +1,56 @@ +# 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 +PATCH_GCC_VER="16.0.0" +PATCH_VER="16" +MUSL_VER="1" +MUSL_GCC_VER="16.0.0" +PYTHON_COMPAT=( python3_{11..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=master +elif [[ -z ${TOOLCHAIN_USE_GIT_PATCHES} ]] ; then + # Don't keyword live ebuilds + #KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~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}" +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 +}