pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/go Update Go to 1.10. Via wip.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d30174fbb4a6
branches:  trunk
changeset: 376561:d30174fbb4a6
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Sun Mar 04 12:54:06 2018 +0000

description:
Update Go to 1.10. Via wip.

Full release notes at https://golang.org/doc/go1.10.

The latest Go release, version 1.10, arrives six months after Go 1.9. 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.

This release improves caching of built packages, adds caching of successful
test results, runs vet automatically during tests, and permits passing string
values directly between Go and C using cgo. A new compiler option whitelist may
cause unexpected invalid flag errors in code that built successfully with older
releases.


As announced in the Go 1.9 release notes, Go 1.10 now requires FreeBSD 10.3 or
later; support for FreeBSD 9.3 has been removed.

Go now runs on NetBSD again but requires the unreleased NetBSD 8. Only GOARCH
amd64 and 386 have been fixed. The arm port is still broken.

On 32-bit MIPS systems, the new environment variable settings GOMIPS=hardfloat
(the default) and GOMIPS=softfloat select whether to use hardware instructions
or software emulation for floating-point computations.

Go 1.10 is the last release that will run on OpenBSD 6.0. Go 1.11 will require
OpenBSD 6.2.

Go 1.10 is the last release that will run on OS X 10.8 Mountain Lion or OS X
10.9 Mavericks. Go 1.11 will require OS X 10.10 Yosemite or later.

Go 1.10 is the last release that will run on Windows XP or Windows Vista. Go
1.11 will require Windows 7 or later.

diffstat:

 lang/go/Makefile                                      |   21 +-
 lang/go/PLIST                                         |  673 +++++++++++++++--
 lang/go/PLIST.OpenBSD                                 |    2 +
 lang/go/distinfo                                      |   13 +-
 lang/go/patches/patch-src_cmd_link_internal_ld_elf.go |   89 +-
 lang/go/patches/patch-src_runtime_rt0__netbsd__arm.s  |   13 -
 lang/go/version.mk                                    |    4 +-
 7 files changed, 658 insertions(+), 157 deletions(-)

diffs (truncated from 2158 to 300 lines):

diff -r 2c80f04c7b81 -r d30174fbb4a6 lang/go/Makefile
--- a/lang/go/Makefile  Sun Mar 04 12:12:40 2018 +0000
+++ b/lang/go/Makefile  Sun Mar 04 12:54:06 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.61 2018/01/30 17:05:21 jperkin Exp $
+# $NetBSD: Makefile,v 1.62 2018/03/04 12:54:06 bsiegert Exp $
 
 .include "version.mk"
 
@@ -23,21 +23,17 @@
 TMPDIR?=       /tmp
 BUILDLINK_PASSTHRU_DIRS+= ${TMPDIR}
 
-GOROOT_FINAL=  ${PREFIX}/go
-INSTALLATION_DIRS= bin
+GOROOT_FINAL=          ${PREFIX}/go
+INSTALLATION_DIRS=     bin
 
 REPLACE_BASH+= doc/articles/wiki/test.bash
 REPLACE_BASH+= doc/codewalk/run
 REPLACE_BASH+= lib/time/update.bash
 REPLACE_BASH+= misc/arm/a
 REPLACE_BASH+= misc/benchcmp
-REPLACE_BASH+= misc/cgo/errors/test.bash
 REPLACE_BASH+= misc/cgo/fortran/test.bash
-REPLACE_BASH+= misc/cgo/testcshared/test.bash
 REPLACE_BASH+= misc/cgo/testgodefs/test.bash
 REPLACE_BASH+= misc/cgo/testplugin/test.bash
-REPLACE_BASH+= misc/cgo/testsanitizers/test.bash
-REPLACE_BASH+= misc/cgo/testplugin/test.bash
 REPLACE_BASH+= misc/nacl/go_nacl_386_exec
 REPLACE_BASH+= misc/nacl/go_nacl_amd64p32_exec
 REPLACE_BASH+= misc/nacl/go_nacl_arm_exec
@@ -46,8 +42,8 @@
 REPLACE_BASH+= src/bootstrap.bash
 REPLACE_BASH+= src/buildall.bash
 REPLACE_BASH+= src/clean.bash
-REPLACE_BASH+= src/cmd/dist/mkdeps.bash
 REPLACE_BASH+= src/cmd/go/mkalldocs.sh
+REPLACE_BASH+= src/cmd/vendor/github.com/google/pprof/test.sh
 REPLACE_BASH+= src/internal/trace/mkcanned.bash
 REPLACE_BASH+= src/iostest.bash
 REPLACE_BASH+= src/make.bash
