git: 94e0bac758bc - main - devel/etcd34: fix build on riscv64

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

URL: https://cgit.FreeBSD.org/ports/commit/?id=94e0bac758bceeedbf8fe86799c2db998eda4245

commit 94e0bac758bceeedbf8fe86799c2db998eda4245
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2023-03-01 19:02:57 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-03-03 21:31:08 +0000

    devel/etcd34: fix build on riscv64
    
    Bump golang.org/x/sys to a version that supports riscv64-freebsd.
    
    Sponsored by:   Berliner Linux User Group e.V.
    Approved by:    olgeni (maintainer)
    Approved by:    eduardo (mentor)
    Differential Revision: https://reviews.freebsd.org/D38865
---
 devel/etcd34/Makefile | 8 +++++++-
 devel/etcd34/distinfo | 4 +++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/devel/etcd34/Makefile b/devel/etcd34/Makefile
index 7c731c33c93c..07a6ec272f53 100644
--- a/devel/etcd34/Makefile
+++ b/devel/etcd34/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	etcd
 PORTVERSION=	3.4.18
 DISTVERSIONPREFIX=	v
-PORTREVISION=	12
+PORTREVISION=	13
 CATEGORIES=	devel
 PKGNAMEPREFIX=	coreos-
 PKGNAMESUFFIX=	34
@@ -16,6 +16,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 USES=		cpe go:modules
 USE_GITHUB=	yes
 GH_ACCOUNT=	coreos
+GH_TUPLE=	golang:sys:v0.5.0:golang_sys
 
 GO_PKGNAME=	github.com/coreos/etcd
 GO_TARGET=	. ./etcdctl
@@ -29,6 +30,11 @@ PORTDOCS=	README.md
 OPTIONS_DEFINE=	DOCS
 DOCS_DESC=	Install etcd README file
 
+pre-patch:
+	${RM} ${WRKSRC}/vendor/modules.txt
+	${RM} -r ${WRKSRC}/vendor/golang.org/x/sys
+	${LN} -s ${WRKDIR}/sys-* ${WRKSRC}/vendor/golang.org/x/sys
+
 do-install-DOCS-on:
 	${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
diff --git a/devel/etcd34/distinfo b/devel/etcd34/distinfo
index 380942522b99..641501c9b99c 100644
--- a/devel/etcd34/distinfo
+++ b/devel/etcd34/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1635841651
+TIMESTAMP = 1677696890
 SHA256 (coreos-etcd-v3.4.18_GH0.tar.gz) = 738edb8da01c77e4ee59f9ebbf80f2461bdcb2c320da856464b89ed301a49ecb
 SIZE (coreos-etcd-v3.4.18_GH0.tar.gz) = 8856893
+SHA256 (golang-sys-v0.5.0_GH0.tar.gz) = 810c8f1b7704674971ab6b2b614aba20a5a1765018fd2c639f528dbbcbf88b1f
+SIZE (golang-sys-v0.5.0_GH0.tar.gz) = 1429723