1 |
commit: 578a5b4f5715016adb421fbb274daefd9f80ff54 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 30 11:35:25 2018 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 30 11:35:49 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=578a5b4f |
7 |
|
8 |
sys-apps/coreutils: try and get 8.30 building on darwin9 |
9 |
|
10 |
Package-Manager: Portage-2.3.52.2-prefix, Repoman-2.3.12 |
11 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
12 |
|
13 |
sys-apps/coreutils/coreutils-8.30.ebuild | 10 ++++++++++ |
14 |
1 file changed, 10 insertions(+) |
15 |
|
16 |
diff --git a/sys-apps/coreutils/coreutils-8.30.ebuild b/sys-apps/coreutils/coreutils-8.30.ebuild |
17 |
index 7b19bd0c46..fb0b646972 100644 |
18 |
--- a/sys-apps/coreutils/coreutils-8.30.ebuild |
19 |
+++ b/sys-apps/coreutils/coreutils-8.30.ebuild |
20 |
@@ -70,6 +70,16 @@ src_prepare() { |
21 |
|
22 |
# fixup libstdbuf non-libtool stuff |
23 |
if [[ ${CHOST} == *-darwin* ]] ; then |
24 |
+ if [[ ${CHOST} == *-darwin9* ]] ; then |
25 |
+ # we need replacement libs from libcoreutils.a here in order |
26 |
+ # to finish the linking |
27 |
+ sed -i \ |
28 |
+ -e "/src_libstdbuf_so_LDADD/s:$: lib/libcoreutils.a:" \ |
29 |
+ Makefile.in \ |
30 |
+ || die |
31 |
+ # and we need serial building :( |
32 |
+ export MAKEOPTS+="-j1" |
33 |
+ fi |
34 |
sed -i \ |
35 |
-e "/src_libstdbuf_so_LDFLAGS = -shared/s:-shared:-dynamiclib -install_name ${EPREFIX}/usr/libexec/coreutils/libstdbuf.dylib:" \ |
36 |
Makefile.in \ |