@@ -71,6 +67,9 @@
 CHECK_RELRO_SKIP+=             go/pkg/bootstrap/bin/asm
 CHECK_RELRO_SKIP+=             go/pkg/bootstrap/bin/compile
 CHECK_RELRO_SKIP+=             go/pkg/bootstrap/bin/link
+# also does not support SSP at this time
+CHECK_SSP_SKIP=                        ${CHECK_RELRO_SKIP}
+CHECK_SSP_SKIP+=               go/pkg/bootstrap/bin/cgo
 
 # uses /bin/rc (for Plan 9)
 CHECK_INTERPRETER_SKIP+=       go/include/plan9/mklibc.rc
@@ -84,7 +83,11 @@
 
 .include "../../mk/bsd.prefs.mk"
 
-PLIST_VARS+=   route
+PLIST_VARS+=   pty route
+
+.if ${OPSYS} != "SunOS"
+PLIST.pty=     yes
+.endif
 
 .if ${OPSYS} != "Linux" && ${OPSYS} != "SunOS"
 PLIST.route=   yes
diff -r 2c80f04c7b81 -r d30174fbb4a6 lang/go/PLIST
--- a/lang/go/PLIST     Sun Mar 04 12:12:40 2018 +0000
+++ b/lang/go/PLIST     Sun Mar 04 12:54:06 2018 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.38 2018/02/08 19:32:17 bsiegert Exp $
+@comment $NetBSD: PLIST,v 1.39 2018/03/04 12:54:06 bsiegert Exp $
 bin/go
 bin/gofmt
 go/AUTHORS
@@ -11,6 +11,7 @@
 go/api/README
 go/api/except.txt
 go/api/go1.1.txt
+go/api/go1.10.txt
 go/api/go1.2.txt
 go/api/go1.3.txt
 go/api/go1.4.txt
@@ -68,12 +69,9 @@
 go/doc/devel/pre_go1.html
 go/doc/devel/release.html
 go/doc/devel/weekly.html
+go/doc/diagnostics.html
 go/doc/docs.html
 go/doc/editors.html
-go/doc/editors/go-plus.png
-go/doc/editors/gogland.png
-go/doc/editors/vimgo.png
-go/doc/editors/vscodego.png
 go/doc/effective_go.html
 go/doc/gccgo_contribute.html
 go/doc/gccgo_install.html
@@ -81,6 +79,7 @@
 go/doc/go-logo-blue.png
 go/doc/go-logo-white.png
 go/doc/go1.1.html
+go/doc/go1.10.html
 go/doc/go1.2.html
 go/doc/go1.3.html
 go/doc/go1.4.html
@@ -184,25 +183,28 @@
 go/misc/android/go_android_exec.go
 go/misc/arm/a
 go/misc/benchcmp
-go/misc/cgo/errors/err1.go
-go/misc/cgo/errors/err2.go
-go/misc/cgo/errors/err3.go
-go/misc/cgo/errors/issue11097a.go
-go/misc/cgo/errors/issue11097b.go
-go/misc/cgo/errors/issue13129.go
-go/misc/cgo/errors/issue13423.go
-go/misc/cgo/errors/issue13635.go
-go/misc/cgo/errors/issue13830.go
-go/misc/cgo/errors/issue14669.go
-go/misc/cgo/errors/issue16116.go
-go/misc/cgo/errors/issue16591.go
-go/misc/cgo/errors/issue18452.go
-go/misc/cgo/errors/issue18889.go
-go/misc/cgo/errors/issue7757.go
-go/misc/cgo/errors/issue8442.go
-go/misc/cgo/errors/malloc.go
-go/misc/cgo/errors/ptr.go
-go/misc/cgo/errors/test.bash
+go/misc/cgo/errors/errors_test.go
+go/misc/cgo/errors/ptr_test.go
+go/misc/cgo/errors/src/err1.go
+go/misc/cgo/errors/src/err2.go
+go/misc/cgo/errors/src/err3.go
+go/misc/cgo/errors/src/err4.go
+go/misc/cgo/errors/src/issue11097a.go
+go/misc/cgo/errors/src/issue11097b.go
+go/misc/cgo/errors/src/issue13129.go
+go/misc/cgo/errors/src/issue13423.go
+go/misc/cgo/errors/src/issue13467.go
+go/misc/cgo/errors/src/issue13635.go
+go/misc/cgo/errors/src/issue13830.go
+go/misc/cgo/errors/src/issue14669.go
+go/misc/cgo/errors/src/issue16116.go
+go/misc/cgo/errors/src/issue16591.go
+go/misc/cgo/errors/src/issue18452.go
+go/misc/cgo/errors/src/issue18889.go
+go/misc/cgo/errors/src/issue7757.go
+go/misc/cgo/errors/src/issue8442.go
+go/misc/cgo/errors/src/long_double_size.go
+go/misc/cgo/errors/src/malloc.go
 go/misc/cgo/fortran/answer.f90
 go/misc/cgo/fortran/fortran.go
 go/misc/cgo/fortran/fortran_test.go
