Gentoo Archives: gentoo-dev

From: Leno Hou <lenohou@×××××.com>
To: gentoo-dev@l.g.o
Cc: Leno Hou <lenohou@×××××.com>
Subject: [gentoo-dev][PATCH] dev-lang/go-1.6.2: enable go-bootstrap tarball for ppc64le #581278
Date: Thu, 28 Apr 2016 13:28:37
Message-Id: 1461850082-21799-1-git-send-email-lenohou@gmail.com
1 There is a bootstrap tarball for ppc64le now, and we have bi-arch
2 support for ppc64 platform. It's means that we can build go-1.6.2
3 without gccgo
4
5 Signed-off-by: Leno Hou <lenohou@×××××.com>
6 ---
7 dev-lang/go/go-1.6.2.ebuild | 10 ++++++++++
8 1 file changed, 10 insertions(+)
9
10 diff --git a/dev-lang/go/go-1.6.2.ebuild b/dev-lang/go/go-1.6.2.ebuild
11 index 57ca2c7..7408cd2 100644
12 --- a/dev-lang/go/go-1.6.2.ebuild
13 +++ b/dev-lang/go/go-1.6.2.ebuild
14 @@ -88,6 +88,16 @@ go_arch()
15 case "${portage_arch}" in
16 x86) echo 386;;
17 x64-*) echo amd64;;
18 + ppc64)
19 + case "$(tc-endian $@)" in
20 + little)
21 + echo ppc64le
22 + ;;
23 + big)
24 + echo ppc64
25 + ;;
26 + esac
27 + ;;
28 *) echo "${portage_arch}";;
29 esac
30 }
31 --
32 2.7.3

Replies