CVS: cvs.openbsd.org: ports

2024-05-15 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2024/05/15 06:10:47

Modified files:
lang/go: go.port.mk 

Log message:
Bump _MODGO_SYSTEM_VERSION for lang/go 1.22.3.



CVS: cvs.openbsd.org: ports

2024-05-15 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2024/05/15 06:10:13

Modified files:
lang/go: Makefile distinfo 
lang/go/pkg: PLIST 

Log message:
Update lang/go to 1.22.3.



CVS: cvs.openbsd.org: ports

2024-04-09 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2024/04/09 09:14:22

Modified files:
lang/go: go.port.mk 

Log message:
Bump _MODGO_SYSTEM_VERSION for lang/go update.



CVS: cvs.openbsd.org: ports

2024-04-09 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2024/04/09 09:11:16

Modified files:
lang/go: Makefile distinfo 
lang/go/pkg: PLIST 

Log message:
Update lang/go to 1.22.2.



CVS: cvs.openbsd.org: ports

2024-03-09 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2024/03/09 19:29:48

Modified files:
lang/go: Makefile distinfo 
lang/go/pkg: PLIST 

Log message:
Update lang/go to 1.22.1.

Thanks to tb@ for running it through a bulk.



CVS: cvs.openbsd.org: ports

2024-02-15 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2024/02/15 07:00:26

Modified files:
lang/go: go.port.mk 

Log message:
Bump _MODGO_SYSTEM_VERSION for lang/go 1.22.0 update.



CVS: cvs.openbsd.org: ports

2024-02-15 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2024/02/15 06:59:02

Modified files:
lang/go: Makefile distinfo 
lang/go/patches: patch-src_cmd_dist_build_go 
 patch-src_cmd_dist_test_go 
 patch-src_cmd_internal_objabi_reloctype_go 
 patch-src_cmd_internal_objabi_reloctype_string_go 
 patch-src_cmd_link_internal_ld_data_go 
 patch-src_cmd_link_internal_ld_elf_go 
 patch-src_cmd_link_internal_mips64_asm_go 
 patch-src_debug_elf_elf_go 
 patch-src_internal_platform_supported_go 
 patch-src_internal_platform_zosarch_go 
 patch-src_os_signal_signal_cgo_test_go 
 patch-src_runtime_asm_mips64x_s 
 patch-src_runtime_defs_openbsd_mips64_go 
 patch-src_runtime_proc_go 
 patch-src_syscall_exec_unix_go 
 patch-src_syscall_export_linux_test_go 
 patch-src_syscall_mkall_sh 
 patch-src_syscall_syscall_openbsd_libc_go 
 patch-src_syscall_zsyscall_openbsd_386_go 
 patch-src_syscall_zsyscall_openbsd_386_s 
 patch-src_syscall_zsyscall_openbsd_amd64_go 
 patch-src_syscall_zsyscall_openbsd_amd64_s 
 patch-src_syscall_zsyscall_openbsd_arm64_go 
 patch-src_syscall_zsyscall_openbsd_arm64_s 
 patch-src_syscall_zsyscall_openbsd_arm_go 
 patch-src_syscall_zsyscall_openbsd_arm_s 
 patch-src_syscall_zsyscall_openbsd_mips64_go 
 patch-src_syscall_zsyscall_openbsd_mips64_s 
 patch-src_syscall_zsyscall_openbsd_riscv64_go 
 patch-src_syscall_zsyscall_openbsd_riscv64_s 
lang/go/pkg: PLIST 
Added files:
lang/go/patches: patch-src_runtime_cgo_gcc_openbsd_c 
 patch-src_syscall_zsyscall_openbsd_ppc64_go 
 patch-src_syscall_zsyscall_openbsd_ppc64_s 
Removed files:
lang/go/patches: patch-src_cmd_asm_internal_asm_endtoend_test_go 
 patch-src_cmd_asm_internal_asm_testdata_riscv64_s 
 patch-src_cmd_internal_obj_riscv_cpu_go 
 patch-src_cmd_internal_obj_riscv_obj_go 
 patch-src_cmd_link_internal_amd64_asm_go 
 patch-src_cmd_link_internal_arm64_asm_go 
 patch-src_cmd_link_internal_arm_asm_go 
 patch-src_cmd_link_internal_ld_lib_go 
 patch-src_cmd_link_internal_ld_pcln_go 
 patch-src_cmd_link_internal_loadelf_ldelf_go 
 patch-src_cmd_link_internal_loong64_asm_go 
 patch-src_cmd_link_internal_mips_asm_go 
 patch-src_cmd_link_internal_ppc64_asm_go 
 patch-src_cmd_link_internal_riscv64_asm_go 
 patch-src_cmd_link_internal_riscv64_obj_go 
 patch-src_cmd_link_internal_s390x_asm_go 
 patch-src_cmd_link_internal_sym_reloc_go 
 patch-src_cmd_link_internal_x86_asm_go 
 patch-src_runtime_asm_riscv64_s 
 patch-src_runtime_cgo_gcc_openbsd_riscv64_c 
 patch-src_runtime_defs_openbsd_riscv64_go 
 patch-src_runtime_rt0_openbsd_riscv64_s 
 patch-src_runtime_signal_openbsd_riscv64_go 
 patch-src_runtime_signal_riscv64_go 
 patch-src_runtime_stubs_riscv64_go 
 patch-src_runtime_sys_openbsd_riscv64_s 
 patch-src_runtime_tls_riscv64_s 
 patch-src_syscall_asm_openbsd_riscv64_s 
 patch-src_syscall_bpf_bsd_go 
 patch-src_syscall_bpf_darwin_go 
 patch-src_syscall_flock_bsd_go 
 patch-src_syscall_flock_darwin_go 
 patch-src_syscall_flock_go 
 patch-src_syscall_flock_linux_go 
 patch-src_syscall_mksyscall_pl 
 patch-src_syscall_syscall_bsd_go 
 patch-src_syscall_syscall_darwin_go 
 patch-src_syscall_syscall_openbsd1_go 
 patch-src_syscall_syscall_openbsd_go 
 patch-src_syscall_syscall_openbsd_riscv64_go 
 

CVS: cvs.openbsd.org: ports

2024-01-10 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2024/01/10 05:36:01

Modified files:
lang/go: go.port.mk 

Log message:
Bump _MODGO_SYSTEM_VERSION for lang/go 1.21.6.



CVS: cvs.openbsd.org: ports

2024-01-10 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2024/01/10 05:35:10

Modified files:
lang/go: Makefile distinfo 
lang/go/pkg: PLIST 

Log message:
Update lang/go to 1.21.6.



CVS: cvs.openbsd.org: ports

2023-11-21 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2023/11/21 07:06:44

Modified files:
lang/go: Makefile 
lang/go/patches: patch-src_syscall_syscall_openbsd_libc_go 
 patch-src_syscall_zsyscall_openbsd_386_go 
 patch-src_syscall_zsyscall_openbsd_386_s 
 patch-src_syscall_zsyscall_openbsd_amd64_go 
 patch-src_syscall_zsyscall_openbsd_amd64_s 
 patch-src_syscall_zsyscall_openbsd_arm64_go 
 patch-src_syscall_zsyscall_openbsd_arm64_s 
 patch-src_syscall_zsyscall_openbsd_arm_go 
 patch-src_syscall_zsyscall_openbsd_arm_s 
 patch-src_syscall_zsyscall_openbsd_mips64_go 
 patch-src_syscall_zsyscall_openbsd_mips64_s 
 patch-src_syscall_zsyscall_openbsd_riscv64_go 
 patch-src_syscall_zsyscall_openbsd_riscv64_s 

Log message:
Remove references to the libc syscall stub from lang/go.

The syscall symbol will soon be removed from libc - remove references to it
from Go, so that it will continue to function. This effectively means that
syscall.Syscall* and syscall.RawSyscall* will stop working and return
ENOSYS. For the time being, given the amount of usage in the Go ecosystem,
reroute calls with SYS_IOCTl and SYS_SYSCTL to the appropriate libc stub,
so that they continue to work.

Thanks to tb@ for testing on systems with syscall removed from libc.



CVS: cvs.openbsd.org: ports

2023-11-09 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2023/11/09 05:48:33

Modified files:
lang/go: Makefile 
lang/go/patches: patch-src_internal_platform_supported_go 
 patch-src_syscall_syscall_openbsd_libc_go 
 patch-src_syscall_zsyscall_openbsd_mips64_go 
 patch-src_syscall_zsyscall_openbsd_mips64_s 
 patch-src_syscall_zsyscall_openbsd_riscv64_go 
 patch-src_syscall_zsyscall_openbsd_riscv64_s 
lang/go/pkg: PLIST 
Added files:
lang/go/patches: patch-src_cmd_dist_test_go 
 patch-src_internal_syscall_unix_ioctl_bsd_go 
 patch-src_internal_syscall_unix_ioctl_linux_go 
 patch-src_os_signal_signal_cgo_test_go 
 patch-src_syscall_bpf_bsd_go 
 patch-src_syscall_bpf_darwin_go 
 patch-src_syscall_export_bsd_test_go 
 patch-src_syscall_export_darwin_test_go 
 patch-src_syscall_export_linux_test_go 
 patch-src_syscall_export_unix_test_go 
 patch-src_syscall_flock_bsd_go 
 patch-src_syscall_flock_darwin_go 
 patch-src_syscall_flock_go 
 patch-src_syscall_flock_linux_go 
 patch-src_syscall_mksyscall_pl 
 patch-src_syscall_syscall_bsd_go 
 patch-src_syscall_syscall_darwin_go 
 patch-src_syscall_syscall_openbsd_go 
 patch-src_syscall_zsyscall_darwin_amd64_go 
 patch-src_syscall_zsyscall_darwin_amd64_s 
 patch-src_syscall_zsyscall_darwin_arm64_go 
 patch-src_syscall_zsyscall_darwin_arm64_s 
 patch-src_syscall_zsyscall_dragonfly_amd64_go 
 patch-src_syscall_zsyscall_freebsd_386_go 
 patch-src_syscall_zsyscall_freebsd_amd64_go 
 patch-src_syscall_zsyscall_freebsd_arm64_go 
 patch-src_syscall_zsyscall_freebsd_arm_go 
 patch-src_syscall_zsyscall_freebsd_riscv64_go 
 patch-src_syscall_zsyscall_netbsd_386_go 
 patch-src_syscall_zsyscall_netbsd_amd64_go 
 patch-src_syscall_zsyscall_netbsd_arm64_go 
 patch-src_syscall_zsyscall_netbsd_arm_go 
 patch-src_syscall_zsyscall_openbsd_386_go 
 patch-src_syscall_zsyscall_openbsd_386_s 
 patch-src_syscall_zsyscall_openbsd_amd64_go 
 patch-src_syscall_zsyscall_openbsd_amd64_s 
 patch-src_syscall_zsyscall_openbsd_arm64_go 
 patch-src_syscall_zsyscall_openbsd_arm64_s 
 patch-src_syscall_zsyscall_openbsd_arm_go 
 patch-src_syscall_zsyscall_openbsd_arm_s 

Log message:
Remove remaining indirect syscall usage in lang/go.

This removes the few remaining uses of indirect syscalls in Go's syscall
package, as well as those remaining in os/signal and syscall tests.

Unfortunately, this also means disabling the race detector on openbsd/amd64
since the race detector contains references to libc's syscall symbol. This
cannot currently be regenerated/updated, since LLVM TSAN went and removed
support for OpenBSD without discussing it with anyone.

Thanks to tb@ for testing this on amd64 and arm64 machines that do not have
indirect syscall support.

ok tb@



CVS: cvs.openbsd.org: ports

2023-10-16 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2023/10/16 21:53:17

Modified files:
lang/go: go.port.mk 

Log message:
Bump modgo version to rebuild packages with Go 1.21.3.



CVS: cvs.openbsd.org: ports

2023-10-16 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2023/10/16 21:52:18

Modified files:
lang/go: Makefile distinfo 
lang/go/patches: patch-src_cmd_link_internal_ld_lib_go 
lang/go/pkg: PLIST 

Log message:
Update lang/go to 1.21.3.



Re: Update to go-1.21.3

2023-10-14 Thread Joel Sing
On 23-10-13 20:05:35, Daniel Jakots wrote:
> Hey,
> 
> > go1.21.2 (released 2023-10-05) includes one security fixes to the
> > cmd/go package, as well as bug fixes to the compiler, the go command,
> > the linker, the runtime, and the runtime/metrics package. See the Go
> > 1.21.2 milestone on our issue tracker for details.
> > 
> > go1.21.3 (released 2023-10-10) includes a security fix to the
> > net/http package. See the Go 1.21.3 milestone on our issue tracker
> > for details. 
> 
> Here's a diff to update it to 1.21.3. All tests passed on amd64. I
> don't have access to other arches so make test on them are welcomed.
> 
> Comments? OK?

Thanks. I've already got an identical diff which I'll land as soon
as I finish further testing (likely tomorrow).

