pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang Add a package for Go 1.14.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e4c0098fc72a
branches:  trunk
changeset: 423827:e4c0098fc72a
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Thu Feb 27 14:32:57 2020 +0000

description:
Add a package for Go 1.14.

The default will remain at 1.13 for the next branch.

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

See the release notes at https://golang.org/doc/go1.14.

diffstat:

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

diffs (truncated from 9631 to 300 lines):

diff -r fcd2c25d20bf -r e4c0098fc72a lang/Makefile
--- a/lang/Makefile     Thu Feb 27 13:47:37 2020 +0000
+++ b/lang/Makefile     Thu Feb 27 14:32:57 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.542 2020/02/11 15:52:18 nia Exp $
+# $NetBSD: Makefile,v 1.543 2020/02/27 14:32:57 bsiegert Exp $
 #
 
 COMMENT=       Programming languages
@@ -100,6 +100,7 @@
 SUBDIR+=       go110
 SUBDIR+=       go112
 SUBDIR+=       go113
+SUBDIR+=       go114
 SUBDIR+=       go14
 SUBDIR+=       go19
 SUBDIR+=       gpc
diff -r fcd2c25d20bf -r e4c0098fc72a lang/go/version.mk
--- a/lang/go/version.mk        Thu Feb 27 13:47:37 2020 +0000
+++ b/lang/go/version.mk        Thu Feb 27 14:32:57 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: version.mk,v 1.81 2020/02/23 19:21:27 bsiegert Exp $
+# $NetBSD: version.mk,v 1.82 2020/02/27 14:32:57 bsiegert Exp $
 
 #
 # If bsd.prefs.mk is included before go-package.mk in a package, then this
@@ -6,6 +6,7 @@
 #
 .include "go-vars.mk"
 
+GO114_VERSION= 1.14
 GO113_VERSION= 1.13.7
 GO112_VERSION= 1.12.17
 GO111_VERSION= 1.11.13
