git: b5d08d839768 - main - www/caddy-custom: Fix build with BUILD_AS_NON_ROOT=yes
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 02 Oct 2026 03:30:18 UTC
The branch main has been updated by adamw:
URL: https://cgit.FreeBSD.org/ports/commit/?id=b5d08d8397681a5c692b6db61a412a03f7d84397
commit b5d08d8397681a5c692b6db61a412a03f7d84397
Author: Adam Weinberger <adamw@FreeBSD.org>
AuthorDate: 2026-10-02 03:25:06 +0000
Commit: Adam Weinberger <adamw@FreeBSD.org>
CommitDate: 2026-10-02 03:30:10 +0000
www/caddy-custom: Fix build with BUILD_AS_NON_ROOT=yes
Two fixes:
1. Establish a GOCACHE and GOPATH for BUILD_AS_NON_ROOT so it doesn't
try to use /nonexistant/go (patch by Brad Ackerman).
2. Reset PORTREVISION (Vick Khera). I added a note in caddy/Makefile
so maybe I'll remember in the future.
PR: 295182
---
www/caddy-custom/Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/www/caddy-custom/Makefile b/www/caddy-custom/Makefile
index d9d3f64bd69b..f14e4a8db612 100644
--- a/www/caddy-custom/Makefile
+++ b/www/caddy-custom/Makefile
@@ -4,7 +4,6 @@
PORTNAME= caddy-custom
PORTVERSION= ${CADDY_VERSION}.${XCADDY_VERSION}
-PORTREVISION= 22
CATEGORIES= www
DISTFILES= # none
@@ -38,7 +37,8 @@ PLUGINS+= --with ${plugin}
XCADDY_GO_BUILD_FLAGS?= ${GO_BUILDFLAGS}
XCADDY_ENV+= XCADDY_WHICH_GO="${GO_CMD}" \
- XCADDY_GO_BUILD_FLAGS="${XCADDY_GO_BUILD_FLAGS}"
+ XCADDY_GO_BUILD_FLAGS="${XCADDY_GO_BUILD_FLAGS}" \
+ GOCACHE=${WRKDIR}/gocache GOPATH=${WRKDIR}
do-build:
${MKDIR} ${WRKSRC}