Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Mar 2019 01:12:37 +0000 (UTC)
From:      "Sergey A. Osokin" <osa@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r496300 - head/www/unit-go
Message-ID:  <201903200112.x2K1CbX4003073@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: osa
Date: Wed Mar 20 01:12:36 2019
New Revision: 496300
URL: https://svnweb.freebsd.org/changeset/ports/496300

Log:
  Be more specific with go cache to fix the failed build.
  
  <BuildLog>
  GOPATH=/wrkdirs/usr/ports/www/unit-go/work go build nginx/unit
  failed to initialize build cache at /nonexistent/.cache/go-build: mkdir /nonexistent: permission denied
  </BuildLog>
  
  Do not bump PORTREVISION.

Modified:
  head/www/unit-go/Makefile

Modified: head/www/unit-go/Makefile
==============================================================================
--- head/www/unit-go/Makefile	Wed Mar 20 00:19:00 2019	(r496299)
+++ head/www/unit-go/Makefile	Wed Mar 20 01:12:36 2019	(r496300)
@@ -22,10 +22,10 @@ post-extract:
 	@true # override master's
 
 post-configure:
-	cd ${WRKSRC} && ${SETENV} ${GO_ENV} ./configure go --go-path=${WRKDIR}
+	cd ${WRKSRC} && ${SETENV} ${GO_ENV} GOCACHE=${WRKSRC}/go ./configure go --go-path=${WRKDIR}
 
 pre-build:
-	cd ${WRKSRC} && ${MAKE} && ${MAKE} go-install
+	cd ${WRKSRC} && ${MAKE_CMD} && ${SETENV} ${GO_ENV} GOCACHE=${WRKSRC}/go ${MAKE_CMD} go-install
 
 post-install:
 	@true # override master's



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