pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang go118: add Go 1.18 (final release).



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d724c1ad77e7
branches:  trunk
changeset: 375547:d724c1ad77e7
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Tue Mar 15 20:13:45 2022 +0000

description:
go118: add Go 1.18 (final release).

Due to how close the freeze is, this will not be the default for the next
quarterly release.

There are lots of news, including support for Generics. Read the release
notes for details.

diffstat:

 lang/go/version.mk                                              |      3 +-
 lang/go118/ALTERNATIVES                                         |      2 +
 lang/go118/DESCR                                                |     10 +
 lang/go118/Makefile                                             |    120 +
 lang/go118/PLIST                                                |  11744 ++++++++++
 lang/go118/PLIST.Darwin                                         |      2 +
 lang/go118/PLIST.SunOS                                          |      2 +
 lang/go118/distinfo                                             |     10 +
 lang/go118/patches/patch-misc_ios_clangwrap.sh                  |     13 +
 lang/go118/patches/patch-src_cmd_dist_util.go                   |     16 +
 lang/go118/patches/patch-src_crypto_x509_root__bsd.go           |     18 +
 lang/go118/patches/patch-src_crypto_x509_root__solaris.go       |     21 +
 lang/go118/patches/patch-src_syscall_zsysnum__solaris__amd64.go |     14 +
 13 files changed, 11974 insertions(+), 1 deletions(-)

diffs (truncated from 12037 to 300 lines):

diff -r acf1d870be92 -r d724c1ad77e7 lang/go/version.mk
--- a/lang/go/version.mk        Tue Mar 15 18:54:18 2022 +0000
+++ b/lang/go/version.mk        Tue Mar 15 20:13:45 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: version.mk,v 1.143 2022/03/07 08:44:52 bsiegert Exp $
+# $NetBSD: version.mk,v 1.144 2022/03/15 20:13:45 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"
 
+GO118_VERSION= 1.18
 GO117_VERSION= 1.17.8
 GO116_VERSION= 1.16.15
 GO110_VERSION= 1.10.8