> Index: Makefile
> ===
> RCS file: /cvs/ports/lang/go/Makefile,v
> retrieving revision 1.140
> diff -u -p -r1.140 Makefile
> --- Makefile  19 Sep 2023 17:32:05 -  1.140
> +++ Makefile  14 Oct 2023 00:04:02 -
> @@ -7,7 +7,7 @@ COMMENT = Go programming language
>  
>  # increment _MODGO_SYSTEM_VERSION in go.port.mk after updating to a new
>  # version, to trigger updates of go-compiled ports
> -VERSION =1.21.1
> +VERSION =1.21.3
>  DISTNAME =   go${VERSION}.src
>  PKGNAME =go-${VERSION}
>  PKGSPEC =${FULLPKGNAME:S/go-/go-=/}
> Index: distinfo
> ===
> RCS file: /cvs/ports/lang/go/distinfo,v
> retrieving revision 1.86
> diff -u -p -r1.86 distinfo
> --- distinfo  8 Sep 2023 04:19:36 -   1.86
> +++ distinfo  14 Oct 2023 00:04:02 -
> @@ -4,11 +4,11 @@ SHA256 (go-openbsd-arm-bootstrap-1.20.4.
>  SHA256 (go-openbsd-arm64-bootstrap-1.20.4.tar.gz) = 
> G3sZhx63D+QLEgbwU1+d3ECiVJjVrFD5RqD2/qutXmI=
>  SHA256 (go-openbsd-mips64-bootstrap-1.20.4.tar.gz) = 
> CaZYJ+pIQp+lp721Ox45Y8uqkbsygcfyDFxQsqabPIs=
>  SHA256 (go-openbsd-riscv64-bootstrap-1.20.4.tar.gz) = 
> lQv/8KPWi8U3yLG+k3xVDNRVzxa5rmPIIpJUDrwVo0o=
> -SHA256 (go1.21.1.src.tar.gz) = v6Nr916aHpy725q8+dFwfkeb06B4gKiuNWTK7lcRy5k=
> +SHA256 (go1.21.3.src.tar.gz) = GG8rb4yLcE5paCGwmrIEGlwe4T3LwxVqE63PdZMe5Ig=
>  SIZE (go-openbsd-386-bootstrap-1.20.4.tar.gz) = 100681343
>  SIZE (go-openbsd-amd64-bootstrap-1.20.4.tar.gz) = 107075675
>  SIZE (go-openbsd-arm-bootstrap-1.20.4.tar.gz) = 104680775
>  SIZE (go-openbsd-arm64-bootstrap-1.20.4.tar.gz) = 102706601
>  SIZE (go-openbsd-mips64-bootstrap-1.20.4.tar.gz) = 105352848
>  SIZE (go-openbsd-riscv64-bootstrap-1.20.4.tar.gz) = 106167229
> -SIZE (go1.21.1.src.tar.gz) = 26974429
> +SIZE (go1.21.3.src.tar.gz) = 26976568
> cvs server: Diffing patches
> Index: patches/patch-src_cmd_link_internal_ld_lib_go
> ===
> RCS file: /cvs/ports/lang/go/patches/patch-src_cmd_link_internal_ld_lib_go,v
> retrieving revision 1.21
> diff -u -p -r1.21 patch-src_cmd_link_internal_ld_lib_go
> --- patches/patch-src_cmd_link_internal_ld_lib_go 8 Sep 2023 04:19:36 
> -   1.21
> +++ patches/patch-src_cmd_link_internal_ld_lib_go 14 Oct 2023 00:04:02 
> -
> @@ -1,7 +1,7 @@
>  Index: src/cmd/link/internal/ld/lib.go
>  --- src/cmd/link/internal/ld/lib.go.orig
>  +++ src/cmd/link/internal/ld/lib.go
> -@@ -1424,6 +1424,7 @@ func (ctxt *Link) hostlink() {
> +@@ -1428,6 +1428,7 @@ func (ctxt *Link) hostlink() {
>   }
>   case objabi.Hopenbsd:
>   argv = append(argv, "-Wl,-nopie")
> cvs server: Diffing pkg
> Index: pkg/PLIST
> ===
> RCS file: /cvs/ports/lang/go/pkg/PLIST,v
> retrieving revision 1.71
> diff -u -p -r1.71 PLIST
> --- pkg/PLIST 8 Sep 2023 04:19:37 -   1.71
> +++ pkg/PLIST 14 Oct 2023 00:04:03 -
> @@ -609,6 +609,7 @@ go/src/cmd/cgo/internal/testerrors/testd
>  go/src/cmd/cgo/internal/testerrors/testdata/err1.go
>  go/src/cmd/cgo/internal/testerrors/testdata/err2.go
>  go/src/cmd/cgo/internal/testerrors/testdata/err4.go
> +go/src/cmd/cgo/internal/testerrors/testdata/err5.go
>  go/src/cmd/cgo/internal/testerrors/testdata/issue11097a.go
>  go/src/cmd/cgo/internal/testerrors/testdata/issue11097b.go
>  go/src/cmd/cgo/internal/testerrors/testdata/issue14669.go
> @@ -723,6 +724,9 @@ go/src/cmd/cgo/internal/testplugin/testd
>  go/src/cmd/cgo/internal/testplugin/testdata/issue53989/p/
>  go/src/cmd/cgo/internal/testplugin/testdata/issue53989/p/p.go
>  go/src/cmd/cgo/internal/testplugin/testdata/issue53989/plugin.go
> +go/src/cmd/cgo/internal/testplugin/testdata/issue62430/
> +go/src/cmd/cgo/internal/testplugin/testdata/issue62430/main.go
> +go/src/cmd/cgo/internal/testplugin/testdata/issue62430/plugin.go
>  go/src/cmd/cgo/internal/testplugin/testdata/mangle/
>  go/src/cmd/cgo/internal/testplugin/testdata/mangle/plugin.go
>  go/src/cmd/cgo/internal/testplugin/testdata/method/
> @@ -5362,7 +5366,7 @@ 

CVS: cvs.openbsd.org: ports

2023-09-07 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2023/09/07 22:19:37

Modified files:
lang/go: Makefile distinfo 
lang/go/patches: patch-src_cmd_link_internal_ld_lib_go 
lang/go/pkg: PLIST 

Log message:
Update lang/go to 1.21.1



CVS: cvs.openbsd.org: ports

2023-08-10 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2023/08/10 00:51:56

Modified files:
lang/go: Makefile distinfo 
lang/go/patches: 
 patch-src_cmd_asm_internal_asm_testdata_riscv64_s 
 patch-src_cmd_dist_build_go 
 patch-src_cmd_internal_obj_riscv_cpu_go 
 patch-src_cmd_internal_obj_riscv_obj_go 
 patch-src_cmd_internal_objabi_reloctype_go 
 patch-src_cmd_internal_objabi_reloctype_string_go 
 patch-src_cmd_link_internal_amd64_asm_go 
 patch-src_cmd_link_internal_arm64_asm_go 
 patch-src_cmd_link_internal_ld_data_go 
 patch-src_cmd_link_internal_ld_elf_go 
 patch-src_cmd_link_internal_ld_lib_go 
 patch-src_cmd_link_internal_ld_pcln_go 
 patch-src_cmd_link_internal_loadelf_ldelf_go 
 patch-src_cmd_link_internal_loong64_asm_go 
 patch-src_cmd_link_internal_mips64_asm_go 
 patch-src_cmd_link_internal_mips64_obj_go 
 patch-src_cmd_link_internal_ppc64_asm_go 
 patch-src_cmd_link_internal_riscv64_obj_go 
 patch-src_cmd_link_internal_x86_asm_go 
 patch-src_debug_elf_elf_go 
 patch-src_runtime_asm_mips64x_s 
 patch-src_runtime_defs_openbsd_mips64_go 
 patch-src_runtime_defs_openbsd_riscv64_go 
 patch-src_runtime_os_openbsd_syscall2_go 
 patch-src_runtime_proc_go 
 patch-src_runtime_sys_openbsd_mips64_s 
 patch-src_runtime_sys_openbsd_riscv64_s 
 patch-src_syscall_exec_unix_go 
lang/go/pkg: PLIST 
Added files:
lang/go/patches: patch-src_internal_platform_supported_go 
 patch-src_internal_platform_zosarch_go 
Removed files:
lang/go/patches: patch-src_cmd_link_internal_ld_config_go 
 patch-src_cmd_link_internal_ld_main_go 

Log message:
Update lang/go to 1.21.0.

Thanks to tb@ for putting several versions through a bulk build.

ok tb@



CVS: cvs.openbsd.org: ports

2023-06-12 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2023/06/12 08:18:10

Modified files:
lang/go: Makefile distinfo 

Log message:
Update lang/go binary bootstrap to 1.20.4.

This also gains PT_OPENBSD_NOBTCFI markers on bootstrap binaries.



CVS: cvs.openbsd.org: ports

2023-05-08 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2023/05/08 23:07:00

Modified files:
lang/go: Makefile distinfo 
lang/go/patches: patch-src_cmd_link_internal_arm64_asm_go 
 patch-src_cmd_link_internal_ld_lib_go 
 patch-src_syscall_exec_unix_go 
 patch-src_syscall_zsyscall_openbsd_mips64_go 
 patch-src_syscall_zsyscall_openbsd_riscv64_go 
lang/go/pkg: PLIST 

Log message:
Update lang/go to 1.20.4



Re: net/ngtcp2 with GnuTLS support

2023-03-21 Thread Joel Sing
On 23-03-21 11:49:19, A Tammy wrote:
> On 3/21/23 11:28, Stuart Henderson wrote:
> > On 2023/03/21 15:53, David Vasek wrote:
> >> On 2023-03-21 15:32, A Tammy wrote:
> >>> On 3/21/23 08:26, David Vasek wrote:
>  Hello,
> 
>  more apps start using QUIC with GnuTLS. Port net/ngtcp2 can support
> > Any specific examples of software doing this?

I'm not sure I understand the actual end goal here - what functionality
does this provide that does not already exist?

>  GnuTLS in a subpackage with no change in the main package. However,
>  security/gnutls is needed for building the port with this diff and
>  as a
>  dependency for the new subpackage net/ngtcp2-gnutls. I have also
>  changed
>  the package description, but didn't touch the style of the
>  Makefile yet.
>  REVISON's of both subpackages set to he same value. Tested on amd64 so
>  far.
> >>> A lot of packages will automatically pick this up. This needs to be
> >>> turned on with care.
> >> It shouldn't pick anything automatically. The main package ngtcp2 will
> >> remain
> >> the same as before *), while the new subpackage ngtcp2-gnutls still needs
> >> to be
> >> explicitly requested.
> > In a bulk build, ports are built in parallel and packages are installed
> > and uninstalled all the time.
> >
> > If another port will pick this up _if present at configure/build time_, 
> > it must either be listed as a dependency or expicitly disabled (via
> > configure arguments, env vars, patches or whatever).
> >
> > (Additionally, I think that we will want to be sure that if *both*
> > crypto helpers are installed, the one using libressl as backend is
> > preferred where possible).
> 
> Yes, e.g. I know that net/knot prefers the gnutls one over the openssl one.
> 
> I prefer to use knot with openssl, but its just a preference, am open to
> moving to gnutls.
> 
> iirc curl also has some tie ins with ngtcp2, tb@ and jsing@ (cc'd) would
> know more.
> 
> >
> >> The only nuisance seems to be that there is additional dependency for
> >> building
> >> this port.
> >>
> >> *) With the exception of the time stamps, therefore I've set both
> >> REVISIONs to 1.
> > The PKGPATH changes, so additionally it needs "@pkgpath net/ngtcp2" in
> > PLIST-main otherwise updates will fail, also any ports depending on
> > it need a revision bump.
> >
> > +LIB_DEPENDS-gnutls=${BASE_PKGPATH},-main security/gnutls
> > +CONFIGURE_ARGS+=   --with-openssl --with-gnutls
> >
> > break the two entries in these out onto separate lines.
> >



CVS: cvs.openbsd.org: ports

2023-02-15 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2023/02/15 10:03:52

Modified files:
lang/go: Makefile distinfo 
lang/go/patches: patch-src_cmd_asm_internal_asm_endtoend_test_go 
 patch-src_cmd_dist_build_go 
 patch-src_cmd_internal_objabi_reloctype_go 
 patch-src_cmd_internal_objabi_reloctype_string_go 
 patch-src_cmd_link_internal_arm64_asm_go 
 patch-src_cmd_link_internal_ld_config_go 
 patch-src_cmd_link_internal_ld_data_go 
 patch-src_cmd_link_internal_ld_elf_go 
 patch-src_cmd_link_internal_ld_lib_go 
 patch-src_cmd_link_internal_ld_main_go 
 patch-src_cmd_link_internal_loadelf_ldelf_go 
 patch-src_cmd_link_internal_mips64_obj_go 
 patch-src_cmd_link_internal_ppc64_asm_go 
 patch-src_cmd_link_internal_riscv64_obj_go 
 patch-src_cmd_link_internal_s390x_asm_go 
 patch-src_runtime_asm_riscv64_s 
 patch-src_runtime_defs_openbsd_mips64_go 
 patch-src_runtime_defs_openbsd_riscv64_go 
 patch-src_runtime_os_openbsd_syscall2_go 
 patch-src_runtime_os_openbsd_syscall_go 
 patch-src_runtime_proc_go 
 patch-src_runtime_signal_riscv64_go 
 patch-src_runtime_sys_openbsd_mips64_s 
 patch-src_syscall_mkall_sh 
 patch-src_syscall_zsyscall_openbsd_riscv64_go 
 patch-src_syscall_zsyscall_openbsd_riscv64_s 
lang/go/pkg: PLIST 
Removed files:
lang/go/patches: 
 
patch-src_cmd_vendor_golang_org_x_sys_unix_asm_openbsd_riscv64_s 
 
patch-src_cmd_vendor_golang_org_x_sys_unix_syscall_openbsd_riscv64_go 
 
patch-src_cmd_vendor_golang_org_x_sys_unix_zerrors_openbsd_riscv64_go 
 
patch-src_cmd_vendor_golang_org_x_sys_unix_zsyscall_openbsd_riscv64_go 
 
patch-src_cmd_vendor_golang_org_x_sys_unix_zsysctl_openbsd_riscv64_go 
 
patch-src_cmd_vendor_golang_org_x_sys_unix_zsysnum_openbsd_riscv64_go 
 
patch-src_cmd_vendor_golang_org_x_sys_unix_ztypes_openbsd_riscv64_go 
 patch-src_internal_cpu_cpu_arm64_openbsd_go 
 patch-src_internal_cpu_cpu_arm64_other_go 
 patch-src_runtime_os_openbsd_go 
 patch-src_sync_atomic_atomic_test_go 
 patch-src_sync_atomic_type_go 
 
patch-src_vendor_golang_org_x_sys_cpu_cpu_other_riscv64_go 

Log message:
Update lang/go to 1.20.1.

Thanks to tb@ for putting an earlier version through a bulk build.

ok tb@



Re: remove a few go libraries leaf ports

2023-02-02 Thread Joel Sing
On 23-02-02 10:08:54, Omar Polo wrote:
> On 2023/02/02 20:00:44 +1100, Joel Sing  wrote:
> > On 23-02-02 09:35:32, Omar Polo wrote:
> > > These are a few ports that have no reverse deps (outside themselves)
> > > and that don't provide any binary, only the go code, and thus quite
> > > useless.  nowadays a go port would just use the modules if depends on
> > > these.
> > > 
> > >  - devel/go-sys
> > >  - security/go-crypto
> > >  - security/go-ed25519
> > >  - security/go-siphash
> > > 
> > > textproc/go-text could go as well but since it provides bin/colcmp
> > > maybe someone uses it?  (not that it couldn't be replaced with a
> > > proper -updated- port...)
> > 
> > Thanks - I believe the list is actually larger, from when I last looked
> > at this:
> 
> I already took care of some of them.  These were just removed:
> 
> >  - devel/go-goptlib
> >  - net/go-net
> 
> and this updated last week to use modules
> 
> >  - devel/go-tools
> 
> (gopls was moved to its own port.)

Ah, excellent. Thanks.

> so only these remains :)
> 
> I'm happy to remove textproc/go-text too, if anyone is using colcmp it
> would be easy to re-add as standalone port.

Please go ahead and remove textproc/go-text as well.

> >  - devel/go-sys
> >  - security/go-crypto
> >  - security/go-ed25519
> >  - security/go-siphash
> >  - textproc/go-text
> > 
> > All of these are seriously dated and if anyone uses binaries from these
> > they're likely using 'go install'. And if someone wants it packaged then
> > it needs to be updated (and sufficiently maintained), in which case it
> > will use modules and hence not the current deps.
> > 
> > I can't comment on the exact process, but I'm very much ok with removing
> > all of these, if you could add them to the list.



Re: remove a few go libraries leaf ports

2023-02-02 Thread Joel Sing
On 23-02-02 09:35:32, Omar Polo wrote:
> These are a few ports that have no reverse deps (outside themselves)
> and that don't provide any binary, only the go code, and thus quite
> useless.  nowadays a go port would just use the modules if depends on
> these.
> 
>  - devel/go-sys
>  - security/go-crypto
>  - security/go-ed25519
>  - security/go-siphash
> 
> textproc/go-text could go as well but since it provides bin/colcmp
> maybe someone uses it?  (not that it couldn't be replaced with a
> proper -updated- port...)

Thanks - I believe the list is actually larger, from when I last looked
at this:

 - devel/go-goptlib
 - devel/go-sys
 - devel/go-tools
 - net/go-net
 - security/go-crypto
 - security/go-ed25519
 - security/go-siphash
 - textproc/go-text

All of these are seriously dated and if anyone uses binaries from these
they're likely using 'go install'. And if someone wants it packaged then
it needs to be updated (and sufficiently maintained), in which case it
will use modules and hence not the current deps.

I can't comment on the exact process, but I'm very much ok with removing
all of these, if you could add them to the list.

> (+cc relevant maintainers)
> 
> cvs rm excluded for brevity.
> 
> Index: Makefile
> ===
> RCS file: /cvs/ports/devel/quirks/Makefile,v
> retrieving revision 1.1483
> diff -u -p -r1.1483 Makefile
> --- Makefile  2 Feb 2023 07:57:42 -   1.1483
> +++ Makefile  2 Feb 2023 08:28:57 -
> @@ -3,7 +3,7 @@ CATEGORIES =  devel databases
>  DISTFILES =
>  
>  # API.rev
> -PKGNAME =quirks-6.99
> +PKGNAME =quirks-6.100
>  PKG_ARCH =   *
>  MAINTAINER = Marc Espie 
>  
> Index: files/Quirks.pm
> ===
> RCS file: /cvs/ports/devel/quirks/files/Quirks.pm,v
> retrieving revision 1.1494
> diff -u -p -r1.1494 Quirks.pm
> --- files/Quirks.pm   2 Feb 2023 07:57:42 -   1.1494
> +++ files/Quirks.pm   2 Feb 2023 08:28:58 -
> @@ -1782,6 +1782,10 @@ setup_obsolete_reason(
>   3 => 'gotweb',
>   6 => 'go-net',
>   6 => 'go-goptlib',
> + 6 => 'go-sys',
> + 6 => 'go-crypto',
> + 6 => 'go-ed25519',
> + 6 => 'go-siphash',
>  );
>  
>  # though it's not yet used, these should be pkgnames, so that eventually



