public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Fabian Groffen" <grobian@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/csu/
Date: Tue, 12 Jun 2018 10:44:18 +0000 (UTC)	[thread overview]
Message-ID: <1528800250.54b8dc19fb80e6e6a10ccd8f14dc9765793b6f24.grobian@gentoo> (raw)

commit:     54b8dc19fb80e6e6a10ccd8f14dc9765793b6f24
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 12 10:43:54 2018 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Tue Jun 12 10:44:10 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54b8dc19

sys-libs/csu: require Clang or gcc-apple compiler

Package-Manager: Portage-2.3.40, Repoman-2.3.9

 sys-libs/csu/csu-85.ebuild | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/sys-libs/csu/csu-85.ebuild b/sys-libs/csu/csu-85.ebuild
index f8c0f3f7d29..4e6c9fd1daf 100644
--- a/sys-libs/csu/csu-85.ebuild
+++ b/sys-libs/csu/csu-85.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -16,6 +16,13 @@ KEYWORDS="~ppc-macos ~x64-macos ~x86-macos"
 IUSE=""
 S=${WORKDIR}/Csu-${PV}
 
+# for now it seems FSF GCC can't compile this thing, so we need
+# gcc-apple or clang (which is also sort of "-apple")
+DEPEND="|| (
+		sys-devel/clang
+		=sys-devel/gcc-apple-4.2.1*
+	)"
+
 src_prepare() {
 	# since we don't have crt0, we can't build it either
 	sed -i \
@@ -39,6 +46,12 @@ src_prepare() {
 }
 
 src_compile() {
+	# FSF GCC-7.3.0 most notably complains about private_externs, but it
+	# also has issues with the assembly, so use gcc-apple, if it is
+	# installed.  Normally, (non-ppc) users will have clang installed,
+	# so this isn't used, should they have gcc-apple installed, then
+	# this wouldn't hurt either.
+	type -P gcc-4.2.1 > /dev/null && export CC=gcc-4.2.1
 	emake USRLIBDIR="${EPREFIX}"/lib || die
 }
 


             reply	other threads:[~2018-06-12 10:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-12 10:44 Fabian Groffen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-12-13 14:06 [gentoo-commits] repo/gentoo:master commit in: sys-libs/csu/ Fabian Groffen
2021-10-21 11:27 Jakov Smolić
2021-01-06 15:35 Fabian Groffen
2019-12-26  9:22 Fabian Groffen
2019-12-26  9:22 Fabian Groffen
2017-04-13 19:11 Fabian Groffen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1528800250.54b8dc19fb80e6e6a10ccd8f14dc9765793b6f24.grobian@gentoo \
    --to=grobian@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox