Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/gcc/
Date: Fri, 30 Dec 2022 07:59:08
Message-Id: 1672386321.6e4d2045bbc59a23c5ebf9eecfdf105c096cd7ce.sam@gentoo
1 commit: 6e4d2045bbc59a23c5ebf9eecfdf105c096cd7ce
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 30 07:45:21 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 30 07:45:21 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e4d2045
7
8 sys-devel/gcc: add 10.4.1_p20221229
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 sys-devel/gcc/Manifest | 1 +
13 sys-devel/gcc/gcc-10.4.1_p20221229.ebuild | 58 +++++++++++++++++++++++++++++++
14 2 files changed, 59 insertions(+)
15
16 diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest
17 index 4a1e6670818a..9a395eb2a2a9 100644
18 --- a/sys-devel/gcc/Manifest
19 +++ b/sys-devel/gcc/Manifest
20 @@ -1,5 +1,6 @@
21 DIST gcc-10-20221208.tar.xz 72098912 BLAKE2B 8167b3d91fb95c727caa3a76d8bd6d70e0d0bd79eda72305f3005c9f7163dcd425c75386ba55b2d71644ecf83d998a4bccb6fd265bb615dcdd104f27cadb8e76 SHA512 5e49159d86300eaa4c2f34fb3537b5f257931e861a1a1217dbabcfcd5ef9da224d4a6023aaf8d24c8893ecd204ec0cd6e96349ae0dd445d62d92ebb041aeb054
22 DIST gcc-10-20221222.tar.xz 72112292 BLAKE2B fad78a6bc00e23909fa4c441592e61311709efa770ec713c44923f6f088c1185c52022cb9fa2e13185e644b655b16f7b4f4247e93bc82925ae44b2580feab8dd SHA512 34ecb5def4152e69c6b2a5fcd111c244447f6c53ed4359516923331af4634e67b803635ec770f24fc7dc12a571918d523fdf4f23d13e7aec927a05f8c5b83090
23 +DIST gcc-10-20221229.tar.xz 72106168 BLAKE2B 315233f7906fd12ebe206d351b7c0ee26f5f5010674f7133b9683122172b755e08ae29a837448bf49aef6759a1b373ae4a80acafb79b3d0207f3c0d8a543ba0c SHA512 39404361a464c0ec65923a6f01761beb70b56e2ed0c587b77b833290db71b943071e806fabd13dc3bd41f67813aabcda49d9d5ae490241dd913f115fa59cfba6
24 DIST gcc-10.4.0-musl-patches-1.tar.xz 3808 BLAKE2B 804d1fcc451dcd03be71240dd498ec2d179869571d44012967c48dccf5a478dd8c55000a964a80fdd5584d739a777dee1c83241cffce514ef002df2572854a67 SHA512 83e4a9c0f7062baf0c606a2bcc56a818494991403d7577dea65f04bbc25bdb786a5889b80d45d80e7f4be07c1aef786802cbfcfafd1a17ec255a2d4e93a77570
25 DIST gcc-10.4.0-patches-5.tar.xz 17056 BLAKE2B f336d69a8ad105b8c4a84e8248a5b8a88175d3f1d67d32c6bee1780d252d86947059bd624992e6292610e86c9012f4d901a1a54df0d184dd023d404a0707700e SHA512 aa8fb42f20587f8519e7b06037da4d8f7d386b63e228b239a0445a51df4e401940fcd81482381d966622054aef3e0db06d1def5c74ac3d3dcc9c75c3b966c758
26 DIST gcc-10.4.0.tar.xz 75018092 BLAKE2B ec1169025d3896b70ab80a4b8ce5040763a95529fc7e120c6bc3a3eb1db5cf938ebde347c1e595a8ff7d4081e79ded6252702d7a1a09648449b7a0783188e434 SHA512 440c08ca746da450d9a1b35e8fd2305cb27e7e6987cd9d0f7d375f3b1fc9e4b0bd7acb3cd7bf795e72fcbead59cdef5b6c152862f5d35cd9fbfe6902101ce648
27
28 diff --git a/sys-devel/gcc/gcc-10.4.1_p20221229.ebuild b/sys-devel/gcc/gcc-10.4.1_p20221229.ebuild
29 new file mode 100644
30 index 000000000000..8dae3d80c082
31 --- /dev/null
32 +++ b/sys-devel/gcc/gcc-10.4.1_p20221229.ebuild
33 @@ -0,0 +1,58 @@
34 +# Copyright 1999-2022 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=8
38 +
39 +TOOLCHAIN_PATCH_SUFFIX="xz"
40 +TOOLCHAIN_PATCH_DEV="sam"
41 +#TOOLCHAIN_GCC_RC=1
42 +PATCH_GCC_VER="10.5.0"
43 +PATCH_VER="3"
44 +MUSL_VER="1"
45 +MUSL_GCC_VER="10.5.0"
46 +
47 +if [[ $(ver_cut 3) == 9999 ]] ; then
48 + MY_PV_2=$(ver_cut 2)
49 + if [[ ${MY_PV_2} == 0 ]] ; then
50 + MY_PV_2=0
51 + else
52 + MY_PV_2=$(($(ver_cut 2) - 1))
53 + fi
54 +
55 + # e.g. 12.2.9999 -> 12.1.1
56 + TOOLCHAIN_GCC_PV=$(ver_cut 1).${MY_PV_2}.$(($(ver_cut 3) - 9998))
57 +elif [[ -n ${TOOLCHAIN_GCC_RC} ]] ; then
58 + # Cheesy hack for RCs
59 + MY_PV=$(ver_cut 1).$((($(ver_cut 2) + 1))).$((($(ver_cut 3) - 1)))-RC-$(ver_cut 5)
60 + MY_P=${PN}-${MY_PV}
61 + GCC_TARBALL_SRC_URI="https://gcc.gnu.org/pub/gcc/snapshots/${MY_PV}/${MY_P}.tar.xz"
62 + TOOLCHAIN_SET_S=no
63 + S="${WORKDIR}"/${MY_P}
64 +fi
65 +
66 +inherit toolchain
67 +# Needs to be after inherit (for now?), bug #830908
68 +EGIT_BRANCH=releases/gcc-$(ver_cut 1)
69 +
70 +# Don't keyword live ebuilds
71 +#if ! tc_is_live && [[ -z ${TOOLCHAIN_USE_GIT_PATCHES} ]] ; then
72 +# KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
73 +#fi
74 +
75 +RDEPEND=""
76 +BDEPEND="${CATEGORY}/binutils"
77 +
78 +src_prepare() {
79 + local p upstreamed_patches=(
80 + # add them here
81 + )
82 + for p in "${upstreamed_patches[@]}"; do
83 + rm -v "${WORKDIR}/patch/${p}" || die
84 + done
85 +
86 + if has_version '>=sys-libs/glibc-2.32-r1'; then
87 + rm -v "${WORKDIR}/patch/23_all_disable-riscv32-ABIs.patch" || die
88 + fi
89 +
90 + toolchain_src_prepare
91 +}