Re: go syscall/error/ioctl numbers etc.

2022-12-30 Thread Joel Sing
On 22-12-19 00:49:53, Joel Sing wrote:
> On 22-12-15 13:15:58, Stuart Henderson wrote:
> > golang.org/x/sys/unix/zerrors_openbsd_* and friends are seriously out
> > of date on some archs; zerrors for 386 must have been generated on
> > openbsd 5.7 or earlier; arm and amd64 somewhere between 5.8 and 6.0.
> > (I bumped into this trying to build something which wants O_CLOEXEC
> > but fails on i386).
> > 
> > How can we go about getting these updated upstream so that there's a
> > chance they'll eventually trickle down to projects using vendored copies?
> 
> Thanks - I'll look at respinning and upstreaming them in the coming weeks.

This has been done:

  https://go-review.googlesource.com/c/sys/+/459499

> > Here are diffs against the current files for i386 to give an example of
> > how far they've diverged.
> > 
> > I have updated files for i386/amd64 and will soon have them for aarch64
> > if they're any use...



CVS: cvs.openbsd.org: ports

2022-12-30 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2022/12/30 09:51:37

Modified files:
lang/go: Makefile distinfo 

Log message:
Switch lang/go binary bootstrap to 1.19.4.

In particular, this binary bootstrap works on armv7, meaning that lang/go
should build and become available on this platform again (apparently no
one else uses Go on armv7, given how long it has been broken for).

Thanks to tb@ for reporting the issue and testing a newer bootstrap.



CVS: cvs.openbsd.org: ports

2022-12-27 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2022/12/27 07:37:36

Modified files:
lang/go: Makefile distinfo 
lang/go/patches: patch-src_runtime_os_openbsd_syscall2_go 
 patch-src_runtime_sys_openbsd2_go 
 patch-src_runtime_sys_openbsd_mips64_s 
lang/go/pkg: PLIST 

Log message:
Update lang/go to 1.19.4.



Re: go syscall/error/ioctl numbers etc.

2022-12-18 Thread Joel Sing
On 22-12-15 13:15:58, Stuart Henderson wrote:
> golang.org/x/sys/unix/zerrors_openbsd_* and friends are seriously out
> of date on some archs; zerrors for 386 must have been generated on
> openbsd 5.7 or earlier; arm and amd64 somewhere between 5.8 and 6.0.
> (I bumped into this trying to build something which wants O_CLOEXEC
> but fails on i386).
> 
> How can we go about getting these updated upstream so that there's a
> chance they'll eventually trickle down to projects using vendored copies?

Thanks - I'll look at respinning and upstreaming them in the coming weeks.

> Here are diffs against the current files for i386 to give an example of
> how far they've diverged.
> 
> I have updated files for i386/amd64 and will soon have them for aarch64
> if they're any use...



CVS: cvs.openbsd.org: ports

2022-10-17 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2022/10/17 12:06:22

Modified files:
lang/go: Makefile distinfo 
lang/go/pkg: PLIST 

Log message:
Update lang/go to 1.19.2.



CVS: cvs.openbsd.org: ports

2022-09-20 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2022/09/20 06:02:33

Modified files:
lang/go: Makefile distinfo 
lang/go/patches: patch-src_cmd_internal_objabi_reloctype_go 
 patch-src_cmd_internal_objabi_reloctype_string_go 
 patch-src_cmd_link_internal_ld_elf_go 
 patch-src_cmd_link_internal_ld_lib_go 
 patch-src_cmd_link_internal_mips64_asm_go 
 patch-src_runtime_asm_mips64x_s 
 patch-src_syscall_mkall_sh 
lang/go/pkg: PLIST 
Added files:
lang/go/patches: patch-src_cmd_asm_internal_asm_endtoend_test_go 
 patch-src_cmd_asm_internal_asm_testdata_riscv64_s 
 patch-src_cmd_dist_build_go 
 patch-src_cmd_internal_obj_riscv_cpu_go 
 patch-src_cmd_internal_obj_riscv_obj_go 
 patch-src_cmd_link_internal_amd64_asm_go 
 patch-src_cmd_link_internal_arm64_asm_go 
 patch-src_cmd_link_internal_arm_asm_go 
 patch-src_cmd_link_internal_ld_config_go 
 patch-src_cmd_link_internal_ld_data_go 
 patch-src_cmd_link_internal_ld_pcln_go 
 patch-src_cmd_link_internal_loadelf_ldelf_go 
 patch-src_cmd_link_internal_loong64_asm_go 
 patch-src_cmd_link_internal_mips_asm_go 
 patch-src_cmd_link_internal_ppc64_asm_go 
 patch-src_cmd_link_internal_riscv64_asm_go 
 patch-src_cmd_link_internal_riscv64_obj_go 
 patch-src_cmd_link_internal_s390x_asm_go 
 patch-src_cmd_link_internal_sym_reloc_go 
 patch-src_cmd_link_internal_x86_asm_go 
 
patch-src_cmd_vendor_golang_org_x_sys_unix_asm_openbsd_riscv64_s 
 
patch-src_cmd_vendor_golang_org_x_sys_unix_syscall_openbsd_riscv64_go 
 
patch-src_cmd_vendor_golang_org_x_sys_unix_zerrors_openbsd_riscv64_go 
 
patch-src_cmd_vendor_golang_org_x_sys_unix_zsyscall_openbsd_riscv64_go 
 
patch-src_cmd_vendor_golang_org_x_sys_unix_zsysctl_openbsd_riscv64_go 
 
patch-src_cmd_vendor_golang_org_x_sys_unix_zsysnum_openbsd_riscv64_go 
 
patch-src_cmd_vendor_golang_org_x_sys_unix_ztypes_openbsd_riscv64_go 
 patch-src_runtime_asm_riscv64_s 
 patch-src_runtime_cgo_gcc_openbsd_riscv64_c 
 patch-src_runtime_defs_openbsd_riscv64_go 
 patch-src_runtime_rt0_openbsd_riscv64_s 
 patch-src_runtime_signal_openbsd_riscv64_go 
 patch-src_runtime_signal_riscv64_go 
 patch-src_runtime_stubs_riscv64_go 
 patch-src_runtime_sys_openbsd_riscv64_s 
 patch-src_runtime_tls_riscv64_s 
 patch-src_syscall_asm_openbsd_riscv64_s 
 patch-src_syscall_syscall_openbsd_riscv64_go 
 patch-src_syscall_zerrors_openbsd_riscv64_go 
 patch-src_syscall_zsyscall_openbsd_riscv64_go 
 patch-src_syscall_zsyscall_openbsd_riscv64_s 
 patch-src_syscall_zsysctl_openbsd_go 
 patch-src_syscall_zsysnum_openbsd_riscv64_go 
 patch-src_syscall_ztypes_openbsd_riscv64_go 
 
patch-src_vendor_golang_org_x_sys_cpu_cpu_other_riscv64_go 

Log message:
lang/go: add support for openbsd/riscv64

This adds support for Go on openbsd/riscv64.

Requested by and ok jca@

ok abieber@



CVS: cvs.openbsd.org: ports

2022-09-17 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2022/09/17 12:42:40

Modified files:
lang/go: Makefile 

Log message:
Use GOARM=7 when building go bootstraps



CVS: cvs.openbsd.org: ports

2022-09-17 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2022/09/17 12:41:50

Modified files:
lang/go: Makefile distinfo 
lang/go/pkg: PLIST 

Log message:
Update lang/go to Go 1.19.1



CVS: cvs.openbsd.org: ports

2022-08-28 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2022/08/28 02:58:10

Modified files:
lang/go: Makefile distinfo 
lang/go/patches: patch-src_cmd_internal_objabi_reloctype_go 
 patch-src_cmd_internal_objabi_reloctype_string_go 
 patch-src_cmd_link_internal_ld_elf_go 
 patch-src_cmd_link_internal_ld_lib_go 
 patch-src_cmd_link_internal_ld_main_go 
 patch-src_cmd_link_internal_mips64_asm_go 
 patch-src_cmd_link_internal_mips64_obj_go 
 patch-src_runtime_defs_openbsd_mips64_go 
 patch-src_runtime_os_openbsd_syscall1_go 
 patch-src_runtime_os_openbsd_syscall2_go 
 patch-src_runtime_os_openbsd_syscall_go 
 patch-src_runtime_proc_go 
 patch-src_runtime_sys_openbsd2_go 
 patch-src_runtime_sys_openbsd_mips64_s 
 patch-src_syscall_mkall_sh 
 patch-src_syscall_syscall_openbsd1_go 
 patch-src_syscall_zsyscall_openbsd_mips64_go 
lang/go/pkg: PLIST 
Removed files:
lang/go/patches: patch-src_cmd_link_internal_arm64_obj_go 
 patch-src_cmd_link_internal_riscv64_obj_go 

Log message:
Update lang/go to Go 1.19.

ok tb@



CVS: cvs.openbsd.org: ports

2022-08-08 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2022/08/08 01:37:49

Modified files:
lang/go: Makefile distinfo 
lang/go/pkg: PLIST 

Log message:
Update lang/go to 1.18.5



CVS: cvs.openbsd.org: ports

2022-08-07 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2022/08/07 06:22:18

Modified files:
lang/go: Makefile 
Added files:
lang/go/patches: patch-src_internal_cpu_cpu_arm64_openbsd_go 
 patch-src_internal_cpu_cpu_arm64_other_go 
 patch-src_runtime_os_openbsd_go 

Log message:
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.



CVS: cvs.openbsd.org: ports

2022-08-06 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2022/08/06 11:12:33

Modified files:
lang/go: Makefile 

Log message:
Provide bootstrap target for building Go binary bootstraps.



CVS: cvs.openbsd.org: ports

2022-07-21 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2022/07/21 12:21:20

Modified files:
lang/go: Makefile distinfo 

Log message:
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.



CVS: cvs.openbsd.org: ports

2022-07-21 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2022/07/21 05:51:11

Modified files:
lang/go: Makefile 
lang/go/patches: patch-src_cmd_internal_objabi_reloctype_go 
 patch-src_cmd_internal_objabi_reloctype_string_go 
 patch-src_cmd_link_internal_mips64_asm_go 
 patch-src_cmd_link_internal_mips64_obj_go 
 patch-src_runtime_proc_go 
 patch-src_runtime_sys_openbsd_mips64_s 
 patch-src_syscall_zsyscall_openbsd_mips64_go 
 patch-src_syscall_zsyscall_openbsd_mips64_s 
Added files:
lang/go/patches: patch-src_cmd_link_internal_arm64_obj_go 
 patch-src_cmd_link_internal_ld_elf_go 
 patch-src_cmd_link_internal_ld_lib_go 
 patch-src_cmd_link_internal_ld_main_go 
 patch-src_cmd_link_internal_riscv64_obj_go 
Removed files:
lang/go/patches: patch-src_cmd_go_internal_load_pkg_go 
 patch-src_cmd_internal_sys_supported_go 
 patch-src_internal_testenv_testenv_go 
 patch-test_fixedbugs_issue21576_go 
 patch-test_nilptr_go 

Log message:
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.



CVS: cvs.openbsd.org: ports

2022-07-13 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2022/07/13 14:04:39

Modified files:
lang/go: Makefile distinfo 
lang/go/pkg: PLIST 

Log message:
Update lang/go to 1.18.4



Re: Update to go-1.18.3

2022-06-12 Thread Joel Sing
On 22-06-12 11:07:49, Daniel Jakots wrote:
> Hi,
> 
> Now that visa's patch [1] is in, I'm sending this update as make test
> passes on amd64.
> 
> > go1.18.3 (released 2022-06-01) includes security fixes to the
> > crypto/rand, crypto/tls, os/exec, and path/filepath packages, as well
> > as bug fixes to the compiler, and the crypto/tls and
> > text/template/parse packages.
> 
> https://github.com/golang/go/issues?q=milestone%3AGo1.18.3+label%3ACherryPickApproved
> 
> abieber mentioned https://github.com/golang/go/issues/52814 may warrant
> the rebuild of all our ports. If we want to go that route, I can
> provide a diff to REVISION bump them.

I highly doubt that this is justified - it is at best a minor information leak
for clients that are performing TLSv1.3 with PSK session resumption, using a
ticket that the Go TLS server previously provided to them (RFC 8446 section
4.2.11.1 details the impact).

> [1]: 
> https://github.com/openbsd/src/commit/a26b930e92d7c8b0f65a8bb58d831bb5db99b57f
> 
> 
> Comments? OK?

ok jsing@

