diff options
author | Fabian Groffen <grobian@gentoo.org> | 2018-12-06 11:16:18 +0100 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2018-12-06 11:16:34 +0100 |
commit | 8a58d437cd9ae4f427b5f0bfc7a65e16d5ba23b9 (patch) | |
tree | 7878f85bbf0dce9b87cbe61c84ffd1d8496d6219 /dev-lang | |
parent | dev-libs/libfilezilla: switch SRC_URI to https (diff) | |
download | gentoo-8a58d437cd9ae4f427b5f0bfc7a65e16d5ba23b9.tar.gz gentoo-8a58d437cd9ae4f427b5f0bfc7a65e16d5ba23b9.tar.bz2 gentoo-8a58d437cd9ae4f427b5f0bfc7a65e16d5ba23b9.zip |
dev-lang/go: fix installation on Darwin
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/go/go-1.11.2.ebuild | 8 | ||||
-rw-r--r-- | dev-lang/go/go-9999.ebuild | 10 |
2 files changed, 17 insertions, 1 deletions
diff --git a/dev-lang/go/go-1.11.2.ebuild b/dev-lang/go/go-1.11.2.ebuild index 3eecca0eb622..58aa8cbd90dd 100644 --- a/dev-lang/go/go-1.11.2.ebuild +++ b/dev-lang/go/go-1.11.2.ebuild @@ -225,4 +225,12 @@ src_install() dosym ../lib/go/${bin_path}/${f} /usr/bin/${f} done einstalldocs + + if [[ ${CHOST} == *-darwin* ]] ; then + # fix install_name for test object (binutils_test) on Darwin, it + # is never used in real circumstances + local libmac64="${EPREFIX}"/usr/lib/go/src/cmd/vendor/github.com/ + libmac64+=google/pprof/internal/binutils/testdata/lib_mac_64 + install_name_tool -id "${libmac64}" "${D}${libmac64}" + fi } diff --git a/dev-lang/go/go-9999.ebuild b/dev-lang/go/go-9999.ebuild index 503bf3c4a123..dd4aa9a0894b 100644 --- a/dev-lang/go/go-9999.ebuild +++ b/dev-lang/go/go-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2018 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -225,4 +225,12 @@ src_install() dosym ../lib/go/${bin_path}/${f} /usr/bin/${f} done einstalldocs + + if [[ ${CHOST} == *-darwin* ]] ; then + # fix install_name for test object (binutils_test) on Darwin, it + # is never used in real circumstances + local libmac64="${EPREFIX}"/usr/lib/go/src/cmd/vendor/github.com/ + libmac64+=google/pprof/internal/binutils/testdata/lib_mac_64 + install_name_tool -id "${libmac64}" "${D}${libmac64}" + fi } |