178 Commits

Author SHA1 Message Date
naddy
c0f5554a06 remove useless CONFIGURE_STYLE=none
If a port should not attempt to run a configure script, simply don't
set CONFIGURE_STYLE at all.

The perl and pyton modules use CONFIGURE_STYLE=none for their own
purposes.  Also, some ports use it to disable a default provided
by Makefile.inc.  Apart from that, CONFIGURE_STYLE=none has no meaning.

ok semarie@ ajacoutot@ kn@ sthen@
2022-11-13 22:24:51 +00:00
sdk
ac5a8872cb go.port.mk: use -buildvcs=false to prevent go from calling git
OK kn, sthen
2022-11-10 12:16:26 +00:00
jsing
c09accc5be Update lang/go to 1.19.2. 2022-10-17 18:06:21 +00:00
jsing
799c178aea lang/go: add support for openbsd/riscv64
This adds support for Go on openbsd/riscv64.

Requested by and ok jca@

ok abieber@
2022-09-20 12:02:33 +00:00
jsing
63c42c9461 Use GOARM=7 when building go bootstraps 2022-09-17 18:42:39 +00:00
jsing
8cfc5d32b6 Update lang/go to Go 1.19.1 2022-09-17 18:41:50 +00:00
tb
ea87766540 lang/go: rework do-install target
Instead of "find ... \;", use pax and "find ... {} +". This reduces
"make fake" from several minutes to a few seconds.

ok jsing
2022-08-28 09:38:30 +00:00
jsing
c1575be983 Update lang/go to Go 1.19.
ok tb@
2022-08-28 08:58:10 +00:00
jsing
889c1b1e43 Update lang/go to 1.18.5 2022-08-08 07:37:49 +00:00
jsing
ff81f9e76d Implement CPU feature detection for lang/go on openbsd/arm64.
Make use of the ISAR0 register information exposed via sysctl. This allows
Go to make use of the available hardware accelerated features.
2022-08-07 12:22:18 +00:00
jsing
2e1251ee09 Provide bootstrap target for building Go binary bootstraps. 2022-08-06 17:12:33 +00:00
sthen
6f5262fe3c Rework the "no bootstrap" message to a check in do-configure (similar to
the existing GOARCH check), avoiding ERRORS+=, which throws a fatal error
on archs which don't have go at all. Reported by kmos@
2022-08-02 08:32:58 +00:00
sthen
dab9be82b5 remove go-bootstrap, the C-based bootstrap compiler for go, which only
support amd64 and has not been updated for kernel changes or invoking
system calls via libc

ok jsing@
2022-07-28 13:55:21 +00:00
jsing
31d2acb9ba Update lang/go binary bootstraps to 1.18.4.
At least one of the older binary bootstraps was still using direct system
calls. This also changes amd64 to use binary bootstrap, as the native
go-bootstrap is no longer useful due to recent syscall removals.
2022-07-21 18:21:20 +00:00
jsing
d932ab97ee lang/go: add internal linking support for calling SDYNIMPORT on mips64
This adds internal linking support for calling SDYNIMPORT calls on
openbsd/mips64, which avoids the requirement for external linking with
libc-based system calls. This in turn allows for cross compilation and
reduces build/compilation time.
2022-07-21 11:51:11 +00:00
jsing
2ddaa6514e Update lang/go to 1.18.4 2022-07-13 20:04:39 +00:00
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