git: 037431b5b7b5 - main - dns/amass: fix build on riscv64

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Fri, 31 Mar 2023 10:42:35 UTC
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=037431b5b7b5f2929eb336fd022911e224b18078

commit 037431b5b7b5f2929eb336fd022911e224b18078
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2023-03-29 17:03:17 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-03-31 10:42:07 +0000

    dns/amass: fix build on riscv64
    
    Add missing riscv64-specific bits to github.com/boltdb/bolt
    dependency.
    
    Sponsored by:   Berliner Linux User Group e.V.
    Obtained from:  go.etcd.io/bbolt
    Approved by:    portmgr (build fix blanket)
---
 .../patch-vendor_github.com_boltdb_bolt_bolt__riscv64.go | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/dns/amass/files/patch-vendor_github.com_boltdb_bolt_bolt__riscv64.go b/dns/amass/files/patch-vendor_github.com_boltdb_bolt_bolt__riscv64.go
new file mode 100644
index 000000000000..8b11be4f4104
--- /dev/null
+++ b/dns/amass/files/patch-vendor_github.com_boltdb_bolt_bolt__riscv64.go
@@ -0,0 +1,16 @@
+--- /dev/null	2023-03-29 16:51:35 UTC
++++ vendor/github.com/boltdb/bolt/bolt_riscv64.go
+@@ -0,0 +1,13 @@
++//go:build riscv64
++// +build riscv64
++
++package bolt
++
++// maxMapSize represents the largest mmap size supported by Bolt.
++const maxMapSize = 0xFFFFFFFFFFFF // 256TB
++
++// maxAllocSize is the size used when creating array pointers.
++const maxAllocSize = 0x7FFFFFFF
++
++// are unaligned reads/writes not supported?
++var brokenUnaligned = false