Subject: [alpine-aports] [PATCH] community/go: upgrade to 1.8

From: Keegan Carruthers-Smith <[email-masked]>
Date: Sun, 19 Mar 2017 21:02:18 +0200

---
 community/go/APKBUILD                    | 10 +++++-----
 community/go/default-buildmode-pie.patch |  2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/community/go/APKBUILD b/community/go/APKBUILD
index afdaa0cbc5..ef56a89f17 100644
--- a/community/go/APKBUILD
+++ b/community/go/APKBUILD
@@ -1,9 +1,9 @@
 # Contributor: Sören Tempel <[email-masked]>
 # Maintainer: Eivind Uggedal <[email-masked]>
 pkgname=go
-pkgver=1.7.4
+pkgver=1.8
 # This should be the latest commit on the corresponding release branch
-_toolsver="26c35b4dcf6dfcb924e26828ed9f4d028c5ce05a"
+_toolsver="5682db0e919ed9cfc6f52ac32e170511a106eb3b"
 pkgrel=2
 pkgdesc="Go programming language compiler"
 url="http://www.golang.org/"
@@ -164,6 +164,6 @@ _crosspkg() {
 		"$subpkgdir"/usr/lib/go/pkg/ || return 1
 }
 
-sha512sums="dc9950c3ea7100e536ad58fd93505d584276b7c50d4b8fe2ba7f20fd043dcf0d315b735c48945302055e91517594cc2b0061ccec9478a8ab48f1f2836c20afb3  go1.7.4.src.tar.gz
-553be713d03f1a53605c41f67822c75d86dacf9ccba9f2329e111b4178287aee1ddccd3ccc4ab76b9dbcff34f11aeddebce5deac47e715ea75d032bc9ab0355c  go-tools-1.7.4.tar.gz
-13cd386c38875b951da4057586007f3c67503dc79ddf57befbf763af85ec2cd2a2e6b00614450c179c93f1f8747ee7456ee412adccd08a5f115b33812598a148  default-buildmode-pie.patch"
+sha512sums="343fca47f250278b22df1c1cd92cce91e01009043d05d8ccce095e4386fa0f5ca8ccaa58232635332c7288ceca9d2a240f774f8bb3b08129a681a582cba60248  go-tools-1.8.tar.gz
+9742dd8ec0364793e44a55207238c7339236a4da3a6e7cbb3b4eca45e957c7c0cb725e7d7430b9a04630285468d32dac686facfc57f3f58885b80bbb3d333ada  go1.8.src.tar.gz
+cd52fd9e742cac2fee5802101c54d100ad2ed56760c030a9a2e0ab6418ca2f7c8d360d6516080fd12e4a0b8c2ddc87227966a539295e27abd64bb0e7d8456813  default-buildmode-pie.patch"
diff --git a/community/go/default-buildmode-pie.patch b/community/go/default-buildmode-pie.patch
index 034692a098..b6c86dd821 100644
--- a/community/go/default-buildmode-pie.patch
+++ b/community/go/default-buildmode-pie.patch
@@ -1,6 +1,6 @@
 --- go/src/cmd/go/build.go.orig	2016-07-07 11:52:03.315793199 +0300
 +++ go/src/cmd/go/build.go	2016-04-20 02:50:07.000000000 +0300
-@@ -363,7 +363,8 @@
+@@ -365,7 +365,8 @@
  		ldBuildmode = "c-shared"
  	case "default":
  		switch platform {
-- 
2.11.1

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---

---

From: Keegan Carruthers-Smith <[email-masked]>
Date: Sun, 19 Mar 2017 21:48:12 +0200

Ignore this patch, when I tried `abuild -r` it failed with

2017/03/19 19:37:26 cannot handle R_TLS_IE (sym
sync/atomic.(*Value).Store) when linking internally
go tool dist: FAILED: /tmp/go2/src/go/pkg/tool/linux_amd64/link -o
/tmp/go2/src/go/pkg/tool/linux_amd64/go_bootstrap
/tmp/go-tool-dist-830760390/cmd/go/_go_.a: exit status 1

---