Page MenuHomeFreeBSD

sysutils/cni-dnsname: Fix arm64 build
ClosedPublic

Authored by dch on Thu, Sep 17, 9:45 PM.
Tags
None
Referenced Files
F173688228: D59776.diff
Sun, Sep 27, 6:01 PM
Unknown Object (File)
Sun, Sep 27, 5:10 AM
Unknown Object (File)
Sat, Sep 26, 11:45 AM
Unknown Object (File)
Thu, Sep 24, 8:19 PM
Unknown Object (File)
Thu, Sep 24, 6:08 PM
Unknown Object (File)
Thu, Sep 24, 5:59 PM
Unknown Object (File)
Thu, Sep 24, 5:51 PM
Unknown Object (File)
Wed, Sep 23, 8:35 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

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.