140 Commits

Author SHA1 Message Date
danj
5bbd4c1cd0 Update to go-1.16.5
This release includes security fixes to the archive/zip, math/big,
net, and net/http/httputil packages, as well as bug fixes to the
linker, the go command, and the net/http package.

ok jsing (maintainer, who noticed I forgot to update plist)
2021-06-07 11:02:54 +00:00
jsing
cbd3681633 Update lang/go to 1.16.4. 2021-05-16 07:40:45 +00:00
abieber
d9edc1b1a9 modgo-gen-modules should use MODGO_MODNAME instead of ALL_TARGET. 2021-03-23 13:19:08 +00:00
sthen
ef11160cd3 teach go.port.mk to handle repos with a primary executable in the root
and ancillaries in cmd/, from Josh Rickmar with a tweak from Mikolaj
Kucharski. earlier version ok abieber, I tested all go ports.
2021-03-18 22:35:26 +00:00
jsing
2afd4dd0ad Update lang/go to 1.16.2 2021-03-12 17:36:22 +00:00
jsing
23ca416684 Switch lang/go to libc-based syscalls on armv7 and i386.
This is already the case for amd64 and arm64 in Go 1.16. The conversion of
the remaining architectures is still being upstreamed.
2021-03-02 17:56:41 +00:00
espie
4917bb64da fix indentation of Makefile tests, this is already complicated enough
without bogus indents
2021-02-24 14:44:15 +00:00
jsing
a8ef4f7489 Switch lang/go on i386 to use a binary bootstrap.
This allows us to build with GO386=softfloat.

Discussed with abieber@ and sthen@
2021-02-23 17:32:57 +00:00
sthen
0810102b65 add a "native_bootstrap" pseudo-flavour, similar to jdk's, allowing
build with an existing installed go package. tweak/ok jsing@
2021-02-23 15:45:05 +00:00
jsing
b7aa6c9e3c Add binary bootstrap for mips64/octeon. 2021-02-21 17:21:42 +00:00
jsing
1fd0846f22 Bump lang/go binary bootstraps to Go 1.16. 2021-02-21 16:49:11 +00:00
jsing
4f7b2574e2 s/maching/machine/ 2021-02-20 15:13:56 +00:00
abieber
0666597e06 Update Go to 1.16.
OK jsing@
2021-02-20 14:56:34 +00:00
abieber
de6d4e48b0 Stop overwriting DISTFILES. This was an oversite on my part. Pointed out by
sthen@.

Tested with a mini-go-bulk.
2021-02-14 23:35:22 +00:00
abieber
55c166cd2c Update Go to 1.15.7
OK jsing@
2021-01-21 14:47:15 +00:00
abieber
1018dcc930 Teach go.port.mk and Go.pm how to escape modules that contain uppercase
letters.

OK kn, make magic from espie/naddy, feedback from afresh1 and sthen.
2021-01-16 23:38:13 +00:00
sthen
e43bc02578 For MODGO_MODULES ports, don't point the port to fetch files directly
from /usr/ports/distfiles when it wants to unpack modules during the
build, instead copy the files into the WRKDIR and point it there.

If there was a mistake with setting up MODGO_MODULES/MODGO_MODFILES
in a port then this change will cause it to show up in build, otherwise
it may succeed or fail randomly depending on what files are present in
distfiles (fetched by other ports).
2020-11-25 15:23:49 +00:00
paco
fa9826f854 new target modgo-gen-modules for lang/go
It generates the lists for MODGO_MODULES and MODGO_MODFILES
Useful to update go ports.

ok abieber@
2020-10-09 13:23:51 +00:00
jsing
5c9837fed5 Update lang/go to 1.15.2.
ok abieber@ naddy@
2020-09-27 16:48:56 +00:00
abieber
c9b7d0ca6e Update Go to 1.15.
OK jsing@
2020-08-21 22:12:24 +00:00
sthen
1ed9d5db68 regen plist to unbreak packaging on !amd64 2020-07-20 11:34:52 +00:00
abieber
dee78dc62d Bump Go to 1.15beta1.
- Add a permissions fix from sthen@
- Remove patches as they are not needed now

Tested on amd64, arm64, armv7 and i386 (ty sthen!).

armv7 has an intermittent issue with tests.

OK sthen, jsing
2020-07-17 18:19:17 +00:00
abieber
970e853fd4 Add the ability to follow redirected dependencies.
- De-duplicate our .mod and .zip files.
- Move chdir to a child process.
- Break MODGO_MODULES and MODGO_MODFILES values into their own lines
  for easier reading.
2020-06-25 13:57:45 +00:00
paco
2c326f8b33 add FIX_CLEANUP_PERMISSIONS and enable it by default on go.port.mk when
using MODGO_MODNAME.

This is needed to work around this issue:
https://github.com/golang/go/issues/27455

which makes `make clean` because of the restrictive permissions.

