162 Commits

Author SHA1 Message Date
danj
f92277f3f8 Update to go-1.18.3
ok jsing@ (maintainer)
2022-06-13 23:49:55 +00:00
lraab
0937cfe03b lang/go: go.port.mk toggle GO111MODULE
ok landry@, abieber@ after discussion with landry, sthen, jsing, and abieber.

Fixes building sysutils/grafana pending future adjustments to Go ports
2022-05-28 01:46:40 +00:00
danj
b7512a4d86 Update to go-1.18.2
go1.18.2 (released 2022-05-10) includes security fixes to the
syscall package, as well as bug fixes to the compiler, runtime, the
go command, and the crypto/x509, go/types, net/http/httptest,
reflect, and sync/atomic packages.

ok jsing@ (maintainer), who spotted a mistake of mine in the PLIST
2022-05-17 02:10:06 +00:00
op
5be9ded4dd go.port.mk: use -p=N' not -p N'
if MODGO_FLAGS ends up in the environment as $GOFLAGS then go fails to
parse it and errors out:

	% GOFLAGS='-p 1' go build
	go: parsing $GOFLAGS: non-flag "1"

ok abieber@
2022-05-04 17:03:34 +00:00
jsing
b4c75e5e31 Update lang/go to 1.18.1. 2022-04-26 19:42:58 +00:00
danj
ce168f105f Remove empty file 2022-04-25 22:26:34 +00:00
jsing
a614f3db63 Update lang/go to Go 1.18.
ok abieber@
2022-04-24 13:16:01 +00:00
sdk
6b75943278 Drop $OpenBSD$ Tag from go.port.mk and cargo.port.mk
OK semarie@
2022-03-13 13:05:52 +00:00
naddy
e93f9d0ca9 drop RCS Ids 2022-03-11 19:28:46 +00:00
jsing
90069210a3 Update lang/go to 1.17.7. 2022-03-02 11:18:17 +00:00
kn
7e33fc98d2 Reduce variable expansion in DISTFILES list to speed up go ports
<go.port.mk> deals with lots of distfiles (read: go modules);
so many, that make(1) gets noticably slow doing thousands of variable
expansions, subtitutions, etc.

Use simpler `filename{url}sufx' bsd.port.mk(5) syntax in crafting DISTFILES
to avoid duplicate variable expansions.

Improvement for `time make -C net/telegraf show=PKGNAME` on my system:
 telegraf-1.21.2
-    0m05.40s real     0m04.72s user     0m00.67s system
+    0m04.45s real     0m03.73s user     0m00.72s system


No change in distinfo or builds.

sthen apparently had the same diff but never committed it
OK espie
2022-01-20 15:44:04 +00:00
jsing
c5cbbad7f5 Update lang/go to 1.17.5. 2021-12-14 17:22:19 +00:00
jsing
6efb897a1d Update lang/go to Go 1.17.3. 2021-11-06 06:54:00 +00:00
landry
e09ade2ced go.port.mk: point TMPDIR at WRKBUILD via MAKE_ENV
this way, go ports will stop polluting /tmp with go-build${timestamp}
dirs, and should use WRKBUILD as intended.

went in a bulk build without fallout, thanks ajacoutot@
2021-11-01 07:25:42 +00:00
sthen
ba10c532f7 use the suffix part of DISTFILES "local{upstream}suffix" syntax to reduce
size of DISTFILES.

refactor MODGO_SETUP_WORKSPACE generation to avoid regex on DISTFILES,
instead build it up from module names to pass to a shell for loop, allowing
a big reduction in command line length.

parts from espie, parts from me
2021-10-30 21:05:15 +00:00
sthen
900ea7df72 backout previous, MODGO_SETUP_WORKSPACE setup is even more horrible than i remembered 2021-10-30 18:06:09 +00:00
sthen
24e57f1b94 make use of DISTFILES syntax properly to avoid duplicating
foobar/blahblahblahblah/@v/v0.0.0-20210123012345-abcdefghijjkl.zip
(x 1000+ for the average modern go port) on generated command lines
"yep" espie
2021-10-30 17:15:11 +00:00
jsing
ac59ca4e08 Update lang/go to Go 1.17.
Thanks to Jacqueline Jolicoeur and Janne Johansson for testing.

ok abieber@
2021-08-27 18:33:26 +00:00
sthen
3bdb0a6a52 output # $OpenBSD$ in modgo-gen-modules output, to make it easier for
people who redirect straight to modules.inc.  ok abieber@
2021-07-27 13:13:02 +00:00
jsing
0f23831984 Update lang/go to 1.16.6. 2021-07-14 12:32:02 +00:00
jsing
9af078399a Add patches to support building and running on openbsd/mips64 (octeon).
This enables cgo support, switches to external linking and converts
syscalls from direct to libc/libpthread.
2021-07-11 14:44:56 +00:00
abieber
eb6ad31e92 Attempt to make the experience of updateing a Go port a bit easier.
- Add a version argument (second) to modgo-gen-modules-helper.
- Change modgo-gen-modules target to fetch module info for the
  current MODGO_VERSION of a port. Setting MODGO_VERSION=latest
  will fetch the latest version the Go ecosystem knows about.
  Similarly, if MODGO_VERSION is empty, fetch the latest
  verstion Go knows about.

While here:
- Add '-trimpath' to MODGO_FLAGS.

OK danj@
2021-07-03 02:37:46 +00:00
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