1 |
commit: 236836c3cb547aaede861b6dbec6e4c7450fe32f |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 30 01:23:22 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 30 01:23:36 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=236836c3 |
7 |
|
8 |
sys-devel/gcc: add 13.0.0_pre20221127 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
sys-devel/gcc/gcc-13.0.0_pre20221127.ebuild | 52 +++++++++++++++++++++++++++++ |
13 |
1 file changed, 52 insertions(+) |
14 |
|
15 |
diff --git a/sys-devel/gcc/gcc-13.0.0_pre20221127.ebuild b/sys-devel/gcc/gcc-13.0.0_pre20221127.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..92deea80216e |
18 |
--- /dev/null |
19 |
+++ b/sys-devel/gcc/gcc-13.0.0_pre20221127.ebuild |
20 |
@@ -0,0 +1,52 @@ |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+ |
26 |
+TOOLCHAIN_PATCH_DEV="soap" |
27 |
+PATCH_VER="3" |
28 |
+PATCH_GCC_VER="13.1.0" |
29 |
+MUSL_GCC_VER="13.1.0" |
30 |
+ |
31 |
+if [[ $(ver_cut 3) == 9999 ]] ; then |
32 |
+ MY_PV_2=$(ver_cut 2) |
33 |
+ MY_PV_3=$(($(ver_cut 3) - 9998)) |
34 |
+ if [[ ${MY_PV_2} == 0 ]] ; then |
35 |
+ MY_PV_2=0 |
36 |
+ MY_PV_3=0 |
37 |
+ else |
38 |
+ MY_PV_2=$(($(ver_cut 2) - 1)) |
39 |
+ fi |
40 |
+ |
41 |
+ # e.g. 12.2.9999 -> 12.1.1 |
42 |
+ TOOLCHAIN_GCC_PV=$(ver_cut 1).${MY_PV_2}.${MY_PV_3} |
43 |
+fi |
44 |
+ |
45 |
+inherit toolchain |
46 |
+# Needs to be after inherit (for now?), bug #830908 |
47 |
+EGIT_BRANCH=master |
48 |
+ |
49 |
+# Don't keyword live ebuilds |
50 |
+#if ! tc_is_live && [[ -z ${TOOLCHAIN_USE_GIT_PATCHES} ]] ; then |
51 |
+# KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
52 |
+#fi |
53 |
+ |
54 |
+# Technically only if USE=hardened *too* right now, but no point in complicating it further. |
55 |
+# If GCC is enabling CET by default, we need glibc to be built with support for it. |
56 |
+# bug #830454 |
57 |
+RDEPEND="elibc_glibc? ( sys-libs/glibc[cet(-)?] )" |
58 |
+DEPEND="${RDEPEND}" |
59 |
+BDEPEND="${CATEGORY}/binutils[cet(-)?]" |
60 |
+ |
61 |
+src_prepare() { |
62 |
+ local p upstreamed_patches=( |
63 |
+ # add them here |
64 |
+ ) |
65 |
+ for p in "${upstreamed_patches[@]}"; do |
66 |
+ rm -v "${WORKDIR}/patch/${p}" || die |
67 |
+ done |
68 |
+ |
69 |
+ toolchain_src_prepare |
70 |
+ |
71 |
+ eapply_user |
72 |
+} |