pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang Add Go 1.11 as lang/go111.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e338ff2cc3fd
branches:  trunk
changeset: 385286:e338ff2cc3fd
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Tue Sep 18 16:22:14 2018 +0000

description:
Add Go 1.11 as lang/go111.

This installs the go tool as go111; all the supporting files go under
$PREFIX/go111, so it does not conflict with other Go versions. Go packages
in pkgsrc do not use it to build yet.

Changes:

There are many changes and improvements to the toolchain, runtime, and
libraries, but two features stand out as being especially exciting: modules
and WebAssembly support.

This release adds preliminary support for a new concept called "modules," an
alternative to GOPATH with integrated support for versioning and package
distribution. Module support is considered experimental, and there are still
a few rough edges to smooth out, so please make liberal use of the issue
tracker.

Go 1.11 also adds an experimental port to WebAssembly (js/wasm). This allows
programmers to compile Go programs to a binary format compatible with four
major web browsers.

diffstat:

 lang/Makefile                                                   |     3 +-
 lang/go/version.mk                                              |     3 +-
 lang/go111/ALTERNATIVES                                         |     2 +
 lang/go111/DESCR                                                |    10 +
 lang/go111/Makefile                                             |   115 +
 lang/go111/PLIST                                                |  9081 ++++++++++
 lang/go111/PLIST.Linux                                          |     2 +
 lang/go111/PLIST.OpenBSD                                        |     2 +
 lang/go111/PLIST.SunOS                                          |     2 +
 lang/go111/distinfo                                             |    12 +
 lang/go111/patches/patch-misc_io_clangwrap.sh                   |    16 +
 lang/go111/patches/patch-src_cmd_dist_util.go                   |    16 +
 lang/go111/patches/patch-src_cmd_link_internal_ld_elf.go        |   104 +
 lang/go111/patches/patch-src_cmd_link_internal_ld_elf.go.orig   |   104 +
 lang/go111/patches/patch-src_crypto_x509_root__bsd.go           |    10 +
 lang/go111/patches/patch-src_runtime_os__netbsd.go              |    21 +
 lang/go111/patches/patch-src_syscall_zsysnum__solaris__amd64.go |    14 +
 17 files changed, 9515 insertions(+), 2 deletions(-)

diffs (truncated from 9603 to 300 lines):

diff -r d6e55920a0df -r e338ff2cc3fd lang/Makefile
--- a/lang/Makefile     Tue Sep 18 16:14:35 2018 +0000
+++ b/lang/Makefile     Tue Sep 18 16:22:14 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.493 2018/09/15 03:08:55 ryoon Exp $
+# $NetBSD: Makefile,v 1.494 2018/09/18 16:22:14 bsiegert Exp $
 #
 
 COMMENT=       Programming languages
@@ -90,6 +90,7 @@
 SUBDIR+=       gnucobol
 SUBDIR+=       go
 SUBDIR+=       go-hcl
+SUBDIR+=       go111
 SUBDIR+=       go14
 SUBDIR+=       go19
 SUBDIR+=       gpc
diff -r d6e55920a0df -r e338ff2cc3fd lang/go/version.mk
--- a/lang/go/version.mk        Tue Sep 18 16:14:35 2018 +0000
+++ b/lang/go/version.mk        Tue Sep 18 16:22:14 2018 +0000
@@ -1,9 +1,10 @@
-# $NetBSD: version.mk,v 1.42 2018/08/27 15:01:09 bsiegert Exp $
+# $NetBSD: version.mk,v 1.43 2018/09/18 16:22:14 bsiegert Exp $
 
 SSP_SUPPORTED= no
 
 .include "../../mk/bsd.prefs.mk"
 
+GO111_VERSION= 1.11
 GO_VERSION=    1.10.4
 GO19_VERSION=  1.9.7
 GO14_VERSION=  1.4.3
