git: 00d113187b96 - main - devel/awless: fix build on riscv64

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

URL: https://cgit.FreeBSD.org/ports/commit/?id=00d113187b96396ae06b49e49f23f68eba91b3f6

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

    devel/awless: fix build on riscv64
    
    Bump golang.org/x/sys dependency to a version new enough
    to support 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:    dmgk (maintainer)
---
 devel/awless/Makefile                                    |  4 ++--
 devel/awless/distinfo                                    |  6 +++---
 .../patch-vendor_github.com_boltdb_bolt_bolt__riscv64.go | 16 ++++++++++++++++
 3 files changed, 21 insertions(+), 5 deletions(-)

diff --git a/devel/awless/Makefile b/devel/awless/Makefile
index ee67fc5fbe49..b4de5a3d716c 100644
--- a/devel/awless/Makefile
+++ b/devel/awless/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	awless
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.1.11
-PORTREVISION=	13
+PORTREVISION=	14
 CATEGORIES=	devel
 
 MAINTAINER=	dmgk@FreeBSD.org
@@ -16,7 +16,7 @@ USES=		go
 USE_GITHUB=	yes
 GH_ACCOUNT=	wallix
 GH_SUBDIR=	src/github.com/wallix/${PORTNAME}
-GH_TUPLE=	golang:sys:33540a1f6037:golang_sys
+GH_TUPLE=	golang:sys:v0.6.0:golang_sys
 
 PLIST_FILES=	bin/awless
 PORTDOCS=	README.md CHANGELOG.md
diff --git a/devel/awless/distinfo b/devel/awless/distinfo
index c0c00ac70423..04c942fc4a6d 100644
--- a/devel/awless/distinfo
+++ b/devel/awless/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1581935565
+TIMESTAMP = 1680114704
 SHA256 (wallix-awless-v0.1.11_GH0.tar.gz) = 1a78636face8753cb983a5e4c1e3bfc9e1940e7eb932aa01fe2cbded46fd4292
 SIZE (wallix-awless-v0.1.11_GH0.tar.gz) = 11725608
-SHA256 (golang-sys-33540a1f6037_GH0.tar.gz) = 09ebdf007413c2eaddce123137443d08d1848be410c58896e772f0481ec385d5
-SIZE (golang-sys-33540a1f6037_GH0.tar.gz) = 1497659
+SHA256 (golang-sys-v0.6.0_GH0.tar.gz) = b4f6d17c7a128f76169964b437cb66b3f2dbf9a33361928ec19dfecf7b03fc54
+SIZE (golang-sys-v0.6.0_GH0.tar.gz) = 1434234
diff --git a/devel/awless/files/patch-vendor_github.com_boltdb_bolt_bolt__riscv64.go b/devel/awless/files/patch-vendor_github.com_boltdb_bolt_bolt__riscv64.go
new file mode 100644
index 000000000000..8b11be4f4104
--- /dev/null
+++ b/devel/awless/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