diff -r acf1d870be92 -r d724c1ad77e7 lang/go118/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/go118/ALTERNATIVES   Tue Mar 15 20:13:45 2022 +0000
@@ -0,0 +1,2 @@
+bin/go @PREFIX@/go118/bin/go
+bin/gofmt @PREFIX@/go118/bin/gofmt
diff -r acf1d870be92 -r d724c1ad77e7 lang/go118/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/go118/DESCR  Tue Mar 15 20:13:45 2022 +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 acf1d870be92 -r d724c1ad77e7 lang/go118/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/go118/Makefile       Tue Mar 15 20:13:45 2022 +0000
@@ -0,0 +1,120 @@
+# $NetBSD: Makefile,v 1.1 2022/03/15 20:13:45 bsiegert Exp $
+
+.include "../../lang/go/version.mk"
+.include "../../lang/go/bootstrap.mk"
+
+GOVERSSUFFIX=  118
+
+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/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
+
+# Required until we bootstrap from a native illumos kit.  This is obviously
+# terrible and should be fixed properly.
+.if ${OPSYS} == "SunOS" && ${OS_VARIANT} != "Solaris"
+SUBST_CLASSES+=                grplist
+SUBST_STAGE.grplist=   pre-configure
+SUBST_FILES.grplist=   src/os/user/getgrouplist_unix.go
+SUBST_SED.grplist=     -e 's,return getgrouplist.*,return 0;,'
+.endif
+
+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 acf1d870be92 -r d724c1ad77e7 lang/go118/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/go118/PLIST  Tue Mar 15 20:13:45 2022 +0000
@@ -0,0 +1,11744 @@
+@comment $NetBSD: PLIST,v 1.1 2022/03/15 20:13:45 bsiegert Exp $
+bin/go${GOVERSSUFFIX}
+bin/gofmt${GOVERSSUFFIX}
+go118/AUTHORS
+go118/CONTRIBUTING.md
+go118/CONTRIBUTORS
+go118/LICENSE
+go118/PATENTS
+go118/README.md
+go118/SECURITY.md
+go118/VERSION
+go118/api/README
+go118/api/except.txt
+go118/api/go1.1.txt
+go118/api/go1.10.txt
+go118/api/go1.11.txt
+go118/api/go1.12.txt
+go118/api/go1.13.txt
+go118/api/go1.14.txt
+go118/api/go1.15.txt
+go118/api/go1.16.txt
+go118/api/go1.17.txt
+go118/api/go1.18.txt
+go118/api/go1.2.txt
+go118/api/go1.3.txt
+go118/api/go1.4.txt
+go118/api/go1.5.txt
+go118/api/go1.6.txt
+go118/api/go1.7.txt
+go118/api/go1.8.txt
+go118/api/go1.9.txt
+go118/api/go1.txt
+go118/api/next.txt
+go118/bin/go
+go118/bin/gofmt
+go118/codereview.cfg
+go118/doc/asm.html
+go118/doc/go1.17_spec.html
+go118/doc/go1.18.html
+go118/doc/go_mem.html
+go118/doc/go_spec.html
+go118/lib/time/README
+go118/lib/time/update.bash
+go118/lib/time/zoneinfo.zip
+go118/misc/android/README
+go118/misc/android/go_android_exec.go
+go118/misc/arm/a
+go118/misc/cgo/errors/argposition_test.go
+go118/misc/cgo/errors/badsym_test.go
+go118/misc/cgo/errors/errors_test.go
+go118/misc/cgo/errors/ptr_test.go
+go118/misc/cgo/errors/testdata/err1.go
+go118/misc/cgo/errors/testdata/err2.go
+go118/misc/cgo/errors/testdata/err4.go
+go118/misc/cgo/errors/testdata/issue11097a.go
+go118/misc/cgo/errors/testdata/issue11097b.go
+go118/misc/cgo/errors/testdata/issue14669.go
+go118/misc/cgo/errors/testdata/issue18452.go
+go118/misc/cgo/errors/testdata/issue18889.go
+go118/misc/cgo/errors/testdata/issue28069.go
+go118/misc/cgo/errors/testdata/issue28721.go
+go118/misc/cgo/errors/testdata/issue33061.go
+go118/misc/cgo/errors/testdata/issue42580.go
+go118/misc/cgo/errors/testdata/long_double_size.go
+go118/misc/cgo/errors/testdata/malloc.go
+go118/misc/cgo/fortran/answer.f90
+go118/misc/cgo/fortran/fortran.go
+go118/misc/cgo/fortran/fortran_test.go
+go118/misc/cgo/fortran/helloworld/helloworld.f90
+go118/misc/cgo/fortran/test.bash
+go118/misc/cgo/gmp/fib.go
+go118/misc/cgo/gmp/gmp.go
+go118/misc/cgo/gmp/pi.go
+go118/misc/cgo/life/life_test.go
+go118/misc/cgo/life/overlaydir_test.go
+go118/misc/cgo/life/testdata/c-life.c
+go118/misc/cgo/life/testdata/life.go
+go118/misc/cgo/life/testdata/life.h
+go118/misc/cgo/life/testdata/main.go
+go118/misc/cgo/life/testdata/main.out
+go118/misc/cgo/nocgo/nocgo.go
+go118/misc/cgo/nocgo/nocgo_test.go
+go118/misc/cgo/stdio/overlaydir_test.go
+go118/misc/cgo/stdio/stdio_test.go
+go118/misc/cgo/stdio/testdata/chain.go
+go118/misc/cgo/stdio/testdata/chain.out
+go118/misc/cgo/stdio/testdata/fib.go
+go118/misc/cgo/stdio/testdata/fib.out
+go118/misc/cgo/stdio/testdata/hello.go
+go118/misc/cgo/stdio/testdata/hello.out
+go118/misc/cgo/stdio/testdata/run.out
+go118/misc/cgo/stdio/testdata/stdio/file.go
+go118/misc/cgo/stdio/testdata/stdio/stdio.go
+go118/misc/cgo/test/backdoor.go
+go118/misc/cgo/test/buildid_linux.go
+go118/misc/cgo/test/callback.go
+go118/misc/cgo/test/callback_c.c
+go118/misc/cgo/test/callback_c_gc.c
+go118/misc/cgo/test/callback_c_gccgo.c
+go118/misc/cgo/test/cgo_linux_test.go
+go118/misc/cgo/test/cgo_stubs_android_test.go
+go118/misc/cgo/test/cgo_test.go
+go118/misc/cgo/test/cgo_thread_lock.go
+go118/misc/cgo/test/cgo_unix_test.go
+go118/misc/cgo/test/cthread_unix.c
+go118/misc/cgo/test/cthread_windows.c
+go118/misc/cgo/test/issue1435.go
+go118/misc/cgo/test/issue18146.go
+go118/misc/cgo/test/issue20910.c
+go118/misc/cgo/test/issue21897.go
+go118/misc/cgo/test/issue21897b.go
+go118/misc/cgo/test/issue31891.c
+go118/misc/cgo/test/issue4029.c
+go118/misc/cgo/test/issue4029.go
+go118/misc/cgo/test/issue4029w.go
+go118/misc/cgo/test/issue42018.go
+go118/misc/cgo/test/issue42018_windows.go
+go118/misc/cgo/test/issue42495.go
+go118/misc/cgo/test/issue4273.c
+go118/misc/cgo/test/issue4273b.c
+go118/misc/cgo/test/issue4339.c
+go118/misc/cgo/test/issue4339.h
+go118/misc/cgo/test/issue5548_c.c
+go118/misc/cgo/test/issue5740a.c
+go118/misc/cgo/test/issue5740b.c
+go118/misc/cgo/test/issue6833_c.c
+go118/misc/cgo/test/issue6907export_c.c
+go118/misc/cgo/test/issue6997_linux.c
+go118/misc/cgo/test/issue6997_linux.go
+go118/misc/cgo/test/issue7234_test.go
+go118/misc/cgo/test/issue8148.c
+go118/misc/cgo/test/issue8148.go
+go118/misc/cgo/test/issue8331.h
+go118/misc/cgo/test/issue8517.go
+go118/misc/cgo/test/issue8517_windows.c



Home | Main Index | Thread Index | Old Index