1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

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)
This commit is contained in:
Robert Clausecker 2023-03-29 18:42:31 +00:00
parent 5d21bb4356
commit 00d113187b
3 changed files with 21 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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