Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Apr 2019 20:09:04 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r497513 - head/sysutils/consul-replicate
Message-ID:  <201904012009.x31K94YG027742@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Mon Apr  1 20:09:04 2019
New Revision: 497513
URL: https://svnweb.freebsd.org/changeset/ports/497513

Log:
  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@syrec.org>
  Approved by:	jhixson (maintainer)

Modified:
  head/sysutils/consul-replicate/Makefile

Modified: head/sysutils/consul-replicate/Makefile
==============================================================================
--- head/sysutils/consul-replicate/Makefile	Mon Apr  1 20:05:07 2019	(r497512)
+++ head/sysutils/consul-replicate/Makefile	Mon Apr  1 20:09:04 2019	(r497513)
@@ -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  \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904012009.x31K94YG027742>