1 |
commit: 48488786b8625ce64b1d88402a90741cfc8e661c |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 19 22:53:49 2023 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 19 22:53:55 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48488786 |
7 |
|
8 |
sys-devel/gcc: add 13.0.1_pre20230319 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
sys-devel/gcc/Manifest | 1 + |
13 |
sys-devel/gcc/gcc-13.0.1_pre20230319.ebuild | 54 +++++++++++++++++++++++++++++ |
14 |
2 files changed, 55 insertions(+) |
15 |
|
16 |
diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest |
17 |
index 36bf585fa2df..8298ee44a4c4 100644 |
18 |
--- a/sys-devel/gcc/Manifest |
19 |
+++ b/sys-devel/gcc/Manifest |
20 |
@@ -30,6 +30,7 @@ DIST gcc-12.2.0.tar.xz 84645292 BLAKE2B 715574af9ad678f9dc8cfd19c866bf910c7edfd4 |
21 |
DIST gcc-13-20230226.tar.xz 84264388 BLAKE2B fea763a1627bff19eb0f7869b83c00337dc2a203178d17143c98c2c1d3fd385d2f853f195ff79ecc1cae659a1f8704c88e7fd77456eed4510bdcba7631e49353 SHA512 38de82dd54e1b57490f5492a4adcd05b9da3ace2235654dff19bade8d378e75be1495f3b2b4e7f7e57ea144351c4ade1e9a5b141546259024f0359f43b2025ac |
22 |
DIST gcc-13-20230305.tar.xz 84314220 BLAKE2B cf4971cddea6981e3dfb62dd7d69b85b85df0a137e0596f71530966186f2919e800e60b6712b1d676b4250e835db8601af5376a77dad82fff7b1d9faae012da8 SHA512 39320f90bcdc2d8f5cefa2c8ac551d7a6f0d20744cdff5ed8956321d6b0813bbc44d18266bf7bb7ebbe642078a6d9677216e6db939dd56186959e5454d7d3a85 |
23 |
DIST gcc-13-20230312.tar.xz 84361832 BLAKE2B 4099036d7224cbdb9cfd8fb454201a80f76ea9569d8625d4cedc14ed30caf0a4b88a60b5f9fff12001a19a928909489609da3634c109e457f9b6dedcd20a947d SHA512 7513ebdbe9e6116658c4bafdc71f122cae3cf7233b91402bc1d05fe1fec0ff036ed613b1db3af2b235fc153c862f428cd297da6ba0e6e81e1e7962fa0550e01e |
24 |
+DIST gcc-13-20230319.tar.xz 83729684 BLAKE2B b57681574691f7909017ea1b8a5d101e09c22632d9f2aef166eaafc55cd7b2f8bca065b16a7b902130da55edf5f16994608601dfb2dacd7661a477afc4482a32 SHA512 461a70570ae3944f317b778feb67cfc3bd29945c0a825b558abd9311cb5297b390725896b81a494c3c592c231d77a7147338cb4962a1feba304f13e6e19b4538 |
25 |
DIST gcc-13.1.0-musl-patches-1.tar.xz 3528 BLAKE2B c572ab4a0fb929b16ec36b3a3616cdcccd62f7ee27ded8077008b9beb50539db64cc251ff8a3eade54e8ebfe1012f8f32d0802379bf8ffb0f1b8ce7c8457da37 SHA512 ffb7dfa54a9d23b5333664e915efd9f18a43cd696f4ff5669a8b072a0e9cf4978de53e315123542441a2533e4f269de0bb7d90ee7a37d3a7517b7cda6ea06681 |
26 |
DIST gcc-13.1.0-patches-8.tar.xz 11644 BLAKE2B aaa135a7d22badc22eeba42fe92c2de40e1a779836f42b5ba15884ad3d756020421b99e29b9a27f40368013fb9d8348e3ca1ef3541a6de55129d66f4645caf8f SHA512 a71ef0f215451c840a99d7100489e8364e4e7a71d83e9be42e35fb06d4276afadb64834801ef3469a4edb78eede5a03c18104215fef3039f98da3b3d0c8e69af |
27 |
DIST gcc-13.1.0-patches-9.tar.xz 11720 BLAKE2B c26a2924fa8aab318a1f4a4974ca4aeba255f3605fa0cbf448a4e48b6f3e9359012aeae15726299059257b93043c5cdd86bf1b2f2fffd4b9a096ab411a0503ba SHA512 98e48abaa664ea18bf00ba7bdb29cc1e908cc55ba9d12d52061e86fc917753ade8e38a190c04d23c63102808ac5a9e8ecf085dcc29a1568a329ceb5d43cf0290 |
28 |
|
29 |
diff --git a/sys-devel/gcc/gcc-13.0.1_pre20230319.ebuild b/sys-devel/gcc/gcc-13.0.1_pre20230319.ebuild |
30 |
new file mode 100644 |
31 |
index 000000000000..1f65b8ba8aab |
32 |
--- /dev/null |
33 |
+++ b/sys-devel/gcc/gcc-13.0.1_pre20230319.ebuild |
34 |
@@ -0,0 +1,54 @@ |
35 |
+# Copyright 1999-2023 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=8 |
39 |
+ |
40 |
+TOOLCHAIN_PATCH_DEV="sam" |
41 |
+PATCH_VER="9" |
42 |
+PATCH_GCC_VER="13.1.0" |
43 |
+MUSL_VER="1" |
44 |
+MUSL_GCC_VER="13.1.0" |
45 |
+ |
46 |
+if [[ $(ver_cut 3) == 9999 ]] ; then |
47 |
+ MY_PV_2=$(ver_cut 2) |
48 |
+ MY_PV_3=$(($(ver_cut 3) - 9998)) |
49 |
+ if [[ ${MY_PV_2} == 0 ]] ; then |
50 |
+ MY_PV_2=0 |
51 |
+ MY_PV_3=0 |
52 |
+ else |
53 |
+ MY_PV_2=$(($(ver_cut 2) - 1)) |
54 |
+ fi |
55 |
+ |
56 |
+ # e.g. 12.2.9999 -> 12.1.1 |
57 |
+ TOOLCHAIN_GCC_PV=$(ver_cut 1).${MY_PV_2}.${MY_PV_3} |
58 |
+fi |
59 |
+ |
60 |
+inherit toolchain |
61 |
+# Needs to be after inherit (for now?), bug #830908 |
62 |
+EGIT_BRANCH=master |
63 |
+ |
64 |
+# Don't keyword live ebuilds |
65 |
+if ! tc_is_live && [[ -z ${TOOLCHAIN_USE_GIT_PATCHES} ]] ; then |
66 |
+# KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
67 |
+ KEYWORDS="~loong" |
68 |
+fi |
69 |
+ |
70 |
+# Technically only if USE=hardened *too* right now, but no point in complicating it further. |
71 |
+# If GCC is enabling CET by default, we need glibc to be built with support for it. |
72 |
+# bug #830454 |
73 |
+RDEPEND="elibc_glibc? ( sys-libs/glibc[cet(-)?] )" |
74 |
+DEPEND="${RDEPEND}" |
75 |
+BDEPEND="${CATEGORY}/binutils[cet(-)?]" |
76 |
+ |
77 |
+src_prepare() { |
78 |
+ local p upstreamed_patches=( |
79 |
+ # add them here |
80 |
+ ) |
81 |
+ for p in "${upstreamed_patches[@]}"; do |
82 |
+ rm -v "${WORKDIR}/patch/${p}" || die |
83 |
+ done |
84 |
+ |
85 |
+ toolchain_src_prepare |
86 |
+ |
87 |
+ eapply_user |
88 |
+} |