input and corrections from sthen@ and jca@
ok sthen@ jca@ espie@
2020-06-08 13:16:26 +00:00
ajacoutot
6e2966ef49 No need to extract the zip modules either, go takes care of it.
prodded by and ok abieber@
2020-05-17 13:08:20 +00:00
ajacoutot
251c3115fb Do not extract mod files. 2020-05-17 10:31:50 +00:00
ajacoutot
36674ba8e1 SUPDISTFILES is never added to DISTFILES so "make fetch" will not get them.
Move to DISTFILES directly; to be revisited once the go folks are awake but
it should at least fix the breakage seen by naddy@ for now.
2020-05-17 10:08:36 +00:00
abieber
9e0580770b Teach portgen how to speak Go!
With this a port can be easily generated for Go applications that support Go
modules (there will be a go.mod file in the root of the project).

For example: https://github.com/jrick/domain/blob/master/go.mod

The mod file lists "github.com/jrick/domain" as the module name, so a portgen
command to build the above tool would be:

  portgen go github.com/jrick/domain

OK afresh1@ kmos@
2020-05-15 01:32:48 +00:00
jsing
3a91ead37a Update lang/go binary bootstrap to a version that contains no ops following
swi instructions on openbsd/arm.
2020-03-20 11:23:08 +00:00
jsing
62aea85f26 Update lang/go to 1.13.9. 2020-03-20 09:04:07 +00:00
jsing
4f68b69023 Add two no op instructions following swi for Go on openbsd/arm.
arm processors have the same speculative execution flaw that occurs across
a syscall boundary, which was previously addressed in the arm64 port.
2020-03-20 08:02:29 +00:00
espie
0bce543793 simpler SEPARATE_BUILD semantics 2020-03-06 15:26:18 +00:00
jsing
6a54adbd27 Update lang/go binary bootstrap to a version that contains no ops following
svc instructions on openbsd/arm64.
2020-02-23 14:28:44 +00:00
jsing
9cf24da4ba Add two no op instructions following svc for Go on openbsd/arm64.
All except some of the most recent arm64 processors have a speculative
execution flaw that occurs across a syscall boundary, which cannot be
mitigated in the kernel. In order to protect against this leak a
speculation barrier needs to be placed after an svc instruction.

In order to avoid the performance impact of these instructions, the kernel
will soon start returning execution two instructions past the svc call.
For now two hardware no ops are added, which allows syscalls to work with
both old and new kernels. Once the kernel is cut over the no ops can be
replaced with actual speculation barriers.

Discussed at length with deraadt@
2020-02-04 17:22:42 +00:00
jsing
bfad729920 Update lang/go to 1.13.7. 2020-01-30 17:11:08 +00:00
jsing
82465f8e77 Update lang/go to 1.13.6. 2020-01-26 08:14:01 +00:00
jsing
c266ce0a5c Update lang/go to 1.13.5. 2020-01-01 13:03:39 +00:00
sthen
fe5573c2c8 actually pass ${MAKE_ENV}, GO386=387 wasn't getting correctly passed through
for lang/go itself (though was working for ports built using go.port.mk).
2019-12-02 22:20:38 +00:00
sthen
f99ed9e2ea include REVISION in PKGSPEC, to trigger updates in dependent packages
due to the i386 SSE->387 change
2019-11-19 09:30:40 +00:00
sthen
a8a3b70b58 On i386, currently go autodetects SSE at build time, and produces
binaries appropriate for the build machine. This doesn't work for
package builds where packages are produced on a machine with SSE
but are expected to work on machines without. Set GO386=387 during
the build to disable this. OK/improved comment from jsing@.
2019-11-19 09:17:06 +00:00
jsing
4db8f7e433 Update lang/go to 1.13.3.
This includes security fixes released in 1.13.2.
2019-10-24 16:22:07 +00:00
sthen
f23085c90b fix MODGO_PACKAGES and MODGO_TOOLS arch name on aarch64 machines (using
the same arch conversion list as done in the lang/go port itself; add
a comment reminding to keep them in-sync). unbreaks packaging of the
few golang ports that actually build on aarch64.
2019-10-06 15:37:15 +00:00
jsing
0d05e35621 Update lang/go to 1.13.1.
This addresses a security issue in net/http.

ok naddy@
2019-10-04 17:02:11 +00:00
tb
435f824b93 Make tests work with PORTS_PRIVSEP=Yes. 2019-09-27 19:04:57 +00:00
jsing
2b82a3c4b4 Set GO111MODULE=off via go.port.mk to prevent external access being
attempted during builds.

Fixes several other packages that break during build.

ok sthen@
2019-09-15 02:04:00 +00:00
jsing
c15e53f079 Enable Go on aarch64/arm64.
ok phessler@
2019-09-15 02:00:34 +00:00
sthen
99f7af9718 poison GOPROXY in the environment during ports build, ports aren't
allowed to access the network at build time and this makes failures
obvious even if you don't use (recommended) PORTS_PRIVSEP.
2019-09-14 21:30:41 +00:00
jsing
96037ecdb2 Update the lang/go binary bootstrap to Go 1.13. 2019-09-13 09:04:07 +00:00
jsing
1f984f36de Update lang/go to Go 1.13.
ok abieber@ sthen@
2019-09-12 18:48:30 +00:00
martijn
bc27853211 Add support for MODGO_BINDIR to allow go applications to be installed in
an alternative location. Still defaults to bin/.

OK sthen@
2019-09-04 12:22:03 +00:00