Page MenuHomeFreeBSD

sysutils/cni-dnsname: Fix arm64 build
ClosedPublic

Authored by dch on Thu, Sep 17, 9:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 7, 6:15 AM
Unknown Object (File)
Mon, Oct 5, 10:53 PM
Unknown Object (File)
Mon, Oct 5, 8:17 AM
Unknown Object (File)
Mon, Oct 5, 1:51 AM
Unknown Object (File)
Mon, Oct 5, 1:04 AM
Unknown Object (File)
Mon, Oct 5, 12:30 AM
Unknown Object (File)
Mon, Oct 5, 12:28 AM
Unknown Object (File)
Sun, Oct 4, 3:16 PM
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

Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 77041
Build 73924: arc lint + arc unit

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.