diff -r d6e55920a0df -r e338ff2cc3fd lang/go111/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/go111/ALTERNATIVES   Tue Sep 18 16:22:14 2018 +0000
@@ -0,0 +1,2 @@
+bin/go111 @PREFIX@/go111/bin/go
+bin/gofmt111 @PREFIX@/go111/bin/gofmt
diff -r d6e55920a0df -r e338ff2cc3fd lang/go111/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/go111/DESCR  Tue Sep 18 16:22:14 2018 +0000
@@ -0,0 +1,10 @@
+The Go programming language is an open source project to make
+programmers more productive.
+
+Go is expressive, concise, clean, and efficient. Its concurrency
+mechanisms make it easy to write programs that get the most out of
+multicore and networked machines, while its novel type system enables
+flexible and modular program construction. Go compiles quickly to
+machine code yet has the convenience of garbage collection and the power
+of run-time reflection. It's a fast, statically typed, compiled language
+that feels like a dynamically typed, interpreted language.
diff -r d6e55920a0df -r e338ff2cc3fd lang/go111/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/go111/Makefile       Tue Sep 18 16:22:14 2018 +0000
@@ -0,0 +1,115 @@
+# $NetBSD: Makefile,v 1.1 2018/09/18 16:22:14 bsiegert Exp $
+
+.include "../../lang/go/version.mk"
+
+DISTNAME=      go${GO111_VERSION}.src
+PKGNAME=       go111-${GO111_VERSION}
+CATEGORIES=    lang
+MASTER_SITES=  https://storage.googleapis.com/golang/
+EXTRACT_USING= bsdtar
+
+MAINTAINER=    bsiegert%NetBSD.org@localhost
+HOMEPAGE=      http://golang.org/
+COMMENT=       The Go programming language
+LICENSE=       modified-bsd
+
+GOVERSSUFFIX=  111
+WRKSRC=                ${WRKDIR}/go
+USE_TOOLS+=    bash:run perl:run pax
+
+# uses ulimit -T
+# BUILD_DEPENDS+=      bash>=4.2nb3:../../shells/bash
+
+# cgo compiles under TMPDIR
+TMPDIR?=       /tmp
+BUILDLINK_PASSTHRU_DIRS+= ${TMPDIR}
+
+GOROOT_FINAL=          ${PREFIX}/go${GOVERSSUFFIX}
+INSTALLATION_DIRS=     bin go${GOVERSSUFFIX}
+
+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/fortran/test.bash
+REPLACE_BASH+= misc/cgo/testgodefs/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
+REPLACE_BASH+= misc/wasm/go_js_wasm_exec
+REPLACE_BASH+= src/all.bash
+REPLACE_BASH+= src/androidtest.bash
+REPLACE_BASH+= src/bootstrap.bash
+REPLACE_BASH+= src/buildall.bash
+REPLACE_BASH+= src/clean.bash
+REPLACE_BASH+= src/cmd/go/mkalldocs.sh
+REPLACE_BASH+= src/cmd/vendor/github.com/google/pprof/test.sh
+REPLACE_BASH+= src/cmd/vendor/github.com/google/pprof/internal/binutils/testdata/build_mac.sh
+REPLACE_BASH+= src/cmd/vendor/golang.org/x/sys/unix/mkall.sh
+REPLACE_BASH+= src/cmd/vendor/golang.org/x/sys/unix/mkerrors.sh
+REPLACE_BASH+= src/internal/trace/mkcanned.bash
+REPLACE_BASH+= src/iostest.bash
+REPLACE_BASH+= src/make.bash
+REPLACE_BASH+= src/naclmake.bash
+REPLACE_BASH+= src/nacltest.bash
+REPLACE_BASH+= src/race.bash
+REPLACE_BASH+= src/run.bash
+REPLACE_BASH+= src/runtime/mknacl.sh
+REPLACE_BASH+= src/syscall/mkall.sh
+REPLACE_BASH+= src/syscall/mkerrors.sh
+REPLACE_BASH+= src/syscall/mksysnum_plan9.sh
+
+REPLACE_PERL+= src/cmd/vendor/golang.org/x/sys/unix/*.pl
+REPLACE_PERL+= src/net/http/cgi/testdata/test.cgi
+REPLACE_PERL+= src/regexp/syntax/make_perl_groups.pl
+REPLACE_PERL+= src/syscall/*.pl
+REPLACE_PERL+= test/errchk
+
+# uses own linker, which does not support relro on NetBSD
+CHECK_RELRO_SKIP+=             go${GOVERSSUFFIX}/bin/go
+CHECK_RELRO_SKIP+=             go${GOVERSSUFFIX}/bin/gofmt
+CHECK_RELRO_SKIP+=             go${GOVERSSUFFIX}/pkg/bootstrap/bin/asm
+CHECK_RELRO_SKIP+=             go${GOVERSSUFFIX}/pkg/bootstrap/bin/compile
+CHECK_RELRO_SKIP+=             go${GOVERSSUFFIX}/pkg/bootstrap/bin/link
+CHECK_RELRO_SKIP+=             go${GOVERSSUFFIX}/pkg/bootstrap/bin/cgo
+# also does not support SSP at this time
+CHECK_SSP_SKIP=                        ${CHECK_RELRO_SKIP}
+
+# uses /bin/rc (for Plan 9)
+CHECK_INTERPRETER_SKIP+=       go${GOVERSSUFFIX}/include/plan9/mklibc.rc
+CHECK_INTERPRETER_SKIP+=       go${GOVERSSUFFIX}/src/all.rc
+CHECK_INTERPRETER_SKIP+=       go${GOVERSSUFFIX}/src/clean.rc
+CHECK_INTERPRETER_SKIP+=       go${GOVERSSUFFIX}/src/make.rc
+CHECK_INTERPRETER_SKIP+=       go${GOVERSSUFFIX}/src/run.rc
+
+BUILD_DEPENDS+=                go14-1.4*:../../lang/go14
+GOROOT_BOOTSTRAP=      ${PREFIX}/go14
+
+.include "../../mk/bsd.prefs.mk"
+
+PLIST_VARS+=   pty route
+
+.if ${OPSYS} != "SunOS"
+PLIST.pty=     yes
+.endif
+
+.if ${OPSYS} != "Linux" && ${OPSYS} != "SunOS"
+PLIST.route=   yes
+.endif
+
+do-build:
+       cd ${WRKSRC}/src && env GOROOT_BOOTSTRAP=${GOROOT_BOOTSTRAP:Q} GOROOT_FINAL=${GOROOT_FINAL:Q} ${GOOPT} ${BASH} ./make.bash
+# for RELRO build:
+#      cd ${WRKSRC}/src && env GOROOT_BOOTSTRAP=${GOROOT_BOOTSTRAP:Q} GOROOT_FINAL=${GOROOT_FINAL:Q} GO_LDFLAGS="-buildmode=pie" ${GOOPT} ${BASH} ./make.bash
+
+do-install:
+       cd ${WRKSRC} && rm -rf .hgignore .hgtags pkg/obj
+       cd ${WRKSRC} && pax -rw . ${DESTDIR}${PREFIX}/go${GOVERSSUFFIX}
+       find ${DESTDIR}${PREFIX}/go${GOVERSSUFFIX} -name \*.orig -exec rm {} \;
+
+do-test:
+       cd ${WRKSRC}/src && GOROOT=${WRKSRC} PATH=${WRKSRC}/bin:${PATH} ${GOOPT} ${BASH} run.bash --no-rebuild --banner ""
+
+.include "../../mk/bsd.pkg.mk"
diff -r d6e55920a0df -r e338ff2cc3fd lang/go111/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/go111/PLIST  Tue Sep 18 16:22:14 2018 +0000
@@ -0,0 +1,9081 @@
+@comment $NetBSD: PLIST,v 1.1 2018/09/18 16:22:14 bsiegert Exp $
+go111/AUTHORS
+go111/CONTRIBUTING.md
+go111/CONTRIBUTORS
+go111/LICENSE
+go111/PATENTS
+go111/README.md
+go111/VERSION
+go111/api/README
+go111/api/except.txt
+go111/api/go1.1.txt
+go111/api/go1.10.txt
+go111/api/go${PKGVERSION}.txt
+go111/api/go1.2.txt
+go111/api/go1.3.txt
+go111/api/go1.4.txt
+go111/api/go1.5.txt
+go111/api/go1.6.txt
+go111/api/go1.7.txt
+go111/api/go1.8.txt
+go111/api/go1.9.txt
+go111/api/go1.txt
+go111/api/next.txt
+go111/bin/go
+go111/bin/gofmt
+go111/doc/articles/go_command.html
+go111/doc/articles/index.html
+go111/doc/articles/race_detector.html
+go111/doc/articles/wiki/edit.html
+go111/doc/articles/wiki/final-noclosure.go
+go111/doc/articles/wiki/final-noerror.go
+go111/doc/articles/wiki/final-parsetemplate.go
+go111/doc/articles/wiki/final-template.go
+go111/doc/articles/wiki/final-test.patch
+go111/doc/articles/wiki/final.go
+go111/doc/articles/wiki/get.go
+go111/doc/articles/wiki/http-sample.go
+go111/doc/articles/wiki/index.html
+go111/doc/articles/wiki/notemplate.go
+go111/doc/articles/wiki/part1-noerror.go
+go111/doc/articles/wiki/part1.go
+go111/doc/articles/wiki/part2.go
+go111/doc/articles/wiki/part3-errorhandling.go
+go111/doc/articles/wiki/part3.go
+go111/doc/articles/wiki/test.bash
+go111/doc/articles/wiki/test_Test.txt.good
+go111/doc/articles/wiki/test_edit.good
+go111/doc/articles/wiki/test_view.good
+go111/doc/articles/wiki/view.html
+go111/doc/asm.html
+go111/doc/cmd.html
+go111/doc/code.html
+go111/doc/codewalk/codewalk.css
+go111/doc/codewalk/codewalk.js
+go111/doc/codewalk/codewalk.xml
+go111/doc/codewalk/functions.xml
+go111/doc/codewalk/markov.go
+go111/doc/codewalk/markov.xml
+go111/doc/codewalk/pig.go
+go111/doc/codewalk/popout.png
+go111/doc/codewalk/run
+go111/doc/codewalk/sharemem.xml
+go111/doc/codewalk/urlpoll.go
+go111/doc/conduct.html
+go111/doc/contrib.html
+go111/doc/contribute.html
+go111/doc/debugging_with_gdb.html
+go111/doc/devel/pre_go1.html
+go111/doc/devel/release.html
+go111/doc/devel/weekly.html
+go111/doc/diagnostics.html
+go111/doc/docs.html
+go111/doc/editors.html
+go111/doc/effective_go.html
+go111/doc/gccgo_contribute.html
+go111/doc/gccgo_install.html
+go111/doc/go-logo-black.png
+go111/doc/go-logo-blue.png
+go111/doc/go-logo-white.png
+go111/doc/go1.1.html
+go111/doc/go1.10.html
+go111/doc/go${PKGVERSION}.html
+go111/doc/go1.2.html
+go111/doc/go1.3.html
+go111/doc/go1.4.html
+go111/doc/go1.5.html
+go111/doc/go1.6.html
+go111/doc/go1.7.html
+go111/doc/go1.8.html
+go111/doc/go1.9.html
+go111/doc/go1.html
+go111/doc/go1compat.html
+go111/doc/go_faq.html
+go111/doc/go_mem.html
+go111/doc/go_spec.html
+go111/doc/gopher/README
+go111/doc/gopher/appenginegopher.jpg
+go111/doc/gopher/appenginegophercolor.jpg
+go111/doc/gopher/appenginelogo.gif
+go111/doc/gopher/biplane.jpg
+go111/doc/gopher/bumper.png
+go111/doc/gopher/bumper192x108.png
+go111/doc/gopher/bumper320x180.png
+go111/doc/gopher/bumper480x270.png
+go111/doc/gopher/bumper640x360.png
+go111/doc/gopher/doc.png
+go111/doc/gopher/favicon.svg
+go111/doc/gopher/fiveyears.jpg
+go111/doc/gopher/frontpage.png
+go111/doc/gopher/gopherbw.png
+go111/doc/gopher/gophercolor.png
+go111/doc/gopher/gophercolor16x16.png
+go111/doc/gopher/help.png
+go111/doc/gopher/modelsheet.jpg
+go111/doc/gopher/pencil/gopherhat.jpg
+go111/doc/gopher/pencil/gopherhelmet.jpg
+go111/doc/gopher/pencil/gophermega.jpg
+go111/doc/gopher/pencil/gopherrunning.jpg
+go111/doc/gopher/pencil/gopherswim.jpg
+go111/doc/gopher/pencil/gopherswrench.jpg
+go111/doc/gopher/pkg.png
+go111/doc/gopher/project.png
+go111/doc/gopher/ref.png
+go111/doc/gopher/run.png
+go111/doc/gopher/talks.png



Home | Main Index | Thread Index | Old Index