git: 8c3b25eea909 - main - databases/octosql: fix build on riscv64

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Fri, 24 Mar 2023 20:57:00 UTC
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8c3b25eea9098de50754c5161a8a2e87b36ead3d

commit 8c3b25eea9098de50754c5161a8a2e87b36ead3d
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2023-03-24 16:50:49 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-03-24 20:54:54 +0000

    databases/octosql: fix build on riscv64
    
    Bump golang.org/x/sys dependency to a version new enough
    to support riscv64-freebsd.
    
    Sponsored by:   Berliner Linux User Group e.V.
    Approved by:    portmgr (build fix blanket)
---
 databases/octosql/Makefile | 8 +++++++-
 databases/octosql/distinfo | 4 +++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/databases/octosql/Makefile b/databases/octosql/Makefile
index d2aae8ee3165..b2fe92bf11ef 100644
--- a/databases/octosql/Makefile
+++ b/databases/octosql/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	octosql
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.12.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	databases
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -12,9 +12,15 @@ LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 USES=		go:modules
+USE_GITHUB=	nodefault
+GH_TUPLE=	golang:sys:v0.6.0:sys
 
 GO_MODULE=	github.com/cube2222/octosql
 
 PLIST_FILES=	bin/${PORTNAME}
 
+pre-patch:
+	${RM} -r ${WRKSRC}/vendor/golang.org/x/sys
+	${LN} -s ${WRKDIR}/sys-* ${WRKSRC}/vendor/golang.org/x/sys
+
 .include <bsd.port.mk>
diff --git a/databases/octosql/distinfo b/databases/octosql/distinfo
index e857939dd284..f5d838af7b67 100644
--- a/databases/octosql/distinfo
+++ b/databases/octosql/distinfo
@@ -1,5 +1,7 @@
-TIMESTAMP = 1678349628
+TIMESTAMP = 1679676260
 SHA256 (go/databases_octosql/octosql-v0.12.1/v0.12.1.mod) = 1e5d06815e23c0cef139d7731724c38acd2ca8c2a9b27278e82f4d159d1fd1b6
 SIZE (go/databases_octosql/octosql-v0.12.1/v0.12.1.mod) = 3279
 SHA256 (go/databases_octosql/octosql-v0.12.1/v0.12.1.zip) = bca564157e372fbd41c2c8cdf6f52cb726645ee903a1064310f73d771715d715
 SIZE (go/databases_octosql/octosql-v0.12.1/v0.12.1.zip) = 2341157
+SHA256 (go/databases_octosql/octosql-v0.12.1/golang-sys-v0.6.0_GH0.tar.gz) = b4f6d17c7a128f76169964b437cb66b3f2dbf9a33361928ec19dfecf7b03fc54
+SIZE (go/databases_octosql/octosql-v0.12.1/golang-sys-v0.6.0_GH0.tar.gz) = 1434234