@@ -275,8 +277,14 @@
 go/misc/cgo/test/issue20266.go
 go/misc/cgo/test/issue20266/issue20266.h
 go/misc/cgo/test/issue20369.go
+go/misc/cgo/test/issue20910.c
+go/misc/cgo/test/issue20910.go
 go/misc/cgo/test/issue21668.go
 go/misc/cgo/test/issue21708.go
+go/misc/cgo/test/issue21809.go
+go/misc/cgo/test/issue21897.go
+go/misc/cgo/test/issue21897b.go
+go/misc/cgo/test/issue22958.go
 go/misc/cgo/test/issue2462.go
 go/misc/cgo/test/issue3250.go
 go/misc/cgo/test/issue3250w.go
@@ -316,6 +324,9 @@
 go/misc/cgo/test/issue6612.go
 go/misc/cgo/test/issue6833.go
 go/misc/cgo/test/issue6833_c.c
+go/misc/cgo/test/issue6907.go
+go/misc/cgo/test/issue6907export.go
+go/misc/cgo/test/issue6907export_c.c
 go/misc/cgo/test/issue6997_linux.c
 go/misc/cgo/test/issue6997_linux.go
 go/misc/cgo/test/issue7234_test.go
@@ -363,6 +374,7 @@
 go/misc/cgo/test/sigaltstack.go
 go/misc/cgo/test/sigprocmask.c
 go/misc/cgo/test/sigprocmask.go
+go/misc/cgo/test/test22906.go
 go/misc/cgo/testasan/main.go
 go/misc/cgo/testcarchive/carchive_test.go
 go/misc/cgo/testcarchive/main.c
@@ -379,6 +391,7 @@
 go/misc/cgo/testcarchive/src/libgo4/libgo4.go
 go/misc/cgo/testcarchive/src/libgo6/sigprof.go
 go/misc/cgo/testcarchive/src/p/p.go
+go/misc/cgo/testcshared/cshared_test.go
 go/misc/cgo/testcshared/main0.c
 go/misc/cgo/testcshared/main1.c
 go/misc/cgo/testcshared/main2.c
@@ -392,7 +405,6 @@
 go/misc/cgo/testcshared/src/libgo4/libgo4.go
 go/misc/cgo/testcshared/src/libgo5/libgo5.go
 go/misc/cgo/testcshared/src/p/p.go
-go/misc/cgo/testcshared/test.bash
 go/misc/cgo/testgodefs/anonunion.go
 go/misc/cgo/testgodefs/issue8478.go
 go/misc/cgo/testgodefs/main.go
@@ -405,38 +417,52 @@
 go/misc/cgo/testplugin/src/iface_a/a.go
 go/misc/cgo/testplugin/src/iface_b/b.go
 go/misc/cgo/testplugin/src/iface_i/i.go
+go/misc/cgo/testplugin/src/issue18584/main.go
+go/misc/cgo/testplugin/src/issue18584/plugin.go
 go/misc/cgo/testplugin/src/issue18676/dynamodbstreamsevt/definition.go
 go/misc/cgo/testplugin/src/issue18676/main.go
 go/misc/cgo/testplugin/src/issue18676/plugin.go
+go/misc/cgo/testplugin/src/issue19418/main.go
+go/misc/cgo/testplugin/src/issue19418/plugin.go
+go/misc/cgo/testplugin/src/issue19529/plugin.go
 go/misc/cgo/testplugin/src/issue19534/main.go
 go/misc/cgo/testplugin/src/issue19534/plugin.go
+go/misc/cgo/testplugin/src/issue22175/main.go
+go/misc/cgo/testplugin/src/issue22175/plugin1.go
+go/misc/cgo/testplugin/src/issue22175/plugin2.go
+go/misc/cgo/testplugin/src/issue22295.pkg/main.go
+go/misc/cgo/testplugin/src/issue22295.pkg/plugin.go
 go/misc/cgo/testplugin/src/plugin1/plugin1.go
 go/misc/cgo/testplugin/src/plugin2/plugin2.go
 go/misc/cgo/testplugin/src/sub/plugin1/plugin1.go
 go/misc/cgo/testplugin/test.bash
