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.17.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/022f2ed30865
branches:  trunk
changeset: 457277:022f2ed30865
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Sun Aug 22 13:10:18 2021 +0000

description:
Add Go 1.17.

Some relevant changes:
 - new register-based calling convention (not on NetBSD though IIUC)
 - new language feature to cast slices into array pointers
 - the usual amount of bugfixes

diffstat:

 lang/Makefile                                                   |      3 +-
 lang/go/version.mk                                              |      3 +-
 lang/go117/ALTERNATIVES                                         |      2 +
 lang/go117/DESCR                                                |     10 +
 lang/go117/Makefile                                             |    112 +
 lang/go117/PLIST                                                |  10616 ++++++++++
 lang/go117/PLIST.Darwin                                         |      2 +
 lang/go117/PLIST.SunOS                                          |      2 +
 lang/go117/distinfo                                             |     11 +
 lang/go117/patches/patch-misc_ios_clangwrap.sh                  |     13 +
 lang/go117/patches/patch-src_cmd_dist_util.go                   |     16 +
 lang/go117/patches/patch-src_crypto_x509_root__bsd.go           |     12 +
 lang/go117/patches/patch-src_crypto_x509_root__solaris.go       |     21 +
 lang/go117/patches/patch-src_syscall_zsysnum__solaris__amd64.go |     14 +
 14 files changed, 10835 insertions(+), 2 deletions(-)

diffs (truncated from 10913 to 300 lines):

diff -r 943b24fbdf48 -r 022f2ed30865 lang/Makefile
--- a/lang/Makefile     Sun Aug 22 08:01:09 2021 +0000
+++ b/lang/Makefile     Sun Aug 22 13:10:18 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.603 2021/08/05 08:01:18 adam Exp $
+# $NetBSD: Makefile,v 1.604 2021/08/22 13:10:18 bsiegert Exp $
 #
 
 COMMENT=       Programming languages
@@ -100,6 +100,7 @@
 SUBDIR+=       go110
 SUBDIR+=       go115
 SUBDIR+=       go116
+SUBDIR+=       go117
 SUBDIR+=       go14
 SUBDIR+=       go19
 SUBDIR+=       gpc
diff -r 943b24fbdf48 -r 022f2ed30865 lang/go/version.mk
--- a/lang/go/version.mk        Sun Aug 22 08:01:09 2021 +0000
+++ b/lang/go/version.mk        Sun Aug 22 13:10:18 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: version.mk,v 1.124 2021/08/11 19:00:24 bsiegert Exp $
+# $NetBSD: version.mk,v 1.125 2021/08/22 13:10:18 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"
 
+GO117_VERSION= 1.17
 GO116_VERSION= 1.16.7
 GO115_VERSION= 1.15.15
 GO110_VERSION= 1.10.8
