head 1.7; access; symbols pkgsrc-2019Q4:1.6.0.6 pkgsrc-2019Q4-base:1.6 pkgsrc-2019Q3:1.6.0.2 pkgsrc-2019Q3-base:1.6 pkgsrc-2019Q2:1.4.0.2 pkgsrc-2019Q2-base:1.4 pkgsrc-2019Q1:1.3.0.4 pkgsrc-2019Q1-base:1.3 pkgsrc-2018Q4:1.3.0.2 pkgsrc-2018Q4-base:1.3 pkgsrc-2018Q3:1.2.0.2 pkgsrc-2018Q3-base:1.2; locks; strict; comment @# @; 1.7 date 2020.01.04.12.58.19; author bsiegert; state dead; branches; next 1.6; commitid Jbqjn9k3W3BucnRB; 1.6 date 2019.08.14.15.17.41; author bsiegert; state Exp; branches; next 1.5; commitid mbxjDkt2DPwNy0zB; 1.5 date 2019.08.11.13.21.21; author wiz; state Exp; branches; next 1.4; commitid Ifet9Pg6Qt99ZByB; 1.4 date 2019.05.27.14.33.10; author bsiegert; state Exp; branches; next 1.3; commitid Y5MeY23Z7eGiRQoB; 1.3 date 2018.10.02.18.19.56; author bsiegert; state Exp; branches; next 1.2; commitid r9tLLw8VND1cJpUA; 1.2 date 2018.09.22.12.15.28; author minskim; state Exp; branches; next 1.1; commitid fY5296aNA08u26TA; 1.1 date 2018.09.18.16.22.14; author bsiegert; state Exp; branches; next ; commitid lpfMcpEgsDifwBSA; desc @@ 1.7 log @We say goodbye to lang/go111. Replacement: the two supported versions, go112 and go113. @ text @# $NetBSD: Makefile,v 1.6 2019/08/14 15:17:41 bsiegert Exp $ .include "../../lang/go/version.mk" DISTNAME= go${GO111_VERSION}.src PKGNAME= go111-${GO111_VERSION} CATEGORIES= lang MASTER_SITES= https://storage.googleapis.com/golang/ EXTRACT_USING= bsdtar MAINTAINER= bsiegert@@NetBSD.org HOMEPAGE= http://golang.org/ COMMENT= The Go programming language LICENSE= modified-bsd GOVERSSUFFIX= 111 WRKSRC= ${WRKDIR}/go USE_TOOLS+= bash:run perl:run pax # uses ulimit -T # BUILD_DEPENDS+= bash>=4.2nb3:../../shells/bash # cgo compiles under TMPDIR TMPDIR?= /tmp BUILDLINK_PASSTHRU_DIRS+= ${TMPDIR} GOROOT_FINAL= ${PREFIX}/go${GOVERSSUFFIX} INSTALLATION_DIRS= bin go${GOVERSSUFFIX} REPLACE_BASH+= doc/articles/wiki/test.bash REPLACE_BASH+= doc/codewalk/run REPLACE_BASH+= lib/time/update.bash REPLACE_BASH+= misc/arm/a REPLACE_BASH+= misc/benchcmp REPLACE_BASH+= misc/cgo/fortran/test.bash REPLACE_BASH+= misc/cgo/testgodefs/test.bash REPLACE_BASH+= misc/cgo/testplugin/test.bash REPLACE_BASH+= misc/nacl/go_nacl_386_exec REPLACE_BASH+= misc/nacl/go_nacl_amd64p32_exec REPLACE_BASH+= misc/nacl/go_nacl_arm_exec REPLACE_BASH+= misc/wasm/go_js_wasm_exec REPLACE_BASH+= src/all.bash REPLACE_BASH+= src/androidtest.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/github.com/google/pprof/test.sh REPLACE_BASH+= src/cmd/vendor/github.com/google/pprof/internal/binutils/testdata/build_mac.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/naclmake.bash REPLACE_BASH+= src/nacltest.bash REPLACE_BASH+= src/race.bash REPLACE_BASH+= src/run.bash REPLACE_BASH+= src/runtime/mknacl.sh REPLACE_BASH+= src/syscall/mkall.sh REPLACE_BASH+= src/syscall/mkerrors.sh REPLACE_BASH+= src/syscall/mksysnum_plan9.sh REPLACE_PERL+= src/cmd/vendor/golang.org/x/sys/unix/*.pl REPLACE_PERL+= src/net/http/cgi/testdata/test.cgi REPLACE_PERL+= src/regexp/syntax/make_perl_groups.pl REPLACE_PERL+= src/syscall/*.pl REPLACE_PERL+= test/errchk # 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 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}/go111/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" @ 1.6 log @go111: update to 1.11.13 (security release). net/http: Denial of Service vulnerabilities in the HTTP/2 implementation net/http and golang.org/x/net/http2 servers that accept direct connections from untrusted clients could be remotely made to allocate an unlimited amount of memory, until the program crashes. Servers will now close connections if the send queue accumulates too many control messages. The issues are CVE-2019-9512 and CVE-2019-9514, and Go issue golang.org/issue/33606. Thanks to Jonathan Looney from Netflix for discovering and reporting these issues. This is also fixed in version v0.0.0-20190813141303-74dc4d7220e7 of golang.org/x/net/http2. net/url: parsing validation issue url.Parse would accept URLs with malformed hosts, such that the Host field could have arbitrary suffixes that would appear in neither Hostname() nor Port(), allowing authorization bypasses in certain applications. Note that URLs with invalid, not numeric ports will now return an error from url.Parse. The issue is CVE-2019-14809 and Go issue golang.org/issue/29098. Thanks to Julian Hector and Nikolai Krein from Cure53, and Adi Cohen (adico.me) for discovering and reporting this issue. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.5 2019/08/11 13:21:21 wiz Exp $ @ 1.5 log @Bump PKGREVISIONs for perl 5.30.0 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 2019/05/27 14:33:10 bsiegert Exp $ a2 1 PKGREVISION= 1 @ 1.4 log @Update go111 to 1.11.10. This release includes fixes to the compiler, the linker, the go command, the runtime, and the os package. While here, remove pkg/bootstrap from the package, as it is only used for bootstrapping. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2018/10/02 18:19:56 bsiegert Exp $ d3 1 @ 1.3 log @Update go111 to 1.11.1. go1.11.1 (released 2018/10/01) includes fixes to the compiler, documentation, go command, runtime, and the crypto/x509, encoding/json, go/types, net, net/http, and reflect packages. See the Go 1.11.1 milestone on our issue tracker for details. Also correct the PLIST and use ln -sf instead of ln -s. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 2018/09/22 12:15:28 minskim Exp $ d110 1 a110 1 cd ${WRKSRC} && rm -rf .hgignore .hgtags pkg/obj @ 1.2 log @lang/go111: Fix ALTERNATIVES - Install versioned commands in bin/ - Use ALTERNATIVES to create commands without version suffix @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1 2018/09/18 16:22:14 bsiegert Exp $ a6 1 PKGREVISION= 1 d114 1 a114 1 ${LN} -s ${PREFIX}/go111/bin/${cmd} ${DESTDIR}${PREFIX}/bin/${cmd}${GOVERSSUFFIX} @ 1.1 log @Add Go 1.11 as lang/go111. This installs the go tool as go111; all the supporting files go under $PREFIX/go111, so it does not conflict with other Go versions. Go packages in pkgsrc do not use it to build yet. Changes: There are many changes and improvements to the toolchain, runtime, and libraries, but two features stand out as being especially exciting: modules and WebAssembly support. This release adds preliminary support for a new concept called "modules," an alternative to GOPATH with integrated support for versioning and package distribution. Module support is considered experimental, and there are still a few rough edges to smooth out, so please make liberal use of the issue tracker. Go 1.11 also adds an experimental port to WebAssembly (js/wasm). This allows programmers to compile Go programs to a binary format compatible with four major web browsers. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.67 2018/09/14 09:24:30 fhajny Exp $ d7 1 d91 2 d114 3 @