svn commit: r497514 - branches/2019Q2/sysutils/consul-replicate
Tobias Kortkamp
tobik at FreeBSD.org
Mon Apr 1 20:09:49 UTC 2019
Author: tobik
Date: Mon Apr 1 20:09:48 2019
New Revision: 497514
URL: https://svnweb.freebsd.org/changeset/ports/497514
Log:
MFH: r497513
sysutils/consul-replicate: Unbreak build with Go 1.12
- Remove GOCACHE=off as build cache is required starting from Go 1.12 [1]
- Pass MAKE_ENV (so GOCACHE defaults to $WRKDIR/.cache)
[1] https://tip.golang.org/doc/go1.12#gocache
PR: 236033
Submitted by: Dmitri Goutnik <dg at syrec.org>
Approved by: jhixson (maintainer)
Approved by: ports-secteam build fix blanket
Modified:
branches/2019Q2/sysutils/consul-replicate/Makefile
Directory Properties:
branches/2019Q2/ (props changed)
Modified: branches/2019Q2/sysutils/consul-replicate/Makefile
==============================================================================
--- branches/2019Q2/sysutils/consul-replicate/Makefile Mon Apr 1 20:09:04 2019 (r497513)
+++ branches/2019Q2/sysutils/consul-replicate/Makefile Mon Apr 1 20:09:48 2019 (r497514)
@@ -11,8 +11,6 @@ COMMENT= Consul cross-DC KV replication daemon
LICENSE= MPL20
LICENSE_FILE= ${WRKSRC}/LICENSE
-BROKEN= fails to build
-
BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
USES= compiler
@@ -33,7 +31,7 @@ post-extract:
do-build:
@cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}; \
- ${SETENV} CGO_ENABLED=0 ${BUILD_ENV} GOCACHE=off GOPATH=${WRKSRC} \
+ ${SETENV} CGO_ENABLED=0 ${BUILD_ENV} ${MAKE_ENV} GOPATH=${WRKSRC} \
go build -v -x -ldflags "\
-X github.com/${GH_ACCOUNT}/${PORTNAME}/version.Version=${PORTVERSION} \
-X github.com/${GH_ACCOUNT}/${PORTNAME}/version.GitCommit=675a2c2 \
More information about the svn-ports-all
mailing list