Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/go/
Date: Thu, 28 Apr 2016 18:32:22
Message-Id: 1461867955.513cdb5d7b589bdb2d5d9fc4c0f7ce2606854328.williamh@gentoo
1 commit: 513cdb5d7b589bdb2d5d9fc4c0f7ce2606854328
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 28 18:25:28 2016 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 28 18:25:55 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=513cdb5d
7
8 dev-lang/go: sync live ebuild
9
10 Package-Manager: portage-2.2.26
11
12 dev-lang/go/go-9999.ebuild | 10 +++++++---
13 1 file changed, 7 insertions(+), 3 deletions(-)
14
15 diff --git a/dev-lang/go/go-9999.ebuild b/dev-lang/go/go-9999.ebuild
16 index 85536d0..88dace6 100644
17 --- a/dev-lang/go/go-9999.ebuild
18 +++ b/dev-lang/go/go-9999.ebuild
19 @@ -24,7 +24,10 @@ kernel_linux? (
20 amd64? ( ${BOOTSTRAP_DIST}/go-linux-amd64-bootstrap.tbz )
21 arm? ( ${BOOTSTRAP_DIST}/go-linux-arm-bootstrap.tbz )
22 arm64? ( ${BOOTSTRAP_DIST}/go-linux-arm64-bootstrap.tbz )
23 - ppc64? ( ${BOOTSTRAP_DIST}/go-linux-ppc64-bootstrap.tbz )
24 + ppc64? (
25 + ${BOOTSTRAP_DIST}/go-linux-ppc64-bootstrap.tbz
26 + ${BOOTSTRAP_DIST}/go-linux-ppc64le-bootstrap.tbz
27 + )
28 x86? ( ${BOOTSTRAP_DIST}/go-linux-386-bootstrap-1.tbz )
29 )
30 kernel_SunOS? (
31 @@ -38,8 +41,6 @@ if [[ ${PV} = 9999 ]]; then
32 inherit git-r3
33 else
34 SRC_URI+="https://storage.googleapis.com/golang/go${MY_PV}.src.tar.gz"
35 - # go-bootstrap-1.4 only supports go on amd64, arm and x86 architectures.
36 - # Allowing other bootstrap options would enable arm64 and ppc64 builds.
37 case ${PV} in
38 *9999*|*_rc*) ;;
39 *)
40 @@ -87,6 +88,8 @@ go_arch()
41 case "${portage_arch}" in
42 x86) echo 386;;
43 x64-*) echo amd64;;
44 + ppc64)
45 + [[ "$(tc-endian)" = big ]] && echo ppc64 || echo ppc64le ;;
46 *) echo "${portage_arch}";;
47 esac
48 }
49 @@ -174,6 +177,7 @@ src_compile()
50 if [[ ${ARCH} == arm ]]; then
51 export GOARM=$(go_arm)
52 fi
53 + elog "GOROOT_BOOTSTRAP is ${GOROOT_BOOTSTRAP}"
54
55 cd src
56 ./make.bash || die "build failed"