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.19
details: https://anonhg.NetBSD.org/pkgsrc/rev/348af64fd146
branches: trunk
changeset: 383618:348af64fd146
user: bsiegert <bsiegert%pkgsrc.org@localhost>
date: Sun Aug 21 11:42:19 2022 +0000
description:
Add a package for Go 1.19
Release notes: https://go.dev/doc/go1.19
diffstat:
lang/go/version.mk | 3 +-
lang/go119/ALTERNATIVES | 2 +
lang/go119/DESCR | 10 +
lang/go119/Makefile | 127 +
lang/go119/PLIST | 12216 ++++++++++
lang/go119/PLIST.Darwin | 2 +
lang/go119/PLIST.Linux | 2 +
lang/go119/PLIST.SunOS | 2 +
lang/go119/distinfo | 10 +
lang/go119/patches/patch-misc_ios_clangwrap.sh | 13 +
lang/go119/patches/patch-src_cmd_dist_util.go | 16 +
lang/go119/patches/patch-src_crypto_x509_root__bsd.go | 18 +
lang/go119/patches/patch-src_crypto_x509_root__solaris.go | 21 +
lang/go119/patches/patch-src_syscall_zsysnum__solaris__amd64.go | 14 +
14 files changed, 12455 insertions(+), 1 deletions(-)
diffs (truncated from 12522 to 300 lines):
diff -r e39cc792c678 -r 348af64fd146 lang/go/version.mk
--- a/lang/go/version.mk Sun Aug 21 11:28:34 2022 +0000
+++ b/lang/go/version.mk Sun Aug 21 11:42:19 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: version.mk,v 1.155 2022/08/12 16:15:04 bsiegert Exp $
+# $NetBSD: version.mk,v 1.156 2022/08/21 11:42:19 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"
+GO119_VERSION= 1.19
GO118_VERSION= 1.18.5
GO117_VERSION= 1.17.13
GO116_VERSION= 1.16.15
diff -r e39cc792c678 -r 348af64fd146 lang/go119/ALTERNATIVES
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/go119/ALTERNATIVES Sun Aug 21 11:42:19 2022 +0000
@@ -0,0 +1,2 @@
+bin/go @PREFIX@/go118/bin/go
+bin/gofmt @PREFIX@/go118/bin/gofmt
diff -r e39cc792c678 -r 348af64fd146 lang/go119/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/go119/DESCR Sun Aug 21 11:42:19 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 e39cc792c678 -r 348af64fd146 lang/go119/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/go119/Makefile Sun Aug 21 11:42:19 2022 +0000
@@ -0,0 +1,127 @@
+# $NetBSD: Makefile,v 1.1 2022/08/21 11:42:19 bsiegert Exp $
+
+.include "../../lang/go/version.mk"
+.include "../../lang/go/bootstrap.mk"
+
+GOVERSSUFFIX= 119
+
+DISTNAME= go${GO${GOVERSSUFFIX}_VERSION}.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/crypto/internal/boring/build.sh
+REPLACE_BASH+= src/go/doc/comment/mkstd.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
+
+PRINT_PLIST_AWK+= /^bin\/go${GOVERSSUFFIX}/ { print "bin/go$${GOVERSSUFFIX}"; next; }
+PRINT_PLIST_AWK+= /^bin\/gofmt${GOVERSSUFFIX}/ { print "bin/gofmt$${GOVERSSUFFIX}"; next; }
+PRINT_PLIST_AWK+= /internal\/pty\.a/ { printf "%s", "$${PLIST.pty}"; }
+PRINT_PLIST_AWK+= /x\/net\/route\.a/ { printf "%s", "$${PLIST.route}"; }
+
+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 e39cc792c678 -r 348af64fd146 lang/go119/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/go119/PLIST Sun Aug 21 11:42:19 2022 +0000
@@ -0,0 +1,12216 @@
+@comment $NetBSD: PLIST,v 1.1 2022/08/21 11:42:19 bsiegert Exp $
+bin/go${GOVERSSUFFIX}
+bin/gofmt${GOVERSSUFFIX}
+go119/CONTRIBUTING.md
+go119/LICENSE
+go119/PATENTS
+go119/README.md
+go119/SECURITY.md
+go119/VERSION
+go119/api/README
+go119/api/except.txt
+go119/api/go1.1.txt
+go119/api/go1.10.txt
+go119/api/go1.11.txt
+go119/api/go1.12.txt
+go119/api/go1.13.txt
+go119/api/go1.14.txt
+go119/api/go1.15.txt
+go119/api/go1.16.txt
+go119/api/go1.17.txt
+go119/api/go1.18.txt
+go119/api/go1.19.txt
+go119/api/go1.2.txt
+go119/api/go1.3.txt
+go119/api/go1.4.txt
+go119/api/go1.5.txt
+go119/api/go1.6.txt
+go119/api/go1.7.txt
+go119/api/go1.8.txt
+go119/api/go1.9.txt
+go119/api/go1.txt
+go119/bin/go
+go119/bin/gofmt
+go119/codereview.cfg
+go119/doc/asm.html
+go119/doc/go1.17_spec.html
+go119/doc/go_mem.html
+go119/doc/go_spec.html
+go119/lib/time/README
+go119/lib/time/update.bash
+go119/lib/time/zoneinfo.zip
+go119/misc/android/README
+go119/misc/android/go_android_exec.go
+go119/misc/arm/a
+go119/misc/cgo/errors/argposition_test.go
+go119/misc/cgo/errors/badsym_test.go
+go119/misc/cgo/errors/errors_test.go
+go119/misc/cgo/errors/ptr_test.go
+go119/misc/cgo/errors/testdata/err1.go
+go119/misc/cgo/errors/testdata/err2.go
+go119/misc/cgo/errors/testdata/err4.go
+go119/misc/cgo/errors/testdata/issue11097a.go
+go119/misc/cgo/errors/testdata/issue11097b.go
+go119/misc/cgo/errors/testdata/issue14669.go
+go119/misc/cgo/errors/testdata/issue18452.go
+go119/misc/cgo/errors/testdata/issue18889.go
+go119/misc/cgo/errors/testdata/issue28069.go
+go119/misc/cgo/errors/testdata/issue28721.go
+go119/misc/cgo/errors/testdata/issue33061.go
+go119/misc/cgo/errors/testdata/issue42580.go
+go119/misc/cgo/errors/testdata/issue50710.go
+go119/misc/cgo/errors/testdata/long_double_size.go
+go119/misc/cgo/errors/testdata/malloc.go
+go119/misc/cgo/fortran/answer.f90
+go119/misc/cgo/fortran/fortran.go
+go119/misc/cgo/fortran/fortran_test.go
+go119/misc/cgo/fortran/helloworld/helloworld.f90
+go119/misc/cgo/fortran/test.bash
+go119/misc/cgo/gmp/fib.go
+go119/misc/cgo/gmp/gmp.go
+go119/misc/cgo/gmp/pi.go
+go119/misc/cgo/life/life_test.go
+go119/misc/cgo/life/overlaydir_test.go
+go119/misc/cgo/life/testdata/c-life.c
+go119/misc/cgo/life/testdata/life.go
+go119/misc/cgo/life/testdata/life.h
+go119/misc/cgo/life/testdata/main.go
+go119/misc/cgo/life/testdata/main.out
+go119/misc/cgo/nocgo/nocgo.go
+go119/misc/cgo/nocgo/nocgo_test.go
+go119/misc/cgo/stdio/overlaydir_test.go
+go119/misc/cgo/stdio/stdio_test.go
+go119/misc/cgo/stdio/testdata/chain.go
+go119/misc/cgo/stdio/testdata/chain.out
+go119/misc/cgo/stdio/testdata/fib.go
+go119/misc/cgo/stdio/testdata/fib.out
+go119/misc/cgo/stdio/testdata/hello.go
+go119/misc/cgo/stdio/testdata/hello.out
+go119/misc/cgo/stdio/testdata/run.out
+go119/misc/cgo/stdio/testdata/stdio/file.go
+go119/misc/cgo/stdio/testdata/stdio/stdio.go
+go119/misc/cgo/test/backdoor.go
+go119/misc/cgo/test/buildid_linux.go
+go119/misc/cgo/test/callback.go
+go119/misc/cgo/test/callback_c.c
+go119/misc/cgo/test/callback_c_gc.c
+go119/misc/cgo/test/callback_c_gccgo.c
+go119/misc/cgo/test/cgo_linux_test.go
+go119/misc/cgo/test/cgo_stubs_android_test.go
+go119/misc/cgo/test/cgo_test.go
+go119/misc/cgo/test/cgo_thread_lock.go
+go119/misc/cgo/test/cgo_unix_test.go
+go119/misc/cgo/test/cthread_unix.c
+go119/misc/cgo/test/cthread_windows.c
+go119/misc/cgo/test/issue1435.go
+go119/misc/cgo/test/issue18146.go
+go119/misc/cgo/test/issue20910.c
+go119/misc/cgo/test/issue21897.go
+go119/misc/cgo/test/issue21897b.go
+go119/misc/cgo/test/issue31891.c
+go119/misc/cgo/test/issue4029.c
+go119/misc/cgo/test/issue4029.go
+go119/misc/cgo/test/issue4029w.go
+go119/misc/cgo/test/issue42018.go
+go119/misc/cgo/test/issue42018_windows.go
+go119/misc/cgo/test/issue42495.go
+go119/misc/cgo/test/issue4273.c
+go119/misc/cgo/test/issue4273b.c
+go119/misc/cgo/test/issue4339.c
+go119/misc/cgo/test/issue4339.h
+go119/misc/cgo/test/issue5548_c.c
+go119/misc/cgo/test/issue5740a.c
+go119/misc/cgo/test/issue5740b.c
+go119/misc/cgo/test/issue6833_c.c
+go119/misc/cgo/test/issue6907export_c.c
+go119/misc/cgo/test/issue6997_linux.c
+go119/misc/cgo/test/issue6997_linux.go
+go119/misc/cgo/test/issue7234_test.go
Home |
Main Index |
Thread Index |
Old Index