1 |
commit: e54ef6ab80ca678282356897c002dd1523fe2acd |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 30 22:57:28 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 31 00:43:52 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e54ef6ab |
7 |
|
8 |
sys-devel/gcc: add 11.3.1_p20221028 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
sys-devel/gcc/gcc-11.3.1_p20221028.ebuild | 52 +++++++++++++++++++++++++++++++ |
13 |
1 file changed, 52 insertions(+) |
14 |
|
15 |
diff --git a/sys-devel/gcc/gcc-11.3.1_p20221028.ebuild b/sys-devel/gcc/gcc-11.3.1_p20221028.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..4c05022129f0 |
18 |
--- /dev/null |
19 |
+++ b/sys-devel/gcc/gcc-11.3.1_p20221028.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_SUFFIX="xz" |
27 |
+TOOLCHAIN_PATCH_DEV="sam" |
28 |
+PATCH_VER="2" |
29 |
+PATCH_GCC_VER="11.4.0" |
30 |
+MUSL_VER="0" |
31 |
+MUSL_GCC_VER="11.4.0" |
32 |
+ |
33 |
+if [[ $(ver_cut 3) == 9999 ]] ; then |
34 |
+ MY_PV_2=$(ver_cut 2) |
35 |
+ if [[ ${MY_PV_2} == 0 ]] ; then |
36 |
+ MY_PV_2=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}.$(($(ver_cut 3) - 9998)) |
43 |
+fi |
44 |
+ |
45 |
+inherit toolchain |
46 |
+# Needs to be after inherit (for now?), bug #830908 |
47 |
+EGIT_BRANCH=releases/gcc-$(ver_cut 1) |
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 ~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-2.30[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 |
+} |