git: 3aea56ee2920 - main - sysutils/cni-dnsname: Fix arm64 build
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 28 Sep 2026 10:41:30 UTC
The branch main has been updated by dch:
URL: https://cgit.FreeBSD.org/ports/commit/?id=3aea56ee29200c29b013a87f0630eafd36968e88
commit 3aea56ee29200c29b013a87f0630eafd36968e88
Author: Dave Cottlehuber <dch@FreeBSD.org>
AuthorDate: 2026-09-28 10:41:27 +0000
Commit: Dave Cottlehuber <dch@FreeBSD.org>
CommitDate: 2026-09-28 10:41:27 +0000
sysutils/cni-dnsname: Fix arm64 build
golang.org/x/sys/unix fails to build on aarch64 because the pinned vendored
FpReg references an undefined uint128 type, at least on FreeBSD arm64:
vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go:400:12: undefined: uint128
Fake it with an equivalent 16x byte array, which is what upstream now does:
https://github.com/golang/go/blob/master/src/cmd/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go#L337-L342
Sponsored by: SkunkWerks, GmbH
Differential Revision: https://reviews.freebsd.org/D59776
Approved by: adrian
---
...tch-vendor_golang.org_x_sys_unix_ztypes__freebsd__arm64.go | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/sysutils/cni-dnsname/files/patch-vendor_golang.org_x_sys_unix_ztypes__freebsd__arm64.go b/sysutils/cni-dnsname/files/patch-vendor_golang.org_x_sys_unix_ztypes__freebsd__arm64.go
new file mode 100644
index 000000000000..fcd1c6a28e5c
--- /dev/null
+++ b/sysutils/cni-dnsname/files/patch-vendor_golang.org_x_sys_unix_ztypes__freebsd__arm64.go
@@ -0,0 +1,11 @@
+--- vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go.orig 2026-09-17 21:54:16 UTC
++++ vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go
+@@ -397,7 +397,7 @@ type FpReg struct {
+ }
+
+ type FpReg struct {
+- Fp_q [32]uint128
++ Fp_q [32][16]uint8
+ Fp_sr uint32
+ Fp_cr uint32
+ }