From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1010849-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 24B221382C5
	for <garchives@archives.gentoo.org>; Mon, 19 Mar 2018 14:24:42 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 36FD0E08EF;
	Mon, 19 Mar 2018 14:24:41 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 10C4EE08EF
	for <gentoo-commits@lists.gentoo.org>; Mon, 19 Mar 2018 14:24:41 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 0049B335D6E
	for <gentoo-commits@lists.gentoo.org>; Mon, 19 Mar 2018 14:24:40 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 9E26625A
	for <gentoo-commits@lists.gentoo.org>; Mon, 19 Mar 2018 14:24:38 +0000 (UTC)
From: "Fabian Groffen" <grobian@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" <grobian@gentoo.org>
Message-ID: <1521469466.b3fa78fce756ce172c4568aefd2bc08dcf5221dc.grobian@gentoo>
Subject: [gentoo-commits] repo/proj/prefix:master commit in: sys-apps/coreutils/
X-VCS-Repository: repo/proj/prefix
X-VCS-Files: sys-apps/coreutils/coreutils-8.29.ebuild
X-VCS-Directories: sys-apps/coreutils/
X-VCS-Committer: grobian
X-VCS-Committer-Name: Fabian Groffen
X-VCS-Revision: b3fa78fce756ce172c4568aefd2bc08dcf5221dc
X-VCS-Branch: master
Date: Mon, 19 Mar 2018 14:24:38 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: 060c5e58-5ffc-4a30-ad01-8a0a2669c0f5
X-Archives-Hash: 7f1967d3930d623825c2e967d5d479d2

commit:     b3fa78fce756ce172c4568aefd2bc08dcf5221dc
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 19 14:24:26 2018 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Mon Mar 19 14:24:26 2018 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=b3fa78fc

sys-apps/coreutils: fix linking on ppc-macos

Package-Manager: Portage-2.3.18-prefix, Repoman-2.3.6

 sys-apps/coreutils/coreutils-8.29.ebuild | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/sys-apps/coreutils/coreutils-8.29.ebuild b/sys-apps/coreutils/coreutils-8.29.ebuild
index 2a152c1656..6c8a9c89a4 100644
--- a/sys-apps/coreutils/coreutils-8.29.ebuild
+++ b/sys-apps/coreutils/coreutils-8.29.ebuild
@@ -69,6 +69,14 @@ src_prepare() {
 	epatch "${FILESDIR}"/${PN}-8.22-mint.patch
 	# fixup libstdbuf non-libtool stuff
 	if [[ ${CHOST} == *-darwin* ]] ; then
+		if [[ ${CHOST} == *-darwin9* ]] ; then
+			# we need replacement libs from libcoreutils.a here in order
+			# to finish the linking
+			sed -i \
+				-e "/src_libstdbuf_so_LDADD/s:$:lib/libcoreutils.a:" \
+				Makefile.in \
+				|| die
+		fi
 		sed -i \
 			-e "/src_libstdbuf_so_LDFLAGS = -shared/s:-shared:-dynamiclib -install_name ${EPREFIX}/usr/libexec/coreutils/libstdbuf.dylib:" \
 			Makefile.in \