-go/misc/cgo/testplugin/unnamed1.go
-go/misc/cgo/testplugin/unnamed2.go
-go/misc/cgo/testsanitizers/msan.go
-go/misc/cgo/testsanitizers/msan2.go
-go/misc/cgo/testsanitizers/msan3.go
-go/misc/cgo/testsanitizers/msan4.go
-go/misc/cgo/testsanitizers/msan5.go
-go/misc/cgo/testsanitizers/msan_fail.go
-go/misc/cgo/testsanitizers/msan_shared.go
-go/misc/cgo/testsanitizers/test.bash
-go/misc/cgo/testsanitizers/tsan.go
-go/misc/cgo/testsanitizers/tsan10.go
-go/misc/cgo/testsanitizers/tsan11.go
-go/misc/cgo/testsanitizers/tsan12.go
-go/misc/cgo/testsanitizers/tsan2.go
-go/misc/cgo/testsanitizers/tsan3.go
-go/misc/cgo/testsanitizers/tsan4.go
-go/misc/cgo/testsanitizers/tsan5.go
-go/misc/cgo/testsanitizers/tsan6.go
-go/misc/cgo/testsanitizers/tsan7.go
-go/misc/cgo/testsanitizers/tsan8.go
-go/misc/cgo/testsanitizers/tsan9.go
-go/misc/cgo/testsanitizers/tsan_shared.go
+go/misc/cgo/testplugin/unnamed1/main.go
+go/misc/cgo/testplugin/unnamed2/main.go
+go/misc/cgo/testsanitizers/cc_test.go
+go/misc/cgo/testsanitizers/cshared_test.go
+go/misc/cgo/testsanitizers/msan_test.go
+go/misc/cgo/testsanitizers/src/msan.go
+go/misc/cgo/testsanitizers/src/msan2.go
+go/misc/cgo/testsanitizers/src/msan2_cmsan.go
+go/misc/cgo/testsanitizers/src/msan3.go
+go/misc/cgo/testsanitizers/src/msan4.go
+go/misc/cgo/testsanitizers/src/msan5.go
+go/misc/cgo/testsanitizers/src/msan_fail.go
+go/misc/cgo/testsanitizers/src/msan_shared.go
+go/misc/cgo/testsanitizers/src/tsan.go
+go/misc/cgo/testsanitizers/src/tsan10.go
+go/misc/cgo/testsanitizers/src/tsan11.go
+go/misc/cgo/testsanitizers/src/tsan12.go
+go/misc/cgo/testsanitizers/src/tsan2.go
+go/misc/cgo/testsanitizers/src/tsan3.go
+go/misc/cgo/testsanitizers/src/tsan4.go
+go/misc/cgo/testsanitizers/src/tsan5.go
+go/misc/cgo/testsanitizers/src/tsan6.go
+go/misc/cgo/testsanitizers/src/tsan7.go
+go/misc/cgo/testsanitizers/src/tsan8.go
+go/misc/cgo/testsanitizers/src/tsan9.go
+go/misc/cgo/testsanitizers/src/tsan_shared.go
+go/misc/cgo/testsanitizers/tsan_test.go
 go/misc/cgo/testshared/shared_test.go
 go/misc/cgo/testshared/src/dep2/dep2.go
 go/misc/cgo/testshared/src/dep3/dep3.go
@@ -450,6 +476,8 @@
 go/misc/cgo/testshared/src/exe3/exe3.go
 go/misc/cgo/testshared/src/execgo/exe.go
 go/misc/cgo/testshared/src/explicit/explicit.go
+go/misc/cgo/testshared/src/global/main.go
+go/misc/cgo/testshared/src/globallib/global.go
 go/misc/cgo/testshared/src/iface/main.go
 go/misc/cgo/testshared/src/iface_a/a.go
 go/misc/cgo/testshared/src/iface_b/b.go
@@ -502,11 +530,13 @@
 go/misc/swig/callback/callback.h
 go/misc/swig/callback/callback.swigcxx
 go/misc/swig/callback/callback_test.go
+go/misc/swig/stdio/file.go
 go/misc/swig/stdio/file.swig
 go/misc/swig/stdio/file_test.go
 go/misc/trace/README.md
-go/misc/trace/trace_viewer_lean.html
+go/misc/trace/trace_viewer_full.html
 go/pkg/bootstrap/bin/asm
+go/pkg/bootstrap/bin/cgo
 go/pkg/bootstrap/bin/compile



Home | Main Index | Thread Index | Old Index