Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/gcc/
Date: Sat, 11 Jan 2020 23:53:22
Message-Id: 1578786791.52523e19bb65857d5cebbb1b2d0bb218eb4eeea9.slyfox@gentoo
1 commit: 52523e19bb65857d5cebbb1b2d0bb218eb4eeea9
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 11 22:44:18 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 11 23:53:11 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52523e19
7
8 sys-devel/gcc: add live ebuild for gcc-master
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
12
13 sys-devel/gcc/gcc-10.0.0_pre9999.ebuild | 46 +++++++++++++++++++++++++++++++++
14 1 file changed, 46 insertions(+)
15
16 diff --git a/sys-devel/gcc/gcc-10.0.0_pre9999.ebuild b/sys-devel/gcc/gcc-10.0.0_pre9999.ebuild
17 new file mode 100644
18 index 00000000000..b0210fa880a
19 --- /dev/null
20 +++ b/sys-devel/gcc/gcc-10.0.0_pre9999.ebuild
21 @@ -0,0 +1,46 @@
22 +# Copyright 1999-2020 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI="7"
26 +
27 +PATCH_GCC_VER="9.2.0" # reuse subset of patches for latest for live ebuilds gcc
28 +PATCH_VER="4"
29 +
30 +inherit toolchain
31 +
32 +# Don't keyword live ebuilds
33 +#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86"
34 +
35 +# No gcc-10 branch yet
36 +EGIT_BRANCH=master
37 +
38 +RDEPEND=""
39 +DEPEND="${RDEPEND}
40 + elibc_glibc? ( >=sys-libs/glibc-2.13 )
41 + >=${CATEGORY}/binutils-2.20"
42 +
43 +if [[ ${CATEGORY} != cross-* ]] ; then
44 + PDEPEND="${PDEPEND} elibc_glibc? ( >=sys-libs/glibc-2.13 )"
45 +fi
46 +
47 +src_prepare() {
48 + local p ignore_patches=(
49 + 04_all_default-ssp-fix.patch # needs a port
50 + 11_all_extra-options.patch # needs a port
51 + 15_all_disable-systemtap-switch.patch # needs a port
52 +
53 + 25_all_ia64-bootstrap.patch # upstreamed
54 + 27_all_sparc-PIC-constant-PR91472.patch # upstreamed
55 + 28_all_sparc-fpu-subregs-91269.patch # upstreamed
56 + 29_all_mips_split_move-SEGV.patch # upstreamed
57 + 30_all_arm64-march-native.patch # upstreamed
58 + 31_all_openmp-for-SEGV.patch # upstreamed
59 + 32_all_sparc-PIC-constant-part2.patch # upstreamed
60 + 33_all_extend-lifetime.patch # upstreamed
61 + )
62 + for p in "${ignore_patches[@]}"; do
63 + rm "${WORKDIR}"/patch/"${p}" || die "failed to delete '${p}'"
64 + done
65 +
66 + toolchain_src_prepare
67 +}