1 |
commit: 8a58d437cd9ae4f427b5f0bfc7a65e16d5ba23b9 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 6 10:16:18 2018 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 6 10:16:34 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a58d437 |
7 |
|
8 |
dev-lang/go: fix installation on Darwin |
9 |
|
10 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
12 |
|
13 |
dev-lang/go/go-1.11.2.ebuild | 8 ++++++++ |
14 |
dev-lang/go/go-9999.ebuild | 10 +++++++++- |
15 |
2 files changed, 17 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/dev-lang/go/go-1.11.2.ebuild b/dev-lang/go/go-1.11.2.ebuild |
18 |
index 3eecca0eb62..58aa8cbd90d 100644 |
19 |
--- a/dev-lang/go/go-1.11.2.ebuild |
20 |
+++ b/dev-lang/go/go-1.11.2.ebuild |
21 |
@@ -225,4 +225,12 @@ src_install() |
22 |
dosym ../lib/go/${bin_path}/${f} /usr/bin/${f} |
23 |
done |
24 |
einstalldocs |
25 |
+ |
26 |
+ if [[ ${CHOST} == *-darwin* ]] ; then |
27 |
+ # fix install_name for test object (binutils_test) on Darwin, it |
28 |
+ # is never used in real circumstances |
29 |
+ local libmac64="${EPREFIX}"/usr/lib/go/src/cmd/vendor/github.com/ |
30 |
+ libmac64+=google/pprof/internal/binutils/testdata/lib_mac_64 |
31 |
+ install_name_tool -id "${libmac64}" "${D}${libmac64}" |
32 |
+ fi |
33 |
} |
34 |
|
35 |
diff --git a/dev-lang/go/go-9999.ebuild b/dev-lang/go/go-9999.ebuild |
36 |
index 503bf3c4a12..dd4aa9a0894 100644 |
37 |
--- a/dev-lang/go/go-9999.ebuild |
38 |
+++ b/dev-lang/go/go-9999.ebuild |
39 |
@@ -1,4 +1,4 @@ |
40 |
-# Copyright 1999-2018 Gentoo Foundation |
41 |
+# Copyright 1999-2018 Gentoo Authors |
42 |
# Distributed under the terms of the GNU General Public License v2 |
43 |
|
44 |
EAPI=6 |
45 |
@@ -225,4 +225,12 @@ src_install() |
46 |
dosym ../lib/go/${bin_path}/${f} /usr/bin/${f} |
47 |
done |
48 |
einstalldocs |
49 |
+ |
50 |
+ if [[ ${CHOST} == *-darwin* ]] ; then |
51 |
+ # fix install_name for test object (binutils_test) on Darwin, it |
52 |
+ # is never used in real circumstances |
53 |
+ local libmac64="${EPREFIX}"/usr/lib/go/src/cmd/vendor/github.com/ |
54 |
+ libmac64+=google/pprof/internal/binutils/testdata/lib_mac_64 |
55 |
+ install_name_tool -id "${libmac64}" "${D}${libmac64}" |
56 |
+ fi |
57 |
} |