public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev][PATCH V1] dev-lang/go-1.6.2: enable go-bootstrap tarball for ppc64le #581278
@ 2016-04-28  5:42 Leno Hou
  2016-04-28  5:49 ` Leno Hou
  2016-04-28 13:28 ` [gentoo-dev][PATCH] " Leno Hou
  0 siblings, 2 replies; 4+ messages in thread
From: Leno Hou @ 2016-04-28  5:42 UTC (permalink / raw
  To: gentoo-dev; +Cc: Leno Hou, William Hubbs

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 <lenohou@gmail.com>
CC: William Hubbs <williamh@gentoo.org>
---
 dev-lang/go/go-1.6.2.ebuild | 1 +
 1 file changed, 1 insertion(+)

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



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [gentoo-dev][PATCH V1] dev-lang/go-1.6.2: enable go-bootstrap tarball for ppc64le #581278
  2016-04-28  5:42 [gentoo-dev][PATCH V1] dev-lang/go-1.6.2: enable go-bootstrap tarball for ppc64le #581278 Leno Hou
@ 2016-04-28  5:49 ` Leno Hou
  2016-04-28 13:28 ` [gentoo-dev][PATCH] " Leno Hou
  1 sibling, 0 replies; 4+ messages in thread
From: Leno Hou @ 2016-04-28  5:49 UTC (permalink / raw
  To: gentoo-dev; +Cc: Leno Hou, William Hubbs

[-- Attachment #1: Type: text/plain, Size: 944 bytes --]

Please ignore this due to the logic and See PATCH V2

On Thu, Apr 28, 2016 at 1:42 PM, Leno Hou <lenohou@gmail.com> wrote:

> 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 <lenohou@gmail.com>
> CC: William Hubbs <williamh@gentoo.org>
> ---
>  dev-lang/go/go-1.6.2.ebuild | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/dev-lang/go/go-1.6.2.ebuild b/dev-lang/go/go-1.6.2.ebuild
> index 57ca2c7..4babafe 100644
> --- a/dev-lang/go/go-1.6.2.ebuild
> +++ b/dev-lang/go/go-1.6.2.ebuild
> @@ -88,6 +88,7 @@ go_arch()
>         case "${portage_arch}" in
>                 x86)    echo 386;;
>                 x64-*)  echo amd64;;
> +               ppc64)  [[ "$(tc-endian $@)" == "little" ]] && echo
> ppc64le;;
>                 *)              echo "${portage_arch}";;
>         esac
>  }
> --
> 2.7.3
>
>

[-- Attachment #2: Type: text/html, Size: 1572 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gentoo-dev][PATCH] dev-lang/go-1.6.2: enable go-bootstrap tarball for ppc64le #581278
@ 2016-04-28 13:28 ` Leno Hou
  2016-04-30 15:33   ` Mike Frysinger
  0 siblings, 1 reply; 4+ messages in thread
From: Leno Hou @ 2016-04-28 13:28 UTC (permalink / raw
  To: gentoo-dev; +Cc: 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 <lenohou@gmail.com>
---
 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



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [gentoo-dev][PATCH] dev-lang/go-1.6.2: enable go-bootstrap tarball for ppc64le #581278
  2016-04-28 13:28 ` [gentoo-dev][PATCH] " Leno Hou
@ 2016-04-30 15:33   ` Mike Frysinger
  0 siblings, 0 replies; 4+ messages in thread
From: Mike Frysinger @ 2016-04-30 15:33 UTC (permalink / raw
  To: gentoo-dev; +Cc: Leno Hou

[-- Attachment #1: Type: text/plain, Size: 570 bytes --]

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

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-04-30 15:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-28  5:42 [gentoo-dev][PATCH V1] dev-lang/go-1.6.2: enable go-bootstrap tarball for ppc64le #581278 Leno Hou
2016-04-28  5:49 ` Leno Hou
2016-04-28 13:28 ` [gentoo-dev][PATCH] " Leno Hou
2016-04-30 15:33   ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox