Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/csu/
Date: Tue, 12 Jun 2018 10:44:24
Message-Id: 1528800250.54b8dc19fb80e6e6a10ccd8f14dc9765793b6f24.grobian@gentoo
1 commit: 54b8dc19fb80e6e6a10ccd8f14dc9765793b6f24
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 12 10:43:54 2018 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 12 10:44:10 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54b8dc19
7
8 sys-libs/csu: require Clang or gcc-apple compiler
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11
12 sys-libs/csu/csu-85.ebuild | 15 ++++++++++++++-
13 1 file changed, 14 insertions(+), 1 deletion(-)
14
15 diff --git a/sys-libs/csu/csu-85.ebuild b/sys-libs/csu/csu-85.ebuild
16 index f8c0f3f7d29..4e6c9fd1daf 100644
17 --- a/sys-libs/csu/csu-85.ebuild
18 +++ b/sys-libs/csu/csu-85.ebuild
19 @@ -1,4 +1,4 @@
20 -# Copyright 1999-2015 Gentoo Foundation
21 +# Copyright 1999-2018 Gentoo Foundation
22 # Distributed under the terms of the GNU General Public License v2
23
24 EAPI=5
25 @@ -16,6 +16,13 @@ KEYWORDS="~ppc-macos ~x64-macos ~x86-macos"
26 IUSE=""
27 S=${WORKDIR}/Csu-${PV}
28
29 +# for now it seems FSF GCC can't compile this thing, so we need
30 +# gcc-apple or clang (which is also sort of "-apple")
31 +DEPEND="|| (
32 + sys-devel/clang
33 + =sys-devel/gcc-apple-4.2.1*
34 + )"
35 +
36 src_prepare() {
37 # since we don't have crt0, we can't build it either
38 sed -i \
39 @@ -39,6 +46,12 @@ src_prepare() {
40 }
41
42 src_compile() {
43 + # FSF GCC-7.3.0 most notably complains about private_externs, but it
44 + # also has issues with the assembly, so use gcc-apple, if it is
45 + # installed. Normally, (non-ppc) users will have clang installed,
46 + # so this isn't used, should they have gcc-apple installed, then
47 + # this wouldn't hurt either.
48 + type -P gcc-4.2.1 > /dev/null && export CC=gcc-4.2.1
49 emake USRLIBDIR="${EPREFIX}"/lib || die
50 }