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 go116-1.16.beta1.
details: https://anonhg.NetBSD.org/pkgsrc/rev/7653319b3829
branches: trunk
changeset: 443720:7653319b3829
user: bsiegert <bsiegert%pkgsrc.org@localhost>
date: Sat Dec 19 17:58:06 2020 +0000
description:
Add a package for go116-1.16.beta1.
Normally, we would not package beta versions, except maybe in pkgsrc-wip.
This is different though, since 1.16.beta1 is the first Go version supporting
macOS on Apple Silicon.
Discussion about this was on tech-pkg@.
diffstat:
lang/Makefile | 3 +-
lang/go/version.mk | 3 +-
lang/go116/ALTERNATIVES | 2 +
lang/go116/DESCR | 13 +
lang/go116/Makefile | 107 +
lang/go116/PLIST | 9843 ++++++++++
lang/go116/PLIST.Darwin | 2 +
lang/go116/PLIST.SunOS | 2 +
lang/go116/distinfo | 10 +
lang/go116/patches/patch-misc_ios_clangwrap.sh | 13 +
lang/go116/patches/patch-src_cmd_dist_util.go | 16 +
lang/go116/patches/patch-src_crypto_x509_root__bsd.go | 12 +
lang/go116/patches/patch-src_syscall_zsysnum__solaris__amd64.go | 14 +
13 files changed, 10038 insertions(+), 2 deletions(-)
diffs (truncated from 10112 to 300 lines):
diff -r 6f9bf4c5eb57 -r 7653319b3829 lang/Makefile
--- a/lang/Makefile Sat Dec 19 16:57:55 2020 +0000
+++ b/lang/Makefile Sat Dec 19 17:58:06 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.584 2020/11/21 09:47:11 wiz Exp $
+# $NetBSD: Makefile,v 1.585 2020/12/19 17:58:06 bsiegert Exp $
#
COMMENT= Programming languages
@@ -104,6 +104,7 @@
SUBDIR+= go110
SUBDIR+= go114
SUBDIR+= go115
+SUBDIR+= go116
SUBDIR+= go14
SUBDIR+= go19
SUBDIR+= gpc
diff -r 6f9bf4c5eb57 -r 7653319b3829 lang/go/version.mk
--- a/lang/go/version.mk Sat Dec 19 16:57:55 2020 +0000
+++ b/lang/go/version.mk Sat Dec 19 17:58:06 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: version.mk,v 1.105 2020/11/13 18:45:50 bsiegert Exp $
+# $NetBSD: version.mk,v 1.106 2020/12/19 17:58:06 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"
+GO116_VERSION= 1.16.beta1
GO115_VERSION= 1.15.5
GO114_VERSION= 1.14.12
GO113_VERSION= 1.13.15
diff -r 6f9bf4c5eb57 -r 7653319b3829 lang/go116/ALTERNATIVES
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/go116/ALTERNATIVES Sat Dec 19 17:58:06 2020 +0000
@@ -0,0 +1,2 @@
+bin/go @PREFIX@/go116/bin/go
+bin/gofmt @PREFIX@/go116/bin/gofmt
diff -r 6f9bf4c5eb57 -r 7653319b3829 lang/go116/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/go116/DESCR Sat Dec 19 17:58:06 2020 +0000
@@ -0,0 +1,13 @@
+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.
+
+NOTE: THIS IS A BETA RELEASE. It is provided as part of pkgsrc to support
+macOS on Apple Silicon (Darwin/aarch64) only.
diff -r 6f9bf4c5eb57 -r 7653319b3829 lang/go116/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/go116/Makefile Sat Dec 19 17:58:06 2020 +0000
@@ -0,0 +1,107 @@
+# $NetBSD: Makefile,v 1.1 2020/12/19 17:58:06 bsiegert Exp $
+
+.include "../../lang/go/version.mk"
+.include "../../lang/go/bootstrap.mk"
+
+DISTNAME= go${GO116_VERSION:S/.beta/beta/}.src
+PKGNAME= go116-${GO116_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= 116
+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
+
+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 6f9bf4c5eb57 -r 7653319b3829 lang/go116/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/go116/PLIST Sat Dec 19 17:58:06 2020 +0000
@@ -0,0 +1,9843 @@
+@comment $NetBSD: PLIST,v 1.1 2020/12/19 17:58:07 bsiegert Exp $
+bin/go${GOVERSSUFFIX}
+bin/gofmt${GOVERSSUFFIX}
+go116/AUTHORS
+go116/CONTRIBUTING.md
+go116/CONTRIBUTORS
+go116/LICENSE
+go116/PATENTS
+go116/README.md
+go116/SECURITY.md
+go116/VERSION
+go116/api/README
+go116/api/except.txt
+go116/api/go1.1.txt
+go116/api/go1.10.txt
+go116/api/go1.11.txt
+go116/api/go1.12.txt
+go116/api/go1.13.txt
+go116/api/go1.14.txt
+go116/api/go1.15.txt
+go116/api/go1.16.txt
+go116/api/go1.2.txt
+go116/api/go1.3.txt
+go116/api/go1.4.txt
+go116/api/go1.5.txt
+go116/api/go1.6.txt
+go116/api/go1.7.txt
+go116/api/go1.8.txt
+go116/api/go1.9.txt
+go116/api/go1.txt
+go116/api/next.txt
+go116/bin/go
+go116/bin/gofmt
+go116/doc/articles/go_command.html
+go116/doc/articles/index.html
+go116/doc/articles/race_detector.html
+go116/doc/articles/wiki/edit.html
+go116/doc/articles/wiki/final-noclosure.go
+go116/doc/articles/wiki/final-noerror.go
+go116/doc/articles/wiki/final-parsetemplate.go
+go116/doc/articles/wiki/final-template.go
+go116/doc/articles/wiki/final.go
+go116/doc/articles/wiki/final_test.go
+go116/doc/articles/wiki/go.mod
+go116/doc/articles/wiki/http-sample.go
+go116/doc/articles/wiki/index.html
+go116/doc/articles/wiki/notemplate.go
+go116/doc/articles/wiki/part1-noerror.go
+go116/doc/articles/wiki/part1.go
+go116/doc/articles/wiki/part2.go
+go116/doc/articles/wiki/part3-errorhandling.go
+go116/doc/articles/wiki/part3.go
+go116/doc/articles/wiki/test_Test.txt.good
+go116/doc/articles/wiki/test_edit.good
+go116/doc/articles/wiki/test_view.good
+go116/doc/articles/wiki/view.html
+go116/doc/articles/wiki/wiki_test.go
+go116/doc/asm.html
+go116/doc/cmd.html
+go116/doc/codewalk/codewalk.css
+go116/doc/codewalk/codewalk.js
+go116/doc/codewalk/codewalk.xml
+go116/doc/codewalk/codewalk_test.go
+go116/doc/codewalk/functions.xml
+go116/doc/codewalk/markov.go
+go116/doc/codewalk/markov.xml
+go116/doc/codewalk/pig.go
+go116/doc/codewalk/popout.png
+go116/doc/codewalk/sharemem.xml
+go116/doc/codewalk/urlpoll.go
+go116/doc/contribute.html
+go116/doc/debugging_with_gdb.html
+go116/doc/diagnostics.html
+go116/doc/editors.html
+go116/doc/effective_go.html
+go116/doc/gccgo_contribute.html
+go116/doc/gccgo_install.html
+go116/doc/go-logo-black.png
+go116/doc/go-logo-blue.png
+go116/doc/go-logo-white.png
+go116/doc/go1.1.html
+go116/doc/go1.10.html
+go116/doc/go1.11.html
+go116/doc/go1.12.html
+go116/doc/go1.13.html
+go116/doc/go1.14.html
+go116/doc/go1.15.html
+go116/doc/go1.16.html
+go116/doc/go1.2.html
+go116/doc/go1.3.html
+go116/doc/go1.4.html
+go116/doc/go1.5.html
+go116/doc/go1.6.html
+go116/doc/go1.7.html
+go116/doc/go1.8.html
+go116/doc/go1.9.html
+go116/doc/go1.html
+go116/doc/go1compat.html
+go116/doc/go_faq.html
+go116/doc/go_mem.html
+go116/doc/go_spec.html
+go116/doc/gopher/README
+go116/doc/gopher/appenginegopher.jpg
+go116/doc/gopher/appenginegophercolor.jpg
+go116/doc/gopher/appenginelogo.gif
+go116/doc/gopher/biplane.jpg
+go116/doc/gopher/bumper.png
+go116/doc/gopher/bumper192x108.png
+go116/doc/gopher/bumper320x180.png
+go116/doc/gopher/bumper480x270.png
+go116/doc/gopher/bumper640x360.png
+go116/doc/gopher/doc.png
+go116/doc/gopher/favicon.svg
+go116/doc/gopher/fiveyears.jpg
+go116/doc/gopher/frontpage.png
+go116/doc/gopher/gopherbw.png
+go116/doc/gopher/gophercolor.png
+go116/doc/gopher/gophercolor16x16.png
+go116/doc/gopher/help.png
+go116/doc/gopher/modelsheet.jpg
+go116/doc/gopher/pencil/gopherhat.jpg
+go116/doc/gopher/pencil/gopherhelmet.jpg
+go116/doc/gopher/pencil/gophermega.jpg
+go116/doc/gopher/pencil/gopherrunning.jpg
+go116/doc/gopher/pencil/gopherswim.jpg
+go116/doc/gopher/pencil/gopherswrench.jpg
+go116/doc/gopher/pkg.png
+go116/doc/gopher/project.png
Home |
Main Index |
Thread Index |
Old Index