> Index: Makefile
> ===
> RCS file: /cvs/ports/lang/go/Makefile,v
> retrieving revision 1.111
> diff -u -p -r1.111 Makefile
> --- Makefile  17 May 2022 02:10:06 -  1.111
> +++ Makefile  12 Jun 2022 14:59:07 -
> @@ -5,7 +5,7 @@ BIN_BOOTSTRAP_VERSION = 1.16
>  
>  COMMENT =Go programming language
>  
> -VERSION =1.18.2
> +VERSION =1.18.3
>  DISTNAME =   go${VERSION}.src
>  PKGNAME =go-${VERSION}
>  PKGSPEC =${FULLPKGNAME:S/go-/go-=/}
> Index: distinfo
> ===
> RCS file: /cvs/ports/lang/go/distinfo,v
> retrieving revision 1.71
> diff -u -p -r1.71 distinfo
> --- distinfo  17 May 2022 02:10:06 -  1.71
> +++ distinfo  12 Jun 2022 14:59:07 -
> @@ -2,9 +2,9 @@ SHA256 (go-openbsd-386-bootstrap-1.16.ta
>  SHA256 (go-openbsd-arm-bootstrap-1.16.tar.gz) = 
> DjjCEzU/FnndIrKC8gh5PKAZkKp9Lt49aT3XPqhEWNM=
>  SHA256 (go-openbsd-arm64-bootstrap-1.16.tar.gz) = 
> qqc/TtaBfoq5oJcOHoqNZ6+bO+OOIRZoW1zlj19uBVw=
>  SHA256 (go-openbsd-mips64-bootstrap-1.16.tar.gz) = 
> dwojdjHgxrLlKC8QbseRYnOf8s/wN/Wx+UkPhH2aeJY=
> -SHA256 (go1.18.2.src.tar.gz) = LETQPqLDQJITerkZumAvLCYaA40I60aFKKPzoo5WZ+I=
> +SHA256 (go1.18.3.src.tar.gz) = ABI4bdy7XzNQ5AfGeZI4EdvSg/zcQhckkxYUqELsvC0=
>  SIZE (go-openbsd-386-bootstrap-1.16.tar.gz) = 131493298
>  SIZE (go-openbsd-arm-bootstrap-1.16.tar.gz) = 128073881
>  SIZE (go-openbsd-arm64-bootstrap-1.16.tar.gz) = 126892240
>  SIZE (go-openbsd-mips64-bootstrap-1.16.tar.gz) = 129935270
> -SIZE (go1.18.2.src.tar.gz) = 22837686
> +SIZE (go1.18.3.src.tar.gz) = 22838104
> cvs server: Diffing patches
> cvs server: Diffing pkg
> Index: pkg/PLIST
> ===
> RCS file: /cvs/ports/lang/go/pkg/PLIST,v
> retrieving revision 1.59
> diff -u -p -r1.59 PLIST
> --- pkg/PLIST 17 May 2022 02:10:06 -  1.59
> +++ pkg/PLIST 12 Jun 2022 14:59:08 -
> @@ -12025,6 +12025,10 @@ go/test/fixedbugs/issue51531.go
>  go/test/fixedbugs/issue5162.go
>  go/test/fixedbugs/issue5172.go
>  go/test/fixedbugs/issue51839.go
> +go/test/fixedbugs/issue52279.dir/
> +go/test/fixedbugs/issue52279.dir/lib.go
> +go/test/fixedbugs/issue52279.dir/main.go
> +go/test/fixedbugs/issue52279.go
>  go/test/fixedbugs/issue5231.go
>  go/test/fixedbugs/issue52438.go
>  go/test/fixedbugs/issue5244.go
> @@ -12964,12 +12968,14 @@ go/test/typeparam/issue51836.dir/a.go
>  go/test/typeparam/issue51836.dir/aa.go
>  go/test/typeparam/issue51836.dir/p.go
>  go/test/typeparam/issue51836.go
> +go/test/typeparam/issue51840.go
>  go/test/typeparam/issue52026.go
>  go/test/typeparam/issue52117.dir/
>  go/test/typeparam/issue52117.dir/a.go
>  go/test/typeparam/issue52117.dir/b.go
>  go/test/typeparam/issue52117.go
>  go/test/typeparam/issue52228.go
> +go/test/typeparam/issue52241.go
>  go/test/typeparam/list.go
>  go/test/typeparam/list2.go
>  go/test/typeparam/listimp.dir/



Re: Update to go-1.18.2

2022-05-16 Thread Joel Sing
On 22-05-16 07:21:12, Daniel Jakots wrote:
> Here's a patch for 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. See the Go 1.18.2 milestone on our issue
> > tracker for details. 
> https://github.com/golang/go/issues?q=milestone%3AGo1.18.2+label%3ACherryPickApproved
>  
> 
> I looked at it on amd64 on it only, but it looked fine.

I've also tested on arm64 and armv7.

> Comments? OK?

ok jsing@, with one PLIST fix noted below.

> Index: Makefile
> ===
> RCS file: /cvs/ports/lang/go/Makefile,v
> retrieving revision 1.110
> diff -u -p -r1.110 Makefile
> --- Makefile  26 Apr 2022 19:42:58 -  1.110
> +++ Makefile  16 May 2022 11:16:00 -
> @@ -5,7 +5,7 @@ BIN_BOOTSTRAP_VERSION = 1.16
>  
>  COMMENT =Go programming language
>  
> -VERSION =1.18.1
> +VERSION =1.18.2
>  DISTNAME =   go${VERSION}.src
>  PKGNAME =go-${VERSION}
>  PKGSPEC =${FULLPKGNAME:S/go-/go-=/}
> Index: distinfo
> ===
> RCS file: /cvs/ports/lang/go/distinfo,v
> retrieving revision 1.70
> diff -u -p -r1.70 distinfo
> --- distinfo  26 Apr 2022 19:42:58 -  1.70
> +++ distinfo  16 May 2022 11:16:00 -
> @@ -2,9 +2,9 @@ SHA256 (go-openbsd-386-bootstrap-1.16.ta
>  SHA256 (go-openbsd-arm-bootstrap-1.16.tar.gz) = 
> DjjCEzU/FnndIrKC8gh5PKAZkKp9Lt49aT3XPqhEWNM=
>  SHA256 (go-openbsd-arm64-bootstrap-1.16.tar.gz) = 
> qqc/TtaBfoq5oJcOHoqNZ6+bO+OOIRZoW1zlj19uBVw=
>  SHA256 (go-openbsd-mips64-bootstrap-1.16.tar.gz) = 
> dwojdjHgxrLlKC8QbseRYnOf8s/wN/Wx+UkPhH2aeJY=
> -SHA256 (go1.18.1.src.tar.gz) = 79Q+DxQC4IO3OgPURLe2V2u0xTmsRiCLY6kWtprKQIg=
> +SHA256 (go1.18.2.src.tar.gz) = LETQPqLDQJITerkZumAvLCYaA40I60aFKKPzoo5WZ+I=
>  SIZE (go-openbsd-386-bootstrap-1.16.tar.gz) = 131493298
>  SIZE (go-openbsd-arm-bootstrap-1.16.tar.gz) = 128073881
>  SIZE (go-openbsd-arm64-bootstrap-1.16.tar.gz) = 126892240
>  SIZE (go-openbsd-mips64-bootstrap-1.16.tar.gz) = 129935270
> -SIZE (go1.18.1.src.tar.gz) = 22834149
> +SIZE (go1.18.2.src.tar.gz) = 22837686
> cvs server: Diffing patches
> Index: patches/patch-src_cmd_go_internal_load_pkg_go
> ===
> RCS file: /cvs/ports/lang/go/patches/patch-src_cmd_go_internal_load_pkg_go,v
> retrieving revision 1.5
> diff -u -p -r1.5 patch-src_cmd_go_internal_load_pkg_go
> --- patches/patch-src_cmd_go_internal_load_pkg_go 26 Apr 2022 19:42:58 
> -  1.5
> +++ patches/patch-src_cmd_go_internal_load_pkg_go 16 May 2022 11:16:00 
> -
> @@ -1,7 +1,7 @@
>  Index: src/cmd/go/internal/load/pkg.go
>  --- src/cmd/go/internal/load/pkg.go.orig
>  +++ src/cmd/go/internal/load/pkg.go
> -@@ -2498,11 +2498,11 @@ func externalLinkingForced(p *Package) bool {
> +@@ -2513,11 +2513,11 @@ func externalLinkingForced(p *Package) bool {
>   // Some targets must use external linking even inside GOROOT.
>   switch cfg.BuildContext.GOOS {
>   case "android":
> cvs server: Diffing pkg
> Index: pkg/PLIST
> ===
> RCS file: /cvs/ports/lang/go/pkg/PLIST,v
> retrieving revision 1.58
> diff -u -p -r1.58 PLIST
> --- pkg/PLIST 26 Apr 2022 19:42:58 -  1.58
> +++ pkg/PLIST 16 May 2022 11:16:01 -
> @@ -2246,6 +2246,7 @@ go/src/cmd/compile/internal/types2/testd
>  go/src/cmd/compile/internal/types2/testdata/fixedbugs/issue51593.go2
>  go/src/cmd/compile/internal/types2/testdata/fixedbugs/issue51607.go2
>  go/src/cmd/compile/internal/types2/testdata/fixedbugs/issue51658.go2
> +go/src/cmd/compile/internal/types2/testdata/fixedbugs/issue52529.go2
>  go/src/cmd/compile/internal/types2/testdata/fixedbugs/issue6977.src
>  go/src/cmd/compile/internal/types2/testdata/manual.go2
>  go/src/cmd/compile/internal/types2/testdata/spec/
> @@ -2877,6 +2878,7 @@ go/src/cmd/go/testdata/script/bug.txt
>  go/src/cmd/go/testdata/script/build_GOTMPDIR.txt
>  go/src/cmd/go/testdata/script/build_acl_windows.txt
>  go/src/cmd/go/testdata/script/build_arm.txt
> +go/src/cmd/go/testdata/script/build_buildvcs_auto.txt
>  go/src/cmd/go/testdata/script/build_cache_arch_mode.txt
>  go/src/cmd/go/testdata/script/build_cache_compile.txt
>  go/src/cmd/go/testdata/script/build_cache_disabled.txt
> @@ -3300,6 +3302,7 @@ go/src/cmd/go/testdata/script/mod_retrac
>  go/src/cmd/go/testdata/script/mod_retract_rename.txt
>  go/src/cmd/go/testdata/script/mod_retract_replace.txt
>  go/src/cmd/go/testdata/script/mod_retract_versions.txt
> +go/src/cmd/go/testdata/script/mod_run_issue52331.txt
>  go/src/cmd/go/testdata/script/mod_run_nonmain.txt
>  go/src/cmd/go/testdata/script/mod_run_path.txt
>  

CVS: cvs.openbsd.org: ports

2022-04-26 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2022/04/26 13:42:58

Modified files:
lang/go: Makefile distinfo 
lang/go/patches: patch-src_cmd_go_internal_load_pkg_go 
lang/go/pkg: PLIST 

Log message:
Update lang/go to 1.18.1.



Re: Update to go-1.18.1

2022-04-25 Thread Joel Sing
On 22-04-25 20:33:44, Daniel Jakots wrote:
> Hi,
> 
> go1.18.1 was tagged shortly after 1.18.
> 
> > go1.18.1 (released 2022-04-12) includes security fixes to the
> > crypto/elliptic, crypto/x509, and encoding/pem packages, as well as
> > bug fixes to the compiler, linker, runtime, the go command, vet, and
> > the bytes, crypto/x509, and go/types packages. See the Go 1.18.1
> > milestone on our issue tracker for details. 
> https://github.com/golang/go/issues?q=milestone%3AGo1.18.1+label%3ACherryPickApproved
> 
> Or more precisely:
> $ git log go1.18..go1.18.1 --oneline 
> 0b0d2fe66d (tag: go1.18.1) [release-branch.go1.18] go1.18.1
> 84264fceca [release-branch.go1.18] encoding/pem: fix stack overflow in Decode
> 9535031e32 [release-branch.go1.18] go/types: don't report errors for untyped 
> int shifts on Go < 1.13
> 2097b2d51b [release-branch.go1.18] go/types, types2: fix overlap test for 
> union termlist
> c9b9a010eb [release-branch.go1.18] crypto/elliptic: tolerate zero-padded 
> scalars in generic P-256
> f92bfa440f [release-branch.go1.18] cmd/go: prevent panic in go work use
> abb3f05524 [release-branch.go1.18] crypto/x509: only disable SHA-1 
> verification for certificates
> c6ba470316 [release-branch.go1.18] cmd/go: prevent go work use panic when 
> given a file
> 30d9077a34 [release-branch.go1.18] crypto/x509: fix Certificate.Verify crash
> 6412231192 [release-branch.go1.18] go/types, types2: preserve parent scope 
> when substituting receivers
> 0bf8319883 [release-branch.go1.18] runtime: make static/dynamic startup 
> detection work with musl on ppc64le
> 78b8b4a176 [release-branch.go1.18] cmd/compile: replace Type.OrigSym with 
> Type.OrigType
> 6ebf676289 [release-branch.go1.18] all update vendored golang.org/x/tools
> 69bc821a01 [release-branch.go1.18] cmd/compile/internal/importer: key tparams 
> by Package instead of pkgname
> c258e9d07d [release-branch.go1.18] cmd/compile: fix panic with nested dead 
> hidden closures
> d17c5731ba [release-branch.go1.18] cmd/go: avoid stamping VCS metadata in 
> test binaries
> f4d55662d6 [release-branch.go1.18] cmd/compile: pointers to notinheap types 
> need their own shape
> 290883a559 [release-branch.go1.18] cmd/link: mark unexported methods for 
> plugins
> 39a8c8cf2e [release-branch.go1.18] cmd/compile: fix wrong dict param when 
> getting dict type
> 9d738480d2 [release-branch.go1.18] go/types, types2: use correct underlying 
> type in union set computation
> 32ff9b5de6 [release-branch.go1.18] crypto/x509: skip WSATRY_AGAIN errors when 
> dialing badssl.com subdomains
> 8b0583a054 [release-branch.go1.18] bytes: restore old Trim/TrimLeft behavior 
> for nil
> 677c6fe94c [release-branch.go1.18] runtime: call testenv.MustHaveCGO in a 
> couple of tests
> 
> make package and make test are fine on amd64
> 
> Comments? OK?

Thanks, I've already got a 1.18.1 update in the pipeline (just waiting
on some tests to finish). Expect it to land soon.

(as an aside, this appears to be missing a PLIST update)



CVS: cvs.openbsd.org: ports

2022-04-24 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2022/04/24 07:16:02

Modified files:
lang/go: Makefile distinfo 
lang/go/patches: patch-src_cmd_go_internal_load_pkg_go 
 patch-src_cmd_internal_objabi_reloctype_go 
 patch-src_cmd_internal_objabi_reloctype_string_go 
 patch-src_cmd_internal_sys_supported_go 
 patch-src_cmd_link_internal_mips64_asm_go 
 patch-src_internal_testenv_testenv_go 
 patch-src_runtime_asm_mips64x_s 
 patch-src_runtime_defs_openbsd_go 
 patch-src_runtime_os_openbsd_libc_go 
 patch-src_runtime_os_openbsd_syscall1_go 
 patch-src_runtime_os_openbsd_syscall2_go 
 patch-src_runtime_os_openbsd_syscall_go 
 patch-src_runtime_proc_go 
 patch-src_runtime_sys_libc_go 
 patch-src_runtime_sys_openbsd1_go 
 patch-src_runtime_sys_openbsd2_go 
 patch-src_runtime_sys_openbsd3_go 
 patch-src_runtime_sys_openbsd_go 
 patch-src_runtime_tls_mips64x_s 
 patch-src_syscall_exec_bsd_go 
 patch-src_syscall_exec_libc2_go 
 patch-src_syscall_exec_unix_go 
 patch-src_syscall_syscall_openbsd1_go 
 patch-src_syscall_syscall_openbsd_libc_go 
 patch-src_syscall_zsyscall_openbsd_mips64_go 
lang/go/pkg: PLIST 

Log message:
Update lang/go to Go 1.18.

ok abieber@



Re: Slowing down for the release

2022-03-27 Thread Joel Sing
On 22-03-24 16:43:28, Christian Weisgerber wrote:
> It's time to start slowing down for the upcoming 7.1 release.
> 
> There are no restrictions on the types of ports commits yet, but I
> would like to ask everybody to keep the approaching release in mind
> and to slowly wind down large ports work.
> 
> As usual, I'm also imploring people to test snapshot packages so
> bugs can be found and fixed before it is too late.

It would be good to have Go 1.18 make release - if we're not able
to do that, then we should update to 1.17.8.



CVS: cvs.openbsd.org: ports

2022-03-02 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2022/03/02 04:18:17

Modified files:
lang/go: Makefile distinfo 
lang/go/pkg: PLIST 

Log message:
Update lang/go to 1.17.7.



CVS: cvs.openbsd.org: ports

2021-12-14 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2021/12/14 10:22:19

Modified files:
lang/go: Makefile distinfo 
lang/go/patches: patch-src_runtime_sys_openbsd2_go 
 patch-src_syscall_exec_unix_go 
lang/go/pkg: PLIST 

Log message:
Update lang/go to 1.17.5.



CVS: cvs.openbsd.org: ports

2021-11-06 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2021/11/06 00:54:00

Modified files:
lang/go: Makefile distinfo 
lang/go/pkg: PLIST 

Log message:
Update lang/go to Go 1.17.3.



CVS: cvs.openbsd.org: ports

2021-08-27 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2021/08/27 12:33:27

Modified files:
lang/go: Makefile distinfo 
lang/go/patches: patch-src_cmd_go_internal_load_pkg_go 
 patch-src_cmd_internal_objabi_reloctype_go 
 patch-src_cmd_internal_objabi_reloctype_string_go 
 patch-src_cmd_internal_sys_supported_go 
 patch-src_cmd_link_internal_mips64_asm_go 
 patch-src_cmd_link_internal_mips64_obj_go 
 patch-src_internal_testenv_testenv_go 
 patch-src_runtime_asm_mips64x_s 
 patch-src_runtime_defs_openbsd_go 
 patch-src_runtime_defs_openbsd_mips64_go 
 patch-src_runtime_os_openbsd_libc_go 
 patch-src_runtime_os_openbsd_syscall1_go 
 patch-src_runtime_os_openbsd_syscall2_go 
 patch-src_runtime_os_openbsd_syscall_go 
 patch-src_runtime_proc_go 
 patch-src_runtime_sys_libc_go 
 patch-src_runtime_sys_openbsd1_go 
 patch-src_runtime_sys_openbsd2_go 
 patch-src_runtime_sys_openbsd3_go 
 patch-src_runtime_sys_openbsd_go 
 patch-src_runtime_sys_openbsd_mips64_s 
 patch-src_runtime_tls_mips64x_s 
 patch-src_syscall_asm_openbsd_mips64_s 
 patch-src_syscall_exec_bsd_go 
 patch-src_syscall_exec_libc2_go 
 patch-src_syscall_exec_unix_go 
 patch-src_syscall_mkall_sh 
 patch-src_syscall_syscall_openbsd1_go 
 patch-src_syscall_syscall_openbsd_libc_go 
 patch-src_syscall_zsyscall_openbsd_mips64_go 
 patch-src_syscall_zsyscall_openbsd_mips64_s 
 patch-test_fixedbugs_issue21576_go 
 patch-test_nilptr_go 
lang/go/pkg: PLIST 
Removed files:
lang/go/patches: patch-src_cmd_dist_build_go 
 patch-src_cmd_link_link_test_go 
 patch-src_cmd_nm_nm_cgo_test_go 
 patch-src_runtime_asm_386_s 
 patch-src_runtime_asm_arm_s 
 patch-src_runtime_cgo_gcc_openbsd_mips64_c 
 patch-src_runtime_crash_unix_test_go 
 patch-src_runtime_defs_openbsd_386_go 
 patch-src_runtime_defs_openbsd_arm_go 
 patch-src_runtime_os_darwin_go 
 patch-src_runtime_os_linux_go 
 patch-src_runtime_stubs_mips64x_go 
 patch-src_runtime_sys_openbsd2_mips64_go 
 patch-src_runtime_sys_openbsd2_nonmips64_go 
 patch-src_runtime_sys_openbsd_386_s 
 patch-src_runtime_sys_openbsd_arm_s 
 patch-src_syscall_asm_openbsd_386_s 
 patch-src_syscall_asm_openbsd_arm_s 
 patch-src_syscall_asm_unix_386_s 
 patch-src_syscall_mksyscall_pl 
 patch-src_syscall_zsyscall_openbsd_386_go 
 patch-src_syscall_zsyscall_openbsd_386_s 
 patch-src_syscall_zsyscall_openbsd_arm_go 
 patch-src_syscall_zsyscall_openbsd_arm_s 

Log message:
Update lang/go to Go 1.17.

Thanks to Jacqueline Jolicoeur and Janne Johansson for testing.

ok abieber@



Re: [update] lang/go to Go 1.17

2021-08-26 Thread Joel Sing
On 21-08-25 23:13:37, Stuart Henderson wrote:
> On 2021/08/24 16:13, Aaron Bieber wrote:
> > On Wed, 25 Aug 2021 at 04:10:43 +1000, Joel Sing wrote:
> > > The below diff updates lang/go to Go 1.17.
> > > 
> > > Tested on amd64 and arm64, still need to retest on arm, i386 and mips64.
> > > 
> > > ok?
> > > 
> > 
> > Mini-bulk finished:
> > 
> > Elapsed time=02:26:32
> > I=433 B=10 Q=0 T=105 F=0 !=1
> > E=net/termshark math/blas textproc/py-stemmer,python3
> > 
> > I was surprised by the termshark failure!:
> 
> It did that with earlier go too, but the workaround in do-build was enough
> before.

If I roll back to 20210601, net/termshark builds fine with Go 1.17, so it 
appears
to be something that has changed more recently, combined with Go 1.17. There is
a new copy of pty_openbsd.go in a different package which is seemingly now 
triggering
the issue - removing that file results in other problems :)

> >   github.com/pkg/term/termios
> >   github.com/gcla/termshark/v2/tty
> >   github.com/kr/pty
> >   # github.com/kr/pty
> >   
> > ../../../../go/pkg/mod/github.com/creack/pty@v1.1.14/pty_openbsd.go:27:10: 
> > undefined: ptmget
> >   
> > ../../../../go/pkg/mod/github.com/creack/pty@v1.1.14/pty_openbsd.go:28:34: 
> > undefined: ioctl_PTMGET
> >   *** Error 2 in net/termshark (Makefile:31 'do-build')
> >   *** Error 2 in net/termshark 
> > (/usr/ports/infrastructure/mk/bsd.port.mk:2943 
> > '/tmp/pobj/termshark-2.2.0/build-amd64/.build_done': @cd /usr/po...)
> >   *** Error 2 in net/termshark 
> > (/usr/ports/infrastructure/mk/bsd.port.mk:2602 'build': 
> > @lock=termshark-2.2.0p1;  export _LOCKS_HELD=" termshar...)
> >   ===> Exiting net/termshark with an error
> >   *** Error 1 in /usr/ports (infrastructure/mk/bsd.port.subdir.mk:137 
> > 'build': @: ${echo_msg:=echo};  : ${target:=build};  for i in ; do  eval...)
> >   >>> Ended at 1629838835.67
> >   max_stuck=7.22/clean=0.61/patch=12.36/configure=4.54/build=289.29
> >   Error: job failed with 512 on localhost at 1629838835
> > 
> > Everything else looks fine to me (I have been using a similar diff to test 
> > if
> > the lazy module stuff changes portgen)!
> > 
> > OK abieber@ if the other arches build :D 



CVS: cvs.openbsd.org: ports

2021-07-14 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2021/07/14 06:32:02

Modified files:
lang/go: Makefile distinfo 
lang/go/pkg: PLIST 

Log message:
Update lang/go to 1.16.6.



CVS: cvs.openbsd.org: ports

2021-07-11 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2021/07/11 10:38:44

Modified files:
infrastructure/mk: arch-defines.mk 

Log message:
Add mips64 (aka octeon) to GO_ARCHS.

Discussed with visa@



CVS: cvs.openbsd.org: ports

2021-07-11 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2021/07/11 08:44:56

Modified files:
lang/go: Makefile 
lang/go/patches: patch-src_cmd_link_link_test_go 
 patch-src_runtime_asm_386_s 
 patch-src_runtime_asm_arm_s 
 patch-src_runtime_crash_unix_test_go 
 patch-src_runtime_defs_openbsd_386_go 
 patch-src_runtime_defs_openbsd_arm_go 
 patch-src_runtime_os_openbsd_libc_go 
 patch-src_runtime_os_openbsd_syscall1_go 
 patch-src_runtime_os_openbsd_syscall2_go 
 patch-src_runtime_os_openbsd_syscall_go 
 patch-src_runtime_proc_go 
 patch-src_runtime_sys_libc_go 
 patch-src_runtime_sys_openbsd1_go 
 patch-src_runtime_sys_openbsd2_go 
 patch-src_runtime_sys_openbsd3_go 
 patch-src_runtime_sys_openbsd_386_s 
 patch-src_runtime_sys_openbsd_arm_s 
 patch-src_runtime_sys_openbsd_go 
 patch-src_syscall_asm_openbsd_386_s 
 patch-src_syscall_asm_openbsd_arm_s 
 patch-src_syscall_asm_unix_386_s 
 patch-src_syscall_exec_bsd_go 
 patch-src_syscall_exec_libc2_go 
 patch-src_syscall_mkall_sh 
 patch-src_syscall_mksyscall_pl 
 patch-src_syscall_syscall_openbsd1_go 
 patch-src_syscall_syscall_openbsd_libc_go 
 patch-src_syscall_zsyscall_openbsd_386_go 
 patch-src_syscall_zsyscall_openbsd_386_s 
 patch-src_syscall_zsyscall_openbsd_arm_go 
 patch-src_syscall_zsyscall_openbsd_arm_s 
lang/go/pkg: PLIST 
Added files:
lang/go/patches: patch-src_cmd_dist_build_go 
 patch-src_cmd_go_internal_load_pkg_go 
 patch-src_cmd_internal_objabi_reloctype_go 
 patch-src_cmd_internal_objabi_reloctype_string_go 
 patch-src_cmd_internal_sys_supported_go 
 patch-src_cmd_link_internal_mips64_asm_go 
 patch-src_cmd_link_internal_mips64_obj_go 
 patch-src_cmd_nm_nm_cgo_test_go 
 patch-src_internal_testenv_testenv_go 
 patch-src_runtime_asm_mips64x_s 
 patch-src_runtime_cgo_gcc_openbsd_mips64_c 
 patch-src_runtime_defs_openbsd_go 
 patch-src_runtime_defs_openbsd_mips64_go 
 patch-src_runtime_os_darwin_go 
 patch-src_runtime_os_linux_go 
 patch-src_runtime_stubs_mips64x_go 
 patch-src_runtime_sys_openbsd2_mips64_go 
 patch-src_runtime_sys_openbsd2_nonmips64_go 
 patch-src_runtime_sys_openbsd_mips64_s 
 patch-src_runtime_tls_mips64x_s 
 patch-src_syscall_asm_openbsd_mips64_s 
 patch-src_syscall_exec_unix_go 
 patch-src_syscall_zsyscall_openbsd_mips64_go 
 patch-src_syscall_zsyscall_openbsd_mips64_s 
 patch-test_fixedbugs_issue21576_go 
 patch-test_nilptr_go 

Log message:
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.



Re: Update to go-1.16.5

2021-06-07 Thread Joel Sing
On 21-06-05 09:01:15, Daniel Jakots wrote:
> Hi,
> 
> > go1.16.5 (released 2021-06-03) 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
> > packagckage.
> 
> https://golang.org/doc/devel/release#go1.16.minor
> 
> More details can be found on the announce:
> https://groups.google.com/g/golang-announce/c/RgCMkAEQjSI/m/r_EP-NlKBgAJ
> 
> > The SetString and UnmarshalText methods of math/big.Rat may cause a
> > panic or an unrecoverable fatal error if passed inputs with very large
> > exponents. This is issue #45910 and CVE-2021-33198.
> > 
> > ReverseProxy in net/http/httputil could be made to forward certain
> > hop-by-hop headers, including Connection. In case the target of the
> > ReverseProxy was itself a reverse proxy, this would let an attacker
> > drop arbitrary headers, including those set by the
> > ReverseProxy.Director. This is issue #46313 and CVE-2021-33197.
> > 
> > The LookupCNAME, LookupSRV, LookupMX, LookupNS, and LookupAddr
> > functions in net, and their respective methods on the Resolver type
> > may return arbitrary values retrieved from DNS which do not follow the
> > established RFC 1035 rules for domain names. If these names are used
> > without further sanitization, for instance unsafely included in HTML,
> > they may allow for injection of unexpected content. Note that
> > LookupTXT may still return arbitrary values that could require
> > sanitization before further use. This is issue #46241 and
> > CVE-2021-33195.
> > 
> > The NewReader and OpenReader functions in archive/zip can cause a
> > panic or an unrecoverable fatal error when reading an archive that
> > claims to contain a large number of files, regardless of its actual
> > size. This is issue #46242 and CVE-2021-33196.
> 
> 
> Patches didn't need to be regenerated and all tests pass on my amd64
> machine.
> 
> Comments? OK?

Also tested on arm64 and i386 - this appears to be missing an update
to the PLIST:

+go/src/cmd/go/testdata/script/mod_tidy_too_new.txt

With this, ok jsing@

> Index: Makefile
> ===
> RCS file: /cvs/ports/lang/go/Makefile,v
> retrieving revision 1.100
> diff -u -p -r1.100 Makefile
> --- Makefile  16 May 2021 07:40:45 -  1.100
> +++ Makefile  5 Jun 2021 12:52:23 -
> @@ -7,7 +7,7 @@ BIN_BOOTSTRAP_VERSION = 1.16
>  
>  COMMENT =Go programming language
>  
> -VERSION =1.16.4
> +VERSION =1.16.5
>  DISTNAME =   go${VERSION}.src
>  PKGNAME =go-${VERSION}
>  PKGSPEC =${FULLPKGNAME:S/go-/go-=/}
> Index: distinfo
> ===
> RCS file: /cvs/ports/lang/go/distinfo,v
> retrieving revision 1.62
> diff -u -p -r1.62 distinfo
> --- distinfo  16 May 2021 07:40:45 -  1.62
> +++ distinfo  5 Jun 2021 12:52:23 -
> @@ -2,9 +2,9 @@ SHA256 (go-openbsd-386-bootstrap-1.16.ta
>  SHA256 (go-openbsd-arm-bootstrap-1.16.tar.gz) = 
> DjjCEzU/FnndIrKC8gh5PKAZkKp9Lt49aT3XPqhEWNM=
>  SHA256 (go-openbsd-arm64-bootstrap-1.16.tar.gz) = 
> qqc/TtaBfoq5oJcOHoqNZ6+bO+OOIRZoW1zlj19uBVw=
>  SHA256 (go-openbsd-mips64-bootstrap-1.16.tar.gz) = 
> dwojdjHgxrLlKC8QbseRYnOf8s/wN/Wx+UkPhH2aeJY=
> -SHA256 (go1.16.4.src.tar.gz) = rk9rbioWd9MYF5hGVadiB0tTVtpQ+1hyK5kQSHDUNQM=
> +SHA256 (go1.16.5.src.tar.gz) = e/p+WQjHzJ512l3fMGbXy88/2fpRlFhRMl7rwX9QuoA=
>  SIZE (go-openbsd-386-bootstrap-1.16.tar.gz) = 131493298
>  SIZE (go-openbsd-arm-bootstrap-1.16.tar.gz) = 128073881
>  SIZE (go-openbsd-arm64-bootstrap-1.16.tar.gz) = 126892240
>  SIZE (go-openbsd-mips64-bootstrap-1.16.tar.gz) = 129935270
> -SIZE (go1.16.4.src.tar.gz) = 20917203
> +SIZE (go1.16.5.src.tar.gz) = 20921372



CVS: cvs.openbsd.org: ports

2021-05-16 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2021/05/16 01:40:45

Modified files:
lang/go: Makefile distinfo 
lang/go/pkg: PLIST 

Log message:
Update lang/go to 1.16.4.



CVS: cvs.openbsd.org: ports

2021-03-12 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2021/03/12 10:36:22

Modified files:
lang/go: Makefile distinfo 
lang/go/pkg: PLIST 

Log message:
Update lang/go to 1.16.2



CVS: cvs.openbsd.org: ports

2021-03-02 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2021/03/02 10:56:41

Modified files:
lang/go: Makefile 
lang/go/pkg: PLIST 
Added files:
lang/go/patches: patch-src_cmd_link_link_test_go 
 patch-src_runtime_asm_386_s 
 patch-src_runtime_asm_arm_s 
 patch-src_runtime_crash_unix_test_go 
 patch-src_runtime_defs_openbsd_386_go 
 patch-src_runtime_defs_openbsd_arm_go 
 patch-src_runtime_os_openbsd_libc_go 
 patch-src_runtime_os_openbsd_syscall1_go 
 patch-src_runtime_os_openbsd_syscall2_go 
 patch-src_runtime_os_openbsd_syscall_go 
 patch-src_runtime_proc_go 
 patch-src_runtime_sys_libc_go 
 patch-src_runtime_sys_openbsd1_go 
 patch-src_runtime_sys_openbsd2_go 
 patch-src_runtime_sys_openbsd3_go 
 patch-src_runtime_sys_openbsd_386_s 
 patch-src_runtime_sys_openbsd_arm_s 
 patch-src_runtime_sys_openbsd_go 
 patch-src_syscall_asm_openbsd_386_s 
 patch-src_syscall_asm_openbsd_arm_s 
 patch-src_syscall_asm_unix_386_s 
 patch-src_syscall_exec_bsd_go 
 patch-src_syscall_exec_libc2_go 
 patch-src_syscall_mkall_sh 
 patch-src_syscall_mksyscall_pl 
 patch-src_syscall_syscall_openbsd1_go 
 patch-src_syscall_syscall_openbsd_libc_go 
 patch-src_syscall_zsyscall_openbsd_386_go 
 patch-src_syscall_zsyscall_openbsd_386_s 
 patch-src_syscall_zsyscall_openbsd_arm_go 
 patch-src_syscall_zsyscall_openbsd_arm_s 

Log message:
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.



CVS: cvs.openbsd.org: ports

2021-02-23 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2021/02/23 10:32:57

Modified files:
lang/go: Makefile distinfo 

Log message:
Switch lang/go on i386 to use a binary bootstrap.

This allows us to build with GO386=softfloat.

Discussed with abieber@ and sthen@



CVS: cvs.openbsd.org: ports

2021-02-21 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2021/02/21 10:21:42

Modified files:
lang/go: Makefile distinfo 

Log message:
Add binary bootstrap for mips64/octeon.



CVS: cvs.openbsd.org: ports

2021-02-21 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2021/02/21 09:49:11

Modified files:
lang/go: Makefile distinfo 

Log message:
Bump lang/go binary bootstraps to Go 1.16.



CVS: cvs.openbsd.org: ports

2021-02-20 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2021/02/20 08:13:56

Modified files:
lang/go: Makefile 

Log message:
s/maching/machine/



Re: [update] lang/go to 1.16

2021-02-20 Thread Joel Sing
On 21-02-20 10:39:40, Stuart Henderson wrote:
> On 2021/02/20 17:53, Joel Sing wrote:
> > > -MAKE_ENV +=  GO386=387
> > 
> > We'll presumably want to keep this with GO386=softfloat - otherwise the
> > go binary package will only be useable on i386 CPUs with SSE support.
> 
> Yes, it's needed for ALIX/WRAP/net5501/net4801 which still just about
> work with OpenBSD (as long as you don't run anything consuming much RAM
> until after reorder_kernel is done, the LLVM linker is quite greedy).

Right, although you're more likely to run binary packages (hence
the go.port.mk change) on such a machine, rather than the go toolchain
itself (which the Makefile part should only cover). That said, I have
no strong preference here :)



Re: [update] lang/go to 1.16

2021-02-19 Thread Joel Sing
On 21-02-19 17:22:09, Aaron Bieber wrote:
> Here is a fairly well tested update to Go. This version now uses libc[1] 
> thanks
> to jsing@'s hard work!

Just to clarify, Go 1.16 uses libc-based syscalls for amd64 and
arm64. The remaining platforms (openbsd/386, openbsd/arm, openbsd/mips64)
are still using direct syscalls. Once this update lands I'll patch
the remaining platforms in ports.

> Some other changes that impact OpenBSD:
> 
> - Modules are used by default now. This breaks  sysutils/amazon-ssm-agent,
>   sysutils/fleetctl and  textproc/loccount, but I have fixes standing by[2] 
> for
>   when this goes in.
> - GO386=387 support was dropped[3]. We now use "GO386=softfloat". I have done 
> a
>   mini-bulk on i386 and everything works as expected. 
> 
> Test results are fairly typical, amd64 and i386 pass, arm{v7,64} have some
> sporadic issues like before.
> 
> The diff also includes a fix for portgen. The behavior of 'go list -m all'
> changed a bit[4].
> 
> Also tested but not included: mips64 support \o/

This will still require a little effort and bootstrap, I'll deal with
this once we've got Go 1.16 with libc-based syscalls for the existing
four platforms.

> OK?

ok jsing@, see comment inline.

> [1] https://github.com/golang/go/issues/36435
> [2] https://github.com/openbsd/ports/compare/master...qbit:go1.16rc1
> [3] https://github.com/golang/go/issues/40255
> [4] https://github.com/golang/go/issues/44238
> 
> Index: infrastructure/lib/OpenBSD/PortGen/Port/Go.pm
> ===
> RCS file: /cvs/ports/infrastructure/lib/OpenBSD/PortGen/Port/Go.pm,v
> retrieving revision 1.7
> diff -u -p -r1.7 Go.pm
> --- infrastructure/lib/OpenBSD/PortGen/Port/Go.pm 16 Jan 2021 23:38:13 
> -  1.7
> +++ infrastructure/lib/OpenBSD/PortGen/Port/Go.pm 20 Feb 2021 00:18:03 
> -
> @@ -144,7 +144,7 @@ sub _go_mod_info
>   close $fh;
>  
>   # Outputs: "dep version"
> - my @raw_deps = $self->_run($dir, qw(go list -m all));
> + my @raw_deps = $self->_run($dir, qw(go list -mod=mod -m all));
>   my @deps;
>   my $all_deps = {};
>   foreach my $dep (@raw_deps) {
> Index: lang/go/Makefile
> ===
> RCS file: /cvs/ports/lang/go/Makefile,v
> retrieving revision 1.91
> diff -u -p -r1.91 Makefile
> --- lang/go/Makefile  21 Jan 2021 14:47:15 -  1.91
> +++ lang/go/Makefile  20 Feb 2021 00:18:03 -
> @@ -7,7 +7,7 @@ BIN_BOOTSTRAP_VERSION = 1.13.9
>  
>  COMMENT =Go programming language
>  
> -VERSION =1.15.7
> +VERSION =1.16
>  DISTNAME =   go${VERSION}.src
>  PKGNAME =go-${VERSION}
>  PKGSPEC =${FULLPKGNAME:S/go-/go-=/}
> @@ -54,11 +54,6 @@ GOARCH =   arm64
>  .elif ${MACHINE_ARCH} == "i386"
>  GOARCH = 386
>  .endif
> -
> -# We cannot assume that the maching running the built code will have SSE,
> -# even though the machine building the package has SSE. As such, we need
> -# to explicitly disable SSE on i386 builds.
> -MAKE_ENV +=  GO386=387

We'll presumably want to keep this with GO386=softfloat - otherwise the
go binary package will only be useable on i386 CPUs with SSE support.

>  .for arch in ${BIN_BOOTSTRAP_GOARCHS}
>  SUPDISTFILES +=  
> go-openbsd-${arch}-bootstrap-${BIN_BOOTSTRAP_VERSION}${EXTRACT_SUFX}:0
> Index: lang/go/distinfo
> ===
> RCS file: /cvs/ports/lang/go/distinfo,v
> retrieving revision 1.56
> diff -u -p -r1.56 distinfo
> --- lang/go/distinfo  21 Jan 2021 14:47:15 -  1.56
> +++ lang/go/distinfo  20 Feb 2021 00:18:03 -
> @@ -1,6 +1,6 @@
>  SHA256 (go-openbsd-arm-bootstrap-1.13.9.tar.gz) = 
> j+uAyYE4OsdncBvt6YDTXhjGc9gQq0XCjmSUdOesiq8=
>  SHA256 (go-openbsd-arm64-bootstrap-1.13.9.tar.gz) = 
> 84YoDEuNNmXbGCSzP8g5X1zqPdoOPB8yW71vsUL+5jw=
> -SHA256 (go1.15.7.src.tar.gz) = hjGzqv2Oy5JE7C/7iiqLSYPPStFVcrmAH3xbFnwaKrw=
> +SHA256 (go1.16.src.tar.gz) = dogGPVVlYQWJjzI9kKeaOcN42G/omuGS6zt/xGNHyVo=
>  SIZE (go-openbsd-arm-bootstrap-1.13.9.tar.gz) = 120208513
>  SIZE (go-openbsd-arm64-bootstrap-1.13.9.tar.gz) = 118521763
> -SIZE (go1.15.7.src.tar.gz) = 23017978
> +SIZE (go1.16.src.tar.gz) = 20895394
> Index: lang/go/go.port.mk
> ===
> RCS file: /cvs/ports/lang/go/go.port.mk,v
> retrieving revision 1.38
> diff -u -p -r1.38 go.port.mk
> --- lang/go/go.port.mk14 Feb 2021 23:35:22 -  1.38
> +++ lang/go/go.port.mk20 Feb 2021 00:18:03 -
> @@ -47,7 +47,7 @@ MODGO_GOPATH ?= ${MODGO_WORKSPACE}:${MO
>  # We cannot assume that the maching running the built code will have SSE,
>  # even though the machine building the package has SSE. As such, we need
>  # to explicitly disable SSE on i386 builds.
> -MAKE_ENV +=  GO386=387
> +MAKE_ENV +=  GO386=softfloat
>  

CVS: cvs.openbsd.org: ports

2020-09-27 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2020/09/27 10:48:57

Modified files:
lang/go: Makefile distinfo 
lang/go/pkg: PLIST 

Log message:
Update lang/go to 1.15.2.

ok abieber@ naddy@



Re: [update] lang/go to 1.15

2020-08-21 Thread Joel Sing
On 20-08-20 15:36:23, Aaron Bieber wrote:
> Hi!
> 
> Here is an update to bring us to 1.15.
> 
> I have run this through a "mini bulk" - there was one failure, but the port
> that failed (net/minio/server) builds fine by hand. The log is here:
>   https://deftly.net/server.log
> 
> I have tested:
> 
> | Arch  | Go port build | Bulk | Apps | Tests|
> |---+---+--+--+--|
> | amd64 | Y | Y| Y| ALL TESTS PASSED |
> | arm64 | Y | N| Y| Running...   |
> | armv7 | - | N| N|  |
> | i386  | - | N| N|  |
> 
> My armv7 machine is updating. I will report back once I run the build/test on
> it.
> 
> I don't have an i386 machine.
> 
> edd@ has a diff for syncthing that I also tested (build and runtime). With 
> this
> diff and edd's, syncthing is back up and running!

I presume this was broken already and did not break moving from Go 1.15 beta1 to
release?

> OK?

Thanks - I was in the process of doing this and have already tested on i386.
ok jsing@, providing regress passes on arm64 and armv7 (and without PLIST.orig
of course!).



CVS: cvs.openbsd.org: ports

2020-03-20 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2020/03/20 05:23:08

Modified files:
lang/go: Makefile distinfo 

Log message:
Update lang/go binary bootstrap to a version that contains no ops following
swi instructions on openbsd/arm.



CVS: cvs.openbsd.org: ports

2020-03-20 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2020/03/20 03:04:07

Modified files:
lang/go: Makefile distinfo 
lang/go/pkg: PLIST 

Log message:
Update lang/go to 1.13.9.



CVS: cvs.openbsd.org: ports

2020-03-20 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2020/03/20 02:02:29

Modified files:
lang/go: Makefile 
Added files:
lang/go/patches: patch-src_runtime_sys_openbsd_arm_s 
 patch-src_syscall_asm_openbsd_arm_s 

Log message:
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.



CVS: cvs.openbsd.org: ports

2020-02-23 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2020/02/23 07:28:44

Modified files:
lang/go: Makefile distinfo 

Log message:
Update lang/go binary bootstrap to a version that contains no ops following
svc instructions on openbsd/arm64.



CVS: cvs.openbsd.org: ports

2020-02-04 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2020/02/04 10:22:42

Modified files:
lang/go: Makefile 
Added files:
lang/go/patches: patch-src_runtime_sys_openbsd_arm64_s 
 patch-src_syscall_asm_openbsd_arm64_s 

Log message:
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@



CVS: cvs.openbsd.org: ports

2020-01-30 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2020/01/30 10:11:08

Modified files:
lang/go: Makefile distinfo 

Log message:
Update lang/go to 1.13.7.



CVS: cvs.openbsd.org: ports

2020-01-26 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2020/01/26 01:14:01

Modified files:
lang/go: Makefile distinfo 

Log message:
Update lang/go to 1.13.6.



CVS: cvs.openbsd.org: ports

2020-01-01 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2020/01/01 06:03:40

Modified files:
lang/go: Makefile distinfo 
lang/go/pkg: PLIST 
Removed files:
lang/go/patches: patch-src_cmd_link_internal_ld_lib_go 

Log message:
Update lang/go to 1.13.5.



CVS: cvs.openbsd.org: ports

2019-10-24 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2019/10/24 10:22:07

Modified files:
lang/go: Makefile distinfo 
lang/go/pkg: PLIST 

Log message:
Update lang/go to 1.13.3.

This includes security fixes released in 1.13.2.



CVS: cvs.openbsd.org: ports

2019-10-04 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2019/10/04 11:02:11

Modified files:
lang/go: Makefile distinfo 

Log message:
Update lang/go to 1.13.1.

This addresses a security issue in net/http.

ok naddy@



Re: lang/go: make test vs PORTS_PRIVSEP=Yes

2019-09-26 Thread Joel Sing
On 19-09-26 17:36:25, Theo Buehler wrote:
> On Fri, Sep 27, 2019 at 01:32:38AM +1000, Joel Sing wrote:
> > On 19-09-26 16:14:44, Theo Buehler wrote:
> > > On Thu, Sep 26, 2019 at 11:09:16PM +1000, Joel Sing wrote:
> > > > On 19-09-26 13:06:51, Stuart Henderson wrote:
> > > > > On 2019/09/26 09:44, Theo Buehler wrote:
> > > > > > I noticed two problems with go's 'make test' when PORTS_PRIVSEP=Yes:
> > > > > > both having to do with _pbuild's home being /nonexistent:
> > > > > > 
> > > > > > failed to initialize build cache at /nonexistent/.cache/go-build: 
> > > > > > mkdir /nonexistent: permission denied
> > > > > > 
> > > > > > and
> > > > > > 
> > > > > > --- FAIL: TestUserHomeDir (0.00s)
> > > > > > os_test.go:2350: stat /nonexistent: no such file or directory
> > > > > > FAIL
> > > > > > 
> > > > > > both problems can be worked around by setting the GOCACHE and HOME
> > > > > > environment variables to something different than /nonexistent.
> > > > > > 
> > > > > > Since do-build alreday sets GOCACHE=${WRKDIST}/go-cache, it seems
> > > > > > reasonable to do the same for do-test independently of 
> > > > > > PORTS_PRIVSEP.
> > > > > 
> > > > > FWIW that one's OK with me.
> > > > > 
> > > > > > I'm less sure about the proper solution for TestHomeDir and would 
> > > > > > like
> > > > > > to have some advice on that.  Setting HOME to ${WRKDIST} or a 
> > > > > > temporary
> > > > > > directory works and is in line with the custom PATH, but seems very
> > > > > > kludgy and might have undesirable side effects for other tests in 
> > > > > > the
> > > > > > future. One could patch the TestHomeDir test to skip the Stat and 
> > > > > > IsDir
> > > > > > part if the user is _pbuild. I'm not too worried about the 
> > > > > > TestHomeDir
> > > > > > per se but rather the fact that its failure takes out a sizable 
> > > > > > number
> > > > > > of later tests.
> > > > > 
> > > > > Patching the TestHomeDir test might also have side effects in the 
> > > > > future..
> > > > > Setting PORTHOME=${WRKDIR} is fairly common in ports in general, so 
> > > > > that
> > > > > would probably be my first choice (I think it's better in WRKDIR 
> > > > > rather
> > > > > than WRKDIST).
> > > > 
> > > > Agreed. It is going to be preferable to set HOME to a sensible
> > > > location, rather than patch tests - ok jsing@.
> > > 
> > > Ok, thanks.
> > > 
> > > Setting PORTHOME=${WRKDIST} works directly. Using WRKDIR does work in
> > > the sense that all tests pass, but it leads to an ugly complaint about
> > > a missing GOPATH:
> > > 
> > > $ make test
> > > ===>  Regression tests for go-1.13
> > > missing $GOPATH
> > > 
> > > To avoid this complaint, I added GOPATH=WRKDIR to the environment. Also,
> > > the reason why the poisoned PORTHOME didn't work is the custom do-test
> > > target that bypasses the default test environment. After pulling in
> > > ALL_TEST_ENV, one could now make use of the TEST_ENV mechanism, but I
> > > don't want to interfere too much with jsing's choices.
> > > 
> > > Index: Makefile
> > > ===
> > > RCS file: /var/cvs/ports/lang/go/Makefile,v
> > > retrieving revision 1.71
> > > diff -u -p -r1.71 Makefile
> > > --- Makefile  15 Sep 2019 02:00:34 -  1.71
> > > +++ Makefile  26 Sep 2019 14:10:47 -
> > > @@ -34,6 +34,7 @@ SEPARATE_BUILD =simple
> > >  CONFIGURE_STYLE =None
> > >  SUBST_VARS = GOCFG
> > >  
> > > +PORTHOME =   ${WRKDIR}
> > >  WRKDIST =${WRKDIR}/go
> > >  WRKSRC = ${WRKDIST}/src
> > >  
> > > @@ -94,8 +95,11 @@ do-build:
> > >  do-test:
> > >   @cd ${WRKSRC} && \
> > >   ulimit -d $$(ulimit -H -d) -n 256 && \
> > > + ${SETENV} ${ALL_TEST_ENV} \
> > >  

Re: lang/go: make test vs PORTS_PRIVSEP=Yes

2019-09-26 Thread Joel Sing
On 19-09-26 16:14:44, Theo Buehler wrote:
> On Thu, Sep 26, 2019 at 11:09:16PM +1000, Joel Sing wrote:
> > On 19-09-26 13:06:51, Stuart Henderson wrote:
> > > On 2019/09/26 09:44, Theo Buehler wrote:
> > > > I noticed two problems with go's 'make test' when PORTS_PRIVSEP=Yes:
> > > > both having to do with _pbuild's home being /nonexistent:
> > > > 
> > > > failed to initialize build cache at /nonexistent/.cache/go-build: mkdir 
> > > > /nonexistent: permission denied
> > > > 
> > > > and
> > > > 
> > > > --- FAIL: TestUserHomeDir (0.00s)
> > > > os_test.go:2350: stat /nonexistent: no such file or directory
> > > > FAIL
> > > > 
> > > > both problems can be worked around by setting the GOCACHE and HOME
> > > > environment variables to something different than /nonexistent.
> > > > 
> > > > Since do-build alreday sets GOCACHE=${WRKDIST}/go-cache, it seems
> > > > reasonable to do the same for do-test independently of PORTS_PRIVSEP.
> > > 
> > > FWIW that one's OK with me.
> > > 
> > > > I'm less sure about the proper solution for TestHomeDir and would like
> > > > to have some advice on that.  Setting HOME to ${WRKDIST} or a temporary
> > > > directory works and is in line with the custom PATH, but seems very
> > > > kludgy and might have undesirable side effects for other tests in the
> > > > future. One could patch the TestHomeDir test to skip the Stat and IsDir
> > > > part if the user is _pbuild. I'm not too worried about the TestHomeDir
> > > > per se but rather the fact that its failure takes out a sizable number
> > > > of later tests.
> > > 
> > > Patching the TestHomeDir test might also have side effects in the future..
> > > Setting PORTHOME=${WRKDIR} is fairly common in ports in general, so that
> > > would probably be my first choice (I think it's better in WRKDIR rather
> > > than WRKDIST).
> > 
> > Agreed. It is going to be preferable to set HOME to a sensible
> > location, rather than patch tests - ok jsing@.
> 
> Ok, thanks.
> 
> Setting PORTHOME=${WRKDIST} works directly. Using WRKDIR does work in
> the sense that all tests pass, but it leads to an ugly complaint about
> a missing GOPATH:
> 
> $ make test
> ===>  Regression tests for go-1.13
> missing $GOPATH
> 
> To avoid this complaint, I added GOPATH=WRKDIR to the environment. Also,
> the reason why the poisoned PORTHOME didn't work is the custom do-test
> target that bypasses the default test environment. After pulling in
> ALL_TEST_ENV, one could now make use of the TEST_ENV mechanism, but I
> don't want to interfere too much with jsing's choices.
> 
> Index: Makefile
> ===
> RCS file: /var/cvs/ports/lang/go/Makefile,v
> retrieving revision 1.71
> diff -u -p -r1.71 Makefile
> --- Makefile  15 Sep 2019 02:00:34 -  1.71
> +++ Makefile  26 Sep 2019 14:10:47 -
> @@ -34,6 +34,7 @@ SEPARATE_BUILD =simple
>  CONFIGURE_STYLE =None
>  SUBST_VARS = GOCFG
>  
> +PORTHOME =   ${WRKDIR}
>  WRKDIST =${WRKDIR}/go
>  WRKSRC = ${WRKDIST}/src
>  
> @@ -94,8 +95,11 @@ do-build:
>  do-test:
>   @cd ${WRKSRC} && \
>   ulimit -d $$(ulimit -H -d) -n 256 && \
> + ${SETENV} ${ALL_TEST_ENV} \
>   CC="${CC}" \
>   CXX="${CXX}" \
> + GOCACHE=${WRKDIST}/go-cache \
> + GOPATH=${WRKDIR} \
>   PATH=${WRKDIST}/bin:${PATH} \
>   /bin/ksh -c "exec 3>&-; exec 4>&-; ./run.bash"

Given this is already a special snowflake, it might be simpler to
just do:

Index: Makefile
===
RCS file: /cvs/ports/lang/go/Makefile,v
retrieving revision 1.71
diff -u -p -u -p -r1.71 Makefile
--- Makefile15 Sep 2019 02:00:34 -  1.71
+++ Makefile26 Sep 2019 15:31:29 -
@@ -96,6 +96,8 @@ do-test:
ulimit -d $$(ulimit -H -d) -n 256 && \
CC="${CC}" \
CXX="${CXX}" \
+   GOCACHE=${WRKDIST}/go-cache \
+   HOME=${WRKDIR} \
PATH=${WRKDIST}/bin:${PATH} \
/bin/ksh -c "exec 3>&-; exec 4>&-; ./run.bash"
 



Re: lang/go: make test vs PORTS_PRIVSEP=Yes

2019-09-26 Thread Joel Sing
On 19-09-26 13:06:51, Stuart Henderson wrote:
> On 2019/09/26 09:44, Theo Buehler wrote:
> > I noticed two problems with go's 'make test' when PORTS_PRIVSEP=Yes:
> > both having to do with _pbuild's home being /nonexistent:
> > 
> > failed to initialize build cache at /nonexistent/.cache/go-build: mkdir 
> > /nonexistent: permission denied
> > 
> > and
> > 
> > --- FAIL: TestUserHomeDir (0.00s)
> > os_test.go:2350: stat /nonexistent: no such file or directory
> > FAIL
> > 
> > both problems can be worked around by setting the GOCACHE and HOME
> > environment variables to something different than /nonexistent.
> > 
> > Since do-build alreday sets GOCACHE=${WRKDIST}/go-cache, it seems
> > reasonable to do the same for do-test independently of PORTS_PRIVSEP.
> 
> FWIW that one's OK with me.
> 
> > I'm less sure about the proper solution for TestHomeDir and would like
> > to have some advice on that.  Setting HOME to ${WRKDIST} or a temporary
> > directory works and is in line with the custom PATH, but seems very
> > kludgy and might have undesirable side effects for other tests in the
> > future. One could patch the TestHomeDir test to skip the Stat and IsDir
> > part if the user is _pbuild. I'm not too worried about the TestHomeDir
> > per se but rather the fact that its failure takes out a sizable number
> > of later tests.
> 
> Patching the TestHomeDir test might also have side effects in the future..
> Setting PORTHOME=${WRKDIR} is fairly common in ports in general, so that
> would probably be my first choice (I think it's better in WRKDIR rather
> than WRKDIST).

Agreed. It is going to be preferable to set HOME to a sensible
location, rather than patch tests - ok jsing@.

> > Index: Makefile
> > ===
> > RCS file: /var/cvs/ports/lang/go/Makefile,v
> > retrieving revision 1.71
> > diff -u -p -r1.71 Makefile
> > --- Makefile15 Sep 2019 02:00:34 -  1.71
> > +++ Makefile26 Sep 2019 07:15:03 -
> > @@ -96,6 +96,7 @@ do-test:
> > ulimit -d $$(ulimit -H -d) -n 256 && \
> > CC="${CC}" \
> > CXX="${CXX}" \
> > +   GOCACHE=${WRKDIST}/go-cache \
> > PATH=${WRKDIST}/bin:${PATH} \
> > /bin/ksh -c "exec 3>&-; exec 4>&-; ./run.bash"
> >  
> > 



CVS: cvs.openbsd.org: ports

2019-09-14 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2019/09/14 20:04:00

Modified files:
lang/go: go.port.mk 
net/mattermost-server: Makefile 
sysutils/restic: Makefile 
sysutils/restic-rest-server: Makefile 

Log message:
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@



CVS: cvs.openbsd.org: ports

2019-09-14 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2019/09/14 20:00:35

Modified files:
lang/go: Makefile distinfo 
infrastructure/mk: arch-defines.mk 

Log message:
Enable Go on aarch64/arm64.

ok phessler@



Enable Go on arm64

2019-09-13 Thread Joel Sing
The following enables Go on aarch64/arm64.

ok?

Index: infrastructure/mk/arch-defines.mk
===
RCS file: /cvs/ports/infrastructure/mk/arch-defines.mk,v
retrieving revision 1.67
diff -u -p -r1.67 arch-defines.mk
--- infrastructure/mk/arch-defines.mk   2 Sep 2019 07:05:48 -   1.67
+++ infrastructure/mk/arch-defines.mk   13 Sep 2019 16:45:53 -
@@ -24,7 +24,7 @@ GCC3_ARCHS = m88k
 MONO_ARCHS = amd64 i386
 OCAML_NATIVE_ARCHS = i386 amd64
 OCAML_NATIVE_DYNLINK_ARCHS = i386 amd64
-GO_ARCHS = amd64 arm i386
+GO_ARCHS = aarch64 amd64 arm arm64 armv7 i386
 RUST_ARCHS = aarch64 amd64 i386 sparc64
 
 # arches where the base compiler is clang
Index: lang/go/Makefile
===
RCS file: /cvs/ports/lang/go/Makefile,v
retrieving revision 1.70
diff -u -p -r1.70 Makefile
--- lang/go/Makefile13 Sep 2019 09:04:07 -  1.70
+++ lang/go/Makefile13 Sep 2019 16:45:53 -
@@ -2,7 +2,7 @@
 
 ONLY_FOR_ARCHS =   ${GO_ARCHS}
 
-BIN_BOOTSTRAP_GOARCHS =arm
+BIN_BOOTSTRAP_GOARCHS =arm arm64
 BIN_BOOTSTRAP_VERSION = 1.13
 
 COMMENT =  Go programming language
@@ -48,6 +48,8 @@ GOROOT_BOOTSTRAP =
 GOARCH =   amd64
 .elif ${MACHINE_ARCH} == "arm"
 GOARCH =   arm
+.elif ${MACHINE_ARCH} == "aarch64"
+GOARCH =   arm64
 .elif ${MACHINE_ARCH} == "i386"
 GOARCH =   386
 .endif
Index: lang/go/distinfo
===
RCS file: /cvs/ports/lang/go/distinfo,v
retrieving revision 1.43
diff -u -p -r1.43 distinfo
--- lang/go/distinfo13 Sep 2019 09:04:07 -  1.43
+++ lang/go/distinfo13 Sep 2019 16:45:53 -
@@ -1,4 +1,6 @@
 SHA256 (go-openbsd-arm-bootstrap-1.13.tar.gz) = 
Ix5mtS2ZQojlcTwILIH9SzPlaSfvbZf68UeAkqavJx8=
+SHA256 (go-openbsd-arm64-bootstrap-1.13.tar.gz) = 
B+fRIH4O1ZLM8N1jI6gPSthj76hPMbuPFI9unufEljI=
 SHA256 (go1.13.src.tar.gz) = P8C4thAdQu/X2h2jApwKE/IgecDDfvlzAgnY7GZb8SI=
 SIZE (go-openbsd-arm-bootstrap-1.13.tar.gz) = 12034
+SIZE (go-openbsd-arm64-bootstrap-1.13.tar.gz) = 118670351
 SIZE (go1.13.src.tar.gz) = 21621948



Re: [update] lang/go to Go 1.13

2019-09-13 Thread Joel Sing
On 19-09-13 14:53:30, Stuart Henderson wrote:
> On 2019/09/13 23:32, Joel Sing wrote:
> > On 19-09-13 12:38:19, Stuart Henderson wrote:
> > > On 2019/09/10 04:20, Joel Sing wrote:
> > > > The following updates lang/go to Go 1.13 and also updates the main
> > > > golang.org/x packages to around the Go 1.13 release. This does
> > > > not update devel/go-tools, as it introduces new dependencies that
> > > > will need to be packaged. Once this lands I can also work towards
> > > > enabling Go on arm64.
> > > > 
> > > > The following ports appear to break with this update:
> > > > 
> > > >  net/go-ipfs
> > > >  net/mattermost-server
> > > >  security/keybase
> > > >  sysutils/consul
> > > >  sysutils/restic
> > > >  sysutils/restic-rest-server
> > > >  www/hugo
> > > 
> > > net/dnscrypt-proxy now attempts to fetch from the network, this is
> > > blocked on the main ports build machines and for anyone using
> > > PORTS_PRIVSEP=Yes in mk.conf with the default "block return out log
> > > proto {tcp udp} user _pbuild" pf rule. Any advice on how to fix this?
> > 
> > Unfortunately this is going to become more of a problem, since Go is pushing
> > towards the use of Go modules and fetching of dependencies at build time,
> > rather than vendoring code. We'll have to figure out how we address this
> > moving forward.
> 
> Same problem everywhere unfortunately. npm, maven, cargo, even "normal"
> use of python..

Indeed.

> > The following diff should fix this case:
> 
> Thanks, confirmed it does. OK.

For now, I think we should do this instead - ok?

Index: lang/go/go.port.mk
===
RCS file: /cvs/ports/lang/go/go.port.mk,v
retrieving revision 1.23
diff -u -p -r1.23 go.port.mk
--- lang/go/go.port.mk  4 Sep 2019 12:22:03 -   1.23
+++ lang/go/go.port.mk  13 Sep 2019 14:17:15 -
@@ -23,7 +23,7 @@ MODGO_TYPE ?= bin
 MODGO_WORKSPACE ?= ${WRKDIR}/go
 MODGO_GOCACHE ?=   ${WRKDIR}/go-cache
 MODGO_GOPATH ?=${MODGO_WORKSPACE}:${MODGO_PACKAGE_PATH}
-MAKE_ENV +=GOCACHE="${MODGO_GOCACHE}" GOPATH="${MODGO_GOPATH}"
+MAKE_ENV +=GOCACHE="${MODGO_GOCACHE}" GOPATH="${MODGO_GOPATH}" 
GO111MODULE=off
 MODGO_CMD ?=   ${SETENV} ${MAKE_ENV} go
 MODGO_BUILD_CMD =  ${MODGO_CMD} install ${MODGO_FLAGS}
 MODGO_TEST_CMD =   ${MODGO_CMD} test ${MODGO_FLAGS} ${MODGO_TEST_FLAGS}
Index: net/mattermost-server/Makefile
===
RCS file: /cvs/ports/net/mattermost-server/Makefile,v
retrieving revision 1.15
diff -u -p -r1.15 Makefile
--- net/mattermost-server/Makefile  12 Sep 2019 19:07:56 -  1.15
+++ net/mattermost-server/Makefile  13 Sep 2019 14:17:15 -
@@ -27,7 +27,6 @@ WANTLIB += c pthread
 
 MODULES =  lang/go
 MODGO_LDFLAGS =-X 
github.com/mattermost/mattermost-server/model.BuildNumber=${V}
-MAKE_ENV +=GO111MODULE=off
 NO_TEST =  Yes
 
 pre-configure:
Index: sysutils/restic/Makefile
===
RCS file: /cvs/ports/sysutils/restic/Makefile,v
retrieving revision 1.10
diff -u -p -r1.10 Makefile
--- sysutils/restic/Makefile13 Sep 2019 13:05:50 -  1.10
+++ sysutils/restic/Makefile13 Sep 2019 14:17:15 -
@@ -21,7 +21,6 @@ MASTER_SITES =https://github.com/restic
 
 MODULES =  lang/go
 MODGO_TYPE =   bin
-MAKE_ENV +=GO111MODULE=off
 
 NO_TEST =  Yes
 
Index: sysutils/restic-rest-server/Makefile
===
RCS file: /cvs/ports/sysutils/restic-rest-server/Makefile,v
retrieving revision 1.7
diff -u -p -r1.7 Makefile
--- sysutils/restic-rest-server/Makefile13 Sep 2019 13:06:19 -  
1.7
+++ sysutils/restic-rest-server/Makefile13 Sep 2019 14:17:15 -
@@ -20,7 +20,6 @@ MASTER_SITES =https://github.com/restic
 
 MODULES =  lang/go
 MODGO_TYPE =   bin
-MAKE_ENV +=GO111MODULE=off
 
 NO_TEST =  Yes
 



Re: [update] lang/go to Go 1.13

2019-09-13 Thread Joel Sing
On 19-09-13 12:38:19, Stuart Henderson wrote:
> On 2019/09/10 04:20, Joel Sing wrote:
> > The following updates lang/go to Go 1.13 and also updates the main
> > golang.org/x packages to around the Go 1.13 release. This does
> > not update devel/go-tools, as it introduces new dependencies that
> > will need to be packaged. Once this lands I can also work towards
> > enabling Go on arm64.
> > 
> > The following ports appear to break with this update:
> > 
> >  net/go-ipfs
> >  net/mattermost-server
> >  security/keybase
> >  sysutils/consul
> >  sysutils/restic
> >  sysutils/restic-rest-server
> >  www/hugo
> 
> net/dnscrypt-proxy now attempts to fetch from the network, this is
> blocked on the main ports build machines and for anyone using
> PORTS_PRIVSEP=Yes in mk.conf with the default "block return out log
> proto {tcp udp} user _pbuild" pf rule. Any advice on how to fix this?

I think there's actually a better option here - will send another diff shortly.



Re: [update] lang/go to Go 1.13

2019-09-13 Thread Joel Sing
On 19-09-13 12:38:19, Stuart Henderson wrote:
> On 2019/09/10 04:20, Joel Sing wrote:
> > The following updates lang/go to Go 1.13 and also updates the main
> > golang.org/x packages to around the Go 1.13 release. This does
> > not update devel/go-tools, as it introduces new dependencies that
> > will need to be packaged. Once this lands I can also work towards
> > enabling Go on arm64.
> > 
> > The following ports appear to break with this update:
> > 
> >  net/go-ipfs
> >  net/mattermost-server
> >  security/keybase
> >  sysutils/consul
> >  sysutils/restic
> >  sysutils/restic-rest-server
> >  www/hugo
> 
> net/dnscrypt-proxy now attempts to fetch from the network, this is
> blocked on the main ports build machines and for anyone using
> PORTS_PRIVSEP=Yes in mk.conf with the default "block return out log
> proto {tcp udp} user _pbuild" pf rule. Any advice on how to fix this?

Unfortunately this is going to become more of a problem, since Go is pushing
towards the use of Go modules and fetching of dependencies at build time,
rather than vendoring code. We'll have to figure out how we address this
moving forward.

The following diff should fix this case:

Index: Makefile
===
RCS file: /cvs/ports/net/dnscrypt-proxy/Makefile,v
retrieving revision 1.44
diff -u -p -r1.44 Makefile
--- Makefile10 Sep 2019 13:19:25 -  1.44
+++ Makefile13 Sep 2019 13:30:31 -
@@ -19,6 +19,7 @@ WANTLIB = c pthread
 
 MODULES =  lang/go
 MODGO_TYPE =   bin
+MAKE_ENV +=GO111MODULE=off
 NO_TEST =  Yes
 
 INSTDIR =  ${PREFIX}/share/examples/dnscrypt-proxy



CVS: cvs.openbsd.org: ports

2019-09-13 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2019/09/13 03:04:07

Modified files:
lang/go: Makefile distinfo 

Log message:
Update the lang/go binary bootstrap to Go 1.13.



CVS: cvs.openbsd.org: ports

2019-09-12 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2019/09/12 13:07:56

Modified files:
net/mattermost-server: Makefile 

Log message:
Make net/mattermost-server build with Go 1.13.



CVS: cvs.openbsd.org: ports

2019-09-12 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2019/09/12 13:07:01

Modified files:
sysutils/consul: Makefile 
Added files:
sysutils/consul/patches: 
 
patch-vendor_github_com_envoyproxy_protoc-gen-validate_validate_validate_pb_go 

Log message:
Make sysutils/consul build with Go 1.13.



CVS: cvs.openbsd.org: ports

2019-09-12 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2019/09/12 13:05:23

Modified files:
net/go-ipfs: Makefile 
Added files:
net/go-ipfs/patches: 
 patch-vendor_golang_org_x_xerrors_adaptor_go 
 
patch-vendor_golang_org_x_xerrors_adaptor_go1_12_go 
 
patch-vendor_golang_org_x_xerrors_adaptor_go1_13_go 
 patch-vendor_golang_org_x_xerrors_format_go 
 patch-vendor_golang_org_x_xerrors_format_go1_12_go 
 patch-vendor_golang_org_x_xerrors_format_go1_13_go 
 patch-vendor_golang_org_x_xerrors_frame_go 
 patch-vendor_golang_org_x_xerrors_frame_go1_12_go 

Log message:
Make net/go-ipfs build with Go 1.13.

This effectively brings in a985d3407aa71f30cf86696ee0a2f409709f22e1 from
golang.org/x/xerrors.



CVS: cvs.openbsd.org: ports

2019-09-12 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2019/09/12 13:03:46

ports/net/go-ipfs/patches

Update of /cvs/ports/net/go-ipfs/patches
In directory cvs.openbsd.org:/tmp/cvs-serv85604/patches

Log Message:
Directory /cvs/ports/net/go-ipfs/patches added to the repository



CVS: cvs.openbsd.org: ports

2019-09-12 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2019/09/12 13:02:59

Added files:
www/hugo/patches: 
  patch-vendor_github_com_tdewolff_minify_v2_common_go 
  patch-vendor_github_com_tdewolff_minify_v2_css_css_go 
  
patch-vendor_github_com_tdewolff_minify_v2_html_buffer_go 
  
patch-vendor_github_com_tdewolff_minify_v2_html_html_go 
  
patch-vendor_github_com_tdewolff_minify_v2_html_table_go 
  patch-vendor_github_com_tdewolff_minify_v2_js_js_go 
  
patch-vendor_github_com_tdewolff_minify_v2_json_json_go 
  patch-vendor_github_com_tdewolff_minify_v2_minify_go 
  
patch-vendor_github_com_tdewolff_minify_v2_svg_buffer_go 
  patch-vendor_github_com_tdewolff_minify_v2_svg_svg_go 
  
patch-vendor_github_com_tdewolff_minify_v2_svg_table_go 
  
patch-vendor_github_com_tdewolff_minify_v2_xml_buffer_go 
  patch-vendor_github_com_tdewolff_minify_v2_xml_xml_go 
  
patch-vendor_github_com_tdewolff_parse_v2_buffer_buffer_go 
  
patch-vendor_github_com_tdewolff_parse_v2_buffer_lexer_go 
  
patch-vendor_github_com_tdewolff_parse_v2_buffer_reader_go 
  
patch-vendor_github_com_tdewolff_parse_v2_buffer_streamlexer_go 
  
patch-vendor_github_com_tdewolff_parse_v2_buffer_writer_go 
  patch-vendor_github_com_tdewolff_parse_v2_common_go 
  patch-vendor_github_com_tdewolff_parse_v2_css_lex_go 
  
patch-vendor_github_com_tdewolff_parse_v2_css_parse_go 
  patch-vendor_github_com_tdewolff_parse_v2_css_util_go 
  patch-vendor_github_com_tdewolff_parse_v2_html_lex_go 
  
patch-vendor_github_com_tdewolff_parse_v2_html_util_go 
  patch-vendor_github_com_tdewolff_parse_v2_js_lex_go 
  
patch-vendor_github_com_tdewolff_parse_v2_json_parse_go 
  
patch-vendor_github_com_tdewolff_parse_v2_strconv_float_go 
  
patch-vendor_github_com_tdewolff_parse_v2_strconv_int_go 
  patch-vendor_github_com_tdewolff_parse_v2_util_go 
  patch-vendor_github_com_tdewolff_parse_v2_xml_lex_go 
  patch-vendor_github_com_tdewolff_parse_v2_xml_util_go 

Log message:
Make www/hugo compile with Go 1.13.



CVS: cvs.openbsd.org: ports

2019-09-12 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2019/09/12 13:01:30

ports/www/hugo/patches

Update of /cvs/ports/www/hugo/patches
In directory cvs.openbsd.org:/tmp/cvs-serv44596/patches

Log Message:
Directory /cvs/ports/www/hugo/patches added to the repository



CVS: cvs.openbsd.org: ports

2019-09-12 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2019/09/12 12:52:16

Modified files:
net/go-net : Makefile distinfo 
net/go-net/pkg : PLIST 

Log message:
Update net/go-net.

This updates net/go-net to a point around the Go 1.13 release.

ok abieber@ sthen@



CVS: cvs.openbsd.org: ports

2019-09-12 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2019/09/12 12:51:19

Modified files:
security/go-crypto: Makefile distinfo 
security/go-crypto/pkg: PLIST 

Log message:
Update security/go-crypto.

This updates security/go-crypto to a point around the Go 1.13 release.

ok abieber@ sthen@



CVS: cvs.openbsd.org: ports

2019-09-12 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2019/09/12 12:50:31

Modified files:
textproc/go-text: Makefile distinfo 
textproc/go-text/pkg: PLIST 

Log message:
Update textproc/go-text.

This updates textproc/go-text to a point around the Go 1.13 release.

ok abieber@ sthen@



CVS: cvs.openbsd.org: ports

2019-09-12 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2019/09/12 12:49:45

Modified files:
devel/go-sys   : Makefile distinfo 
devel/go-sys/pkg: PLIST 

Log message:
Update devel/go-sys.

This updates devel/go-sys to a point around the Go 1.13 release.

ok abieber@ sthen@



CVS: cvs.openbsd.org: ports

2019-09-12 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2019/09/12 12:48:30

Modified files:
lang/go: Makefile distinfo 
lang/go/pkg: PLIST 
Added files:
lang/go/patches: patch-src_cmd_link_internal_ld_lib_go 
Removed files:
lang/go/patches: patch-src_cmd_link_internal_loadelf_ldelf_go 
 patch-src_runtime_os_openbsd_go 

Log message:
Update lang/go to Go 1.13.

ok abieber@ sthen@



Re: [update] lang/go to Go 1.13

2019-09-11 Thread Joel Sing
On 19-09-11 15:37:39, Stuart Henderson wrote:
> On 2019/09/10 19:37, Aaron Bieber wrote:
> > On Tue, 10 Sep 2019 at 04:20:55 +1000, Joel Sing wrote:
> > > The following updates lang/go to Go 1.13 and also updates the main
> > > golang.org/x packages to around the Go 1.13 release. This does
> > > not update devel/go-tools, as it introduces new dependencies that
> > > will need to be packaged. Once this lands I can also work towards
> > > enabling Go on arm64.
> > > 
> > > The following ports appear to break with this update:
> > > 
> > >  net/go-ipfs
> > >  net/mattermost-server
> > >  security/keybase
> > >  sysutils/consul
> > >  sysutils/restic
> > >  sysutils/restic-rest-server
> > >  www/hugo
> > > 
> > > All of these are import path related and will likely need updates
> > > or patches.
> > 
> > Here are fixes for the restics and keybase (combined as one diff inline):
> > 
> >  https://deftly.net/patches/restic-0.9.5.diff
> >  https://deftly.net/patches/restic-rest-server-0.9.7.diff
> >  https://deftly.net/patches/keybase-4.3.2.diff
> > 
> > For keybase it looks like I missed a diff removal on the last update.
> > 
> > > 
> > > ok?
> > > 
> > 
> > OK abieber@ for go!
> 
> We are in the run up to release, I think committing this should wait
> until there are fixes for the other ports (or agreement with the
> relevant maintainers that it's ok to break them).

The following diffs allow the remaining four ports to build with Go 1.13:

ok?

Index: net/go-ipfs/Makefile
===
RCS file: /cvs/ports/net/go-ipfs/Makefile,v
retrieving revision 1.4
diff -u -p -u -p -r1.4 Makefile
--- net/go-ipfs/Makefile29 Aug 2019 10:40:53 -  1.4
+++ net/go-ipfs/Makefile11 Sep 2019 16:33:23 -
@@ -4,6 +4,7 @@ COMMENT =   global, versioned, peer-to-pee
 
 V =0.4.22
 DISTNAME = go-ipfs-$V
+REVISION = 0
 
 CATEGORIES =   net
 HOMEPAGE = https://ipfs.io
Index: net/go-ipfs/patches/patch-vendor_golang_org_x_xerrors_adaptor_go
===
RCS file: net/go-ipfs/patches/patch-vendor_golang_org_x_xerrors_adaptor_go
diff -N net/go-ipfs/patches/patch-vendor_golang_org_x_xerrors_adaptor_go
--- /dev/null   1 Jan 1970 00:00:00 -
+++ net/go-ipfs/patches/patch-vendor_golang_org_x_xerrors_adaptor_go11 Sep 
2019 16:33:23 -
@@ -0,0 +1,201 @@
+$OpenBSD$
+
+Fix build on Go 1.13
+
+Index: vendor/golang.org/x/xerrors/adaptor.go
+--- vendor/golang.org/x/xerrors/adaptor.go.orig
 vendor/golang.org/x/xerrors/adaptor.go
+@@ -0,0 +1,193 @@
++// Copyright 2018 The Go Authors. All rights reserved.
++// Use of this source code is governed by a BSD-style
++// license that can be found in the LICENSE file.
++
++package xerrors
++
++import (
++  "bytes"
++  "fmt"
++  "io"
++  "reflect"
++  "strconv"
++)
++
++// FormatError calls the FormatError method of f with an errors.Printer
++// configured according to s and verb, and writes the result to s.
++func FormatError(f Formatter, s fmt.State, verb rune) {
++  // Assuming this function is only called from the Format method, and 
given
++  // that FormatError takes precedence over Format, it cannot be called 
from
++  // any package that supports errors.Formatter. It is therefore safe to
++  // disregard that State may be a specific printer implementation and 
use one
++  // of our choice instead.
++
++  // limitations: does not support printing error as Go struct.
++
++  var (
++  sep= " " // separator before next error
++  p  = {State: s}
++  direct = true
++  )
++
++  var err error = f
++
++  switch verb {
++  // Note that this switch must match the preference order
++  // for ordinary string printing (%#v before %+v, and so on).
++
++  case 'v':
++  if s.Flag('#') {
++  if stringer, ok := err.(fmt.GoStringer); ok {
++  io.WriteString(, stringer.GoString())
++  goto exit
++  }
++  // proceed as if it were %v
++  } else if s.Flag('+') {
++  p.printDetail = true
++  sep = "\n  - "
++  }
++  case 's':
++  case 'q', 'x', 'X':
++  // Use an intermediate buffer in the rare cases that precision,
++  // truncation, or one of the alternative verbs (q, x, and X) are
++  // specified.
++  direct = false
++
++  default:
++  p

CVS: cvs.openbsd.org: ports

2019-09-05 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2019/09/05 10:23:49

Modified files:
sysutils/u-boot: Makefile 
sysutils/u-boot/pkg: PFRAG.arm 

Log message:
Package u-boot for the BananaPI M2 Ultra.

Also switch from ftp to https for source.

ok jsg@ kettenis@



CVS: cvs.openbsd.org: ports

2019-08-14 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2019/08/14 02:23:28

Modified files:
lang/go: Makefile distinfo 

Log message:
Update lang/go to 1.12.8.

This includes security fixes to the net/http and net/url packages.



CVS: cvs.openbsd.org: ports

2019-07-09 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2019/07/09 11:54:46

Modified files:
lang/go: Makefile distinfo 
lang/go/pkg: PLIST 

Log message:
Update lang/go to Go 1.12.7.



CVS: cvs.openbsd.org: ports

2019-05-07 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2019/05/07 10:33:42

Modified files:
lang/go: Makefile distinfo 
lang/go/pkg: PLIST 

Log message:
Update lang/go to 1.12.5



CVS: cvs.openbsd.org: ports

2019-05-04 Thread Joel Sing
CVSROOT:/cvs
Module name:ports
Changes by: js...@cvs.openbsd.org   2019/05/04 09:03:15

Modified files:
lang/go: Makefile 

Log message:
Ensure GOCACHE refers to a suitable location when building Go.

Issue found and fix verified by phessler@



  1   2   3   >