Re: [gentoo-dev][PATCH] dev-lang/go-1.6.2: enable go-bootstrap tarball for ppc64le #581278

2016-04-30 Thread Mike Frysinger
On 28 Apr 2016 13:28, Leno Hou wrote:
> --- a/dev-lang/go/go-1.6.2.ebuild
> +++ b/dev-lang/go/go-1.6.2.ebuild
> @@ -88,6 +88,16 @@ go_arch()
>   case "${portage_arch}" in
>   x86)echo 386;;
>   x64-*)  echo amd64;;
> + ppc64)
> + case "$(tc-endian $@)" in

the quote nesting is incorrect.  you want:
case $(tc-endian "$@") in

> + little)
> + echo ppc64le
> + ;;
> + big)
> + echo ppc64
> + ;;
> + esac
> + ;;

up to William, but seems like a one liner would be fine:
[[ $(tc-endian "$@") == "big" ]] && echo ppc64 || echo ppc64le
-mike


signature.asc
Description: Digital signature


[gentoo-dev][PATCH] dev-lang/go-1.6.2: enable go-bootstrap tarball for ppc64le #581278

2016-04-28 Thread Leno Hou
There is a bootstrap tarball for ppc64le now, and  we have bi-arch
support for ppc64 platform. It's means that we can build go-1.6.2
without gccgo

Signed-off-by: Leno Hou 
---
 dev-lang/go/go-1.6.2.ebuild | 10 ++
 1 file changed, 10 insertions(+)

diff --git a/dev-lang/go/go-1.6.2.ebuild b/dev-lang/go/go-1.6.2.ebuild
index 57ca2c7..7408cd2 100644
--- a/dev-lang/go/go-1.6.2.ebuild
+++ b/dev-lang/go/go-1.6.2.ebuild
@@ -88,6 +88,16 @@ go_arch()
case "${portage_arch}" in
x86)echo 386;;
x64-*)  echo amd64;;
+   ppc64)
+   case "$(tc-endian $@)" in
+   little)
+   echo ppc64le
+   ;;
+   big)
+   echo ppc64
+   ;;
+   esac
+   ;;
*)  echo "${portage_arch}";;
esac
 }
-- 
2.7.3