Page MenuHomeFreeBSD

sysutils/cni-dnsname: Fix arm64 build
ClosedPublic

Authored by dch on Thu, Sep 17, 9:45 PM.
Tags
None
Referenced Files
F174173658: D59776.id187001.diff
Thu, Oct 1, 3:39 AM
F174166468: D59776.id.diff
Thu, Oct 1, 2:12 AM
F174128881: D59776.id.diff
Wed, Sep 30, 7:38 PM
F174112400: D59776.id187001.diff
Wed, Sep 30, 5:23 PM
Unknown Object (File)
Wed, Sep 30, 4:58 AM
Unknown Object (File)
Tue, Sep 29, 7:04 PM
Unknown Object (File)
Tue, Sep 29, 8:28 AM
Unknown Object (File)
Sun, Sep 27, 6:01 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 77042
Build 73925: 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.