[BACK]Return to patch-src_cmd_dist_util.go CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / lang / go115 / patches

File: [cvs.NetBSD.org] / pkgsrc / lang / go115 / patches / Attic / patch-src_cmd_dist_util.go (download)

Revision 1.1, Fri Aug 21 19:50:22 2020 UTC (3 years, 7 months ago) by bsiegert
Branch: MAIN
CVS Tags: pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3

Add a package for Go 1.15.

The latest Go release, version 1.15, arrives six months after Go 1.14. Most of
its changes are in the implementation of the toolchain, runtime, and libraries.
As always, the release maintains the Go 1 promise of compatibility. We expect
almost all Go programs to continue to compile and run as before.

Go 1.15 includes substantial improvements to the linker, improves allocation
for small objects at high core counts, and deprecates X.509 CommonName. GOPROXY
now supports skipping proxies that return errors and a new embedded tzdata
package has been added.

There are no changes to the language.

$NetBSD: patch-src_cmd_dist_util.go,v 1.1 2020/08/21 19:50:22 bsiegert Exp $

--- src/cmd/dist/util.go.orig	2017-02-16 19:12:22.000000000 +0000
+++ src/cmd/dist/util.go
@@ -531,6 +531,11 @@ func xgetgoarm() string {
 		// sense to auto-detect the setting.
 		return "7"
 	}
+	if goos == "netbsd" {
+		// NetBSD go/arm support only earmv6hf or earmv7hf now.
+		// Any armv5 (or before) devices cannot work.
+		return "6"
+	}
 	if gohostarch != "arm" || goos != gohostos {
 		// Conservative default for cross-compilation.
 		return "5"