git: 4070b50ad4b7 - main - sysutils/gomi: Fix build on aarch64
Mikael Urankar
mikael at FreeBSD.org
Thu Sep 9 18:35:47 UTC 2021
The branch main has been updated by mikael:
URL: https://cgit.FreeBSD.org/ports/commit/?id=4070b50ad4b7be88b6a47229d6e6afc4e0da6a34
commit 4070b50ad4b7be88b6a47229d6e6afc4e0da6a34
Author: Mikael Urankar <mikael at FreeBSD.org>
AuthorDate: 2021-09-09 18:34:48 +0000
Commit: Mikael Urankar <mikael at FreeBSD.org>
CommitDate: 2021-09-09 18:35:43 +0000
sysutils/gomi: Fix build on aarch64
vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go:400:12: undefined: uint128
Import upstream patch https://github.com/golang/sys/commit/33540a1f603772f9d4b761f416f5c10dade23e96
Approved by: portmgr (build fix blanket)
---
...golang.org_x_sys_unix_ztypes__freebsd__arm64.go | 24 ++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/sysutils/gomi/files/patch-vendor_golang.org_x_sys_unix_ztypes__freebsd__arm64.go b/sysutils/gomi/files/patch-vendor_golang.org_x_sys_unix_ztypes__freebsd__arm64.go
new file mode 100644
index 000000000000..9684a5cfae8e
--- /dev/null
+++ b/sysutils/gomi/files/patch-vendor_golang.org_x_sys_unix_ztypes__freebsd__arm64.go
@@ -0,0 +1,24 @@
+From 33540a1f603772f9d4b761f416f5c10dade23e96 Mon Sep 17 00:00:00 2001
+From: Tobias Klauser <tklauser at distanz.ch>
+Date: Fri, 25 Oct 2019 21:13:51 +0200
+Subject: [PATCH] unix: don't use non-existing uint128 type on freebsd/arm64
+
+CL 179099 introduced type FpReg on freebsd, on freebsd/arm64 using a
+type uint128. This type doesn't exist in Go.
+
+Change-Id: Ie7f065f38f2cc2c163abdfa7dddad886b8edbe3b
+Reviewed-on: https://go-review.googlesource.com/c/sys/+/203419
+Run-TryBot: Tobias Klauser <tobias.klauser at gmail.com>
+TryBot-Result: Gobot Gobot <gobot at golang.org>
+Reviewed-by: Brad Fitzpatrick <bradfitz at golang.org>
+--- vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go.orig 2019-10-10 19:43:22 UTC
++++ vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go
+@@ -397,7 +397,7 @@ type Reg struct {
+ }
+
+ type FpReg struct {
+- Fp_q [32]uint128
++ Fp_q [512]uint8
+ Fp_sr uint32
+ Fp_cr uint32
+ }
More information about the dev-commits-ports-all
mailing list