diff -r fcd2c25d20bf -r e4c0098fc72a lang/go114/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/go114/ALTERNATIVES   Thu Feb 27 14:32:57 2020 +0000
@@ -0,0 +1,2 @@
+bin/go @PREFIX@/go114/bin/go
+bin/gofmt @PREFIX@/go114/bin/gofmt
diff -r fcd2c25d20bf -r e4c0098fc72a lang/go114/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/go114/DESCR  Thu Feb 27 14:32:57 2020 +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 fcd2c25d20bf -r e4c0098fc72a lang/go114/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/go114/Makefile       Thu Feb 27 14:32:57 2020 +0000
@@ -0,0 +1,104 @@
+# $NetBSD: Makefile,v 1.1 2020/02/27 14:32:57 bsiegert Exp $
+
+.include "../../lang/go/version.mk"
+
+DISTNAME=      go${GO114_VERSION}.src
+PKGNAME=       go114-${GO114_VERSION}
+CATEGORIES=    lang
+MASTER_SITES=  https://storage.googleapis.com/golang/
+EXTRACT_USING= gtar
+
+MAINTAINER=    bsiegert%NetBSD.org@localhost
+HOMEPAGE=      https://golang.org/
+COMMENT=       The Go programming language
+LICENSE=       modified-bsd
+
+GOVERSSUFFIX=  114
+WRKSRC=                ${WRKDIR}/go
+USE_TOOLS+=    bash:run perl:run pax
+
+# cgo compiles under TMPDIR
+TMPDIR?=       /tmp
+BUILDLINK_PASSTHRU_DIRS+= ${TMPDIR}
+
+GOROOT_FINAL=          ${PREFIX}/go${GOVERSSUFFIX}
+INSTALLATION_DIRS=     bin go${GOVERSSUFFIX}
+
+REPLACE_BASH+= lib/time/update.bash
+REPLACE_BASH+= misc/arm/a
+REPLACE_BASH+= misc/cgo/fortran/test.bash
+REPLACE_BASH+= misc/wasm/go_js_wasm_exec
+REPLACE_BASH+= src/all.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/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/race.bash
+REPLACE_BASH+= src/run.bash
+REPLACE_BASH+= src/syscall/mkall.sh
+REPLACE_BASH+= src/syscall/mkerrors.sh
+REPLACE_BASH+= src/syscall/mksysnum_plan9.sh
+
+REPLACE_PERL+= src/net/http/cgi/testdata/test.cgi
+REPLACE_PERL+= src/regexp/syntax/make_perl_groups.pl
+REPLACE_PERL+= src/syscall/*.pl
+
+# 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
+
+PLIST_SUBST+=  GOVERSSUFFIX=${GOVERSSUFFIX}
+
+.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
+
+post-extract:
+       ${RM} -r -f ${WRKSRC}/test/fixedbugs/issue27836*
+
+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 pkg/bootstrap
+       cd ${WRKSRC} && pax -rw . ${DESTDIR}${PREFIX}/go${GOVERSSUFFIX}
+       find ${DESTDIR}${PREFIX}/go${GOVERSSUFFIX} -name \*.orig -exec rm {} \;
+.for cmd in go gofmt
+       ${LN} -sf ${PREFIX}/go${GOVERSSUFFIX}/bin/${cmd} ${DESTDIR}${PREFIX}/bin/${cmd}${GOVERSSUFFIX}
+.endfor
+
+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 fcd2c25d20bf -r e4c0098fc72a lang/go114/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/go114/PLIST  Thu Feb 27 14:32:57 2020 +0000
@@ -0,0 +1,9226 @@
+@comment $NetBSD: PLIST,v 1.1 2020/02/27 14:32:57 bsiegert Exp $
+bin/go${GOVERSSUFFIX}
+bin/gofmt${GOVERSSUFFIX}
+go114/AUTHORS
+go114/CONTRIBUTING.md
+go114/CONTRIBUTORS
+go114/LICENSE
+go114/PATENTS
+go114/README.md
+go114/SECURITY.md
+go114/VERSION
+go114/api/README
+go114/api/except.txt
+go114/api/go1.1.txt
+go114/api/go1.10.txt
+go114/api/go1.11.txt
+go114/api/go1.12.txt
+go114/api/go1.13.txt
+go114/api/go1.14.txt
+go114/api/go1.2.txt
+go114/api/go1.3.txt
+go114/api/go1.4.txt
+go114/api/go1.5.txt
+go114/api/go1.6.txt
+go114/api/go1.7.txt
+go114/api/go1.8.txt
+go114/api/go1.9.txt
+go114/api/go1.txt
+go114/api/next.txt
+go114/bin/go
+go114/bin/gofmt
+go114/doc/articles/go_command.html
+go114/doc/articles/index.html
+go114/doc/articles/race_detector.html
+go114/doc/articles/wiki/edit.html
+go114/doc/articles/wiki/final-noclosure.go
+go114/doc/articles/wiki/final-noerror.go
+go114/doc/articles/wiki/final-parsetemplate.go
+go114/doc/articles/wiki/final-template.go
+go114/doc/articles/wiki/final.go
+go114/doc/articles/wiki/final_test.go
+go114/doc/articles/wiki/go.mod
+go114/doc/articles/wiki/http-sample.go
+go114/doc/articles/wiki/index.html
+go114/doc/articles/wiki/notemplate.go
+go114/doc/articles/wiki/part1-noerror.go
+go114/doc/articles/wiki/part1.go
+go114/doc/articles/wiki/part2.go
+go114/doc/articles/wiki/part3-errorhandling.go
+go114/doc/articles/wiki/part3.go
+go114/doc/articles/wiki/test_Test.txt.good
+go114/doc/articles/wiki/test_edit.good
+go114/doc/articles/wiki/test_view.good
+go114/doc/articles/wiki/view.html
+go114/doc/articles/wiki/wiki_test.go
+go114/doc/asm.html
+go114/doc/cmd.html
+go114/doc/codewalk/codewalk.css
+go114/doc/codewalk/codewalk.js
+go114/doc/codewalk/codewalk.xml
+go114/doc/codewalk/codewalk_test.go
+go114/doc/codewalk/functions.xml
+go114/doc/codewalk/markov.go
+go114/doc/codewalk/markov.xml
+go114/doc/codewalk/pig.go
+go114/doc/codewalk/popout.png
+go114/doc/codewalk/sharemem.xml
+go114/doc/codewalk/urlpoll.go
+go114/doc/contrib.html
+go114/doc/contribute.html
+go114/doc/debugging_with_gdb.html
+go114/doc/diagnostics.html
+go114/doc/editors.html
+go114/doc/effective_go.html
+go114/doc/gccgo_contribute.html
+go114/doc/gccgo_install.html
+go114/doc/go-logo-black.png
+go114/doc/go-logo-blue.png
+go114/doc/go-logo-white.png
+go114/doc/go1.1.html
+go114/doc/go1.10.html
+go114/doc/go1.11.html
+go114/doc/go1.12.html
+go114/doc/go1.13.html
+go114/doc/go1.14.html
+go114/doc/go1.2.html
+go114/doc/go1.3.html
+go114/doc/go1.4.html
+go114/doc/go1.5.html
+go114/doc/go1.6.html
+go114/doc/go1.7.html
+go114/doc/go1.8.html
+go114/doc/go1.9.html
+go114/doc/go1.html
+go114/doc/go1compat.html
+go114/doc/go_faq.html
+go114/doc/go_mem.html
+go114/doc/go_spec.html
+go114/doc/gopher/README
+go114/doc/gopher/appenginegopher.jpg
+go114/doc/gopher/appenginegophercolor.jpg
+go114/doc/gopher/appenginelogo.gif
+go114/doc/gopher/biplane.jpg
+go114/doc/gopher/bumper.png
+go114/doc/gopher/bumper192x108.png
+go114/doc/gopher/bumper320x180.png
+go114/doc/gopher/bumper480x270.png
+go114/doc/gopher/bumper640x360.png
+go114/doc/gopher/doc.png
+go114/doc/gopher/favicon.svg
+go114/doc/gopher/fiveyears.jpg
+go114/doc/gopher/frontpage.png
+go114/doc/gopher/gopherbw.png
+go114/doc/gopher/gophercolor.png
+go114/doc/gopher/gophercolor16x16.png
+go114/doc/gopher/help.png
+go114/doc/gopher/modelsheet.jpg
+go114/doc/gopher/pencil/gopherhat.jpg
+go114/doc/gopher/pencil/gopherhelmet.jpg
+go114/doc/gopher/pencil/gophermega.jpg
+go114/doc/gopher/pencil/gopherrunning.jpg
+go114/doc/gopher/pencil/gopherswim.jpg
+go114/doc/gopher/pencil/gopherswrench.jpg
+go114/doc/gopher/pkg.png
+go114/doc/gopher/project.png
+go114/doc/gopher/ref.png
+go114/doc/gopher/run.png
+go114/doc/gopher/talks.png
+go114/doc/help.html
+go114/doc/ie.css
+go114/doc/install-source.html
+go114/doc/install.html
+go114/doc/play/fib.go
+go114/doc/play/hello.go



Home | Main Index | Thread Index | Old Index