diff -r 943b24fbdf48 -r 022f2ed30865 lang/go117/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/go117/ALTERNATIVES   Sun Aug 22 13:10:18 2021 +0000
@@ -0,0 +1,2 @@
+bin/go @PREFIX@/go117/bin/go
+bin/gofmt @PREFIX@/go117/bin/gofmt
diff -r 943b24fbdf48 -r 022f2ed30865 lang/go117/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/go117/DESCR  Sun Aug 22 13:10:18 2021 +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 943b24fbdf48 -r 022f2ed30865 lang/go117/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/go117/Makefile       Sun Aug 22 13:10:18 2021 +0000
@@ -0,0 +1,112 @@
+# $NetBSD: Makefile,v 1.1 2021/08/22 13:10:18 bsiegert Exp $
+
+.include "../../lang/go/version.mk"
+.include "../../lang/go/bootstrap.mk"
+
+GOVERSSUFFIX=  117
+
+DISTNAME=      go${GO${GOVERSSUFFIX}_VERSION:S/.rc/rc/}.src
+PKGNAME=       go${GOVERSSUFFIX}-${GO${GOVERSSUFFIX}_VERSION}
+CATEGORIES=    lang
+MASTER_SITES=  https://storage.googleapis.com/golang/
+
+MAINTAINER=    bsiegert%NetBSD.org@localhost
+HOMEPAGE=      https://golang.org/
+COMMENT=       The Go programming language
+LICENSE=       modified-bsd
+
+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/compile/internal/ssa/gen/cover.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
+
+SUBST_CLASSES+=                paths
+SUBST_STAGE.paths=     pre-configure
+SUBST_FILES.paths=     src/crypto/x509/root_solaris.go
+SUBST_VARS.paths=      PKG_SYSCONFDIR
+
+PLIST_SUBST+=  GOVERSSUFFIX=${GOVERSSUFFIX}
+
+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} \
+               GOCACHE=${WRKDIR}/.cache/go-build \
+               ${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 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 943b24fbdf48 -r 022f2ed30865 lang/go117/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/go117/PLIST  Sun Aug 22 13:10:18 2021 +0000
@@ -0,0 +1,10616 @@
+@comment $NetBSD: PLIST,v 1.1 2021/08/22 13:10:18 bsiegert Exp $
+bin/go${GOVERSSUFFIX}
+bin/gofmt${GOVERSSUFFIX}
+go117/AUTHORS
+go117/CONTRIBUTING.md
+go117/CONTRIBUTORS
+go117/LICENSE
+go117/PATENTS
+go117/README.md
+go117/SECURITY.md
+go117/VERSION
+go117/api/README
+go117/api/except.txt
+go117/api/go1.1.txt
+go117/api/go1.10.txt
+go117/api/go1.11.txt
+go117/api/go1.12.txt
+go117/api/go1.13.txt
+go117/api/go1.14.txt
+go117/api/go1.15.txt
+go117/api/go1.16.txt
+go117/api/go1.17.txt
+go117/api/go1.2.txt
+go117/api/go1.3.txt
+go117/api/go1.4.txt
+go117/api/go1.5.txt
+go117/api/go1.6.txt
+go117/api/go1.7.txt
+go117/api/go1.8.txt
+go117/api/go1.9.txt
+go117/api/go1.txt
+go117/api/next.txt
+go117/bin/go
+go117/bin/gofmt
+go117/codereview.cfg
+go117/doc/asm.html
+go117/doc/go1.17.html
+go117/doc/go_mem.html
+go117/doc/go_spec.html
+go117/lib/time/README
+go117/lib/time/update.bash
+go117/lib/time/zoneinfo.zip
+go117/misc/android/README
+go117/misc/android/go_android_exec.go
+go117/misc/arm/a
+go117/misc/cgo/errors/argposition_test.go
+go117/misc/cgo/errors/badsym_test.go
+go117/misc/cgo/errors/errors_test.go
+go117/misc/cgo/errors/ptr_test.go
+go117/misc/cgo/errors/testdata/err1.go
+go117/misc/cgo/errors/testdata/err2.go
+go117/misc/cgo/errors/testdata/err4.go
+go117/misc/cgo/errors/testdata/issue11097a.go
+go117/misc/cgo/errors/testdata/issue11097b.go
+go117/misc/cgo/errors/testdata/issue14669.go
+go117/misc/cgo/errors/testdata/issue18452.go
+go117/misc/cgo/errors/testdata/issue18889.go
+go117/misc/cgo/errors/testdata/issue28069.go
+go117/misc/cgo/errors/testdata/issue28721.go
+go117/misc/cgo/errors/testdata/issue33061.go
+go117/misc/cgo/errors/testdata/issue42580.go
+go117/misc/cgo/errors/testdata/long_double_size.go
+go117/misc/cgo/errors/testdata/malloc.go
+go117/misc/cgo/fortran/answer.f90
+go117/misc/cgo/fortran/fortran.go
+go117/misc/cgo/fortran/fortran_test.go
+go117/misc/cgo/fortran/helloworld/helloworld.f90
+go117/misc/cgo/fortran/test.bash
+go117/misc/cgo/gmp/fib.go
+go117/misc/cgo/gmp/gmp.go
+go117/misc/cgo/gmp/pi.go
+go117/misc/cgo/life/life_test.go
+go117/misc/cgo/life/overlaydir_test.go
+go117/misc/cgo/life/testdata/c-life.c
+go117/misc/cgo/life/testdata/life.go
+go117/misc/cgo/life/testdata/life.h
+go117/misc/cgo/life/testdata/main.go
+go117/misc/cgo/life/testdata/main.out
+go117/misc/cgo/nocgo/nocgo.go
+go117/misc/cgo/nocgo/nocgo_test.go
+go117/misc/cgo/stdio/overlaydir_test.go
+go117/misc/cgo/stdio/stdio_test.go
+go117/misc/cgo/stdio/testdata/chain.go
+go117/misc/cgo/stdio/testdata/chain.out
+go117/misc/cgo/stdio/testdata/fib.go
+go117/misc/cgo/stdio/testdata/fib.out
+go117/misc/cgo/stdio/testdata/hello.go
+go117/misc/cgo/stdio/testdata/hello.out
+go117/misc/cgo/stdio/testdata/run.out
+go117/misc/cgo/stdio/testdata/stdio/file.go
+go117/misc/cgo/stdio/testdata/stdio/stdio.go
+go117/misc/cgo/test/backdoor.go
+go117/misc/cgo/test/buildid_linux.go
+go117/misc/cgo/test/callback.go
+go117/misc/cgo/test/callback_c.c
+go117/misc/cgo/test/callback_c_gc.c
+go117/misc/cgo/test/callback_c_gccgo.c
+go117/misc/cgo/test/cgo_linux_test.go
+go117/misc/cgo/test/cgo_stubs_android_test.go
+go117/misc/cgo/test/cgo_test.go
+go117/misc/cgo/test/cgo_thread_lock.go
+go117/misc/cgo/test/cgo_unix_test.go
+go117/misc/cgo/test/cthread_unix.c
+go117/misc/cgo/test/cthread_windows.c
+go117/misc/cgo/test/issue1435.go
+go117/misc/cgo/test/issue18146.go
+go117/misc/cgo/test/issue20910.c
+go117/misc/cgo/test/issue21897.go
+go117/misc/cgo/test/issue21897b.go
+go117/misc/cgo/test/issue31891.c
+go117/misc/cgo/test/issue4029.c
+go117/misc/cgo/test/issue4029.go
+go117/misc/cgo/test/issue4029w.go
+go117/misc/cgo/test/issue42495.go
+go117/misc/cgo/test/issue4273.c
+go117/misc/cgo/test/issue4273b.c
+go117/misc/cgo/test/issue4339.c
+go117/misc/cgo/test/issue4339.h
+go117/misc/cgo/test/issue5548_c.c
+go117/misc/cgo/test/issue5740a.c
+go117/misc/cgo/test/issue5740b.c
+go117/misc/cgo/test/issue6833_c.c
+go117/misc/cgo/test/issue6907export_c.c
+go117/misc/cgo/test/issue6997_linux.c
+go117/misc/cgo/test/issue6997_linux.go
+go117/misc/cgo/test/issue7234_test.go



Home | Main Index | Thread Index | Old Index