Page MenuHomeFreeBSD

sysutils/cni-dnsname: Fix arm64 build
ClosedPublic

Authored by dch on Thu, Sep 17, 9:45 PM.
Tags
None
Referenced Files
F174418445: D59776.id187868.diff
Sat, Oct 3, 1:30 AM
F174403034: D59776.id187868.diff
Fri, Oct 2, 11:04 PM
F174386973: D59776.id187002.diff
Fri, Oct 2, 8:39 PM
F174382726: D59776.diff
Fri, Oct 2, 8:04 PM
Unknown Object (File)
Thu, Oct 1, 9:28 AM
Unknown Object (File)
Thu, Oct 1, 9:27 AM
Unknown Object (File)
Thu, Oct 1, 3:39 AM
Unknown Object (File)
Thu, Oct 1, 2:12 AM
Subscribers

Details

Summary

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

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dch requested review of this revision.Thu, Sep 17, 9:45 PM

Not sure if this needs a PORTREVISION bump, it should be arch independent (because of the path)

Regenerate patch without preceding text

If it didn't build before on arm64 and the patch does not affect !amd64 I imagine a bump is unnecessary

This revision is now accepted and ready to land.Fri, Sep 18, 1:53 PM

rofl i love it.

ty for catching it!

This revision was automatically updated to reflect the committed changes.