git: 99545d29596b - main - www/immich: Unbreak the build with BUILD_AS_NON_ROOT
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 04 Oct 2026 07:29:03 UTC
The branch main has been updated by joneum:
URL: https://cgit.FreeBSD.org/ports/commit/?id=99545d29596bce96c896c8192f79eaaa0c896285
commit 99545d29596bce96c896c8192f79eaaa0c896285
Author: Jochen Neumeister <joneum@FreeBSD.org>
AuthorDate: 2026-10-04 07:28:10 +0000
Commit: Jochen Neumeister <joneum@FreeBSD.org>
CommitDate: 2026-10-04 07:28:54 +0000
www/immich: Unbreak the build with BUILD_AS_NON_ROOT
npm then has no writable HOME and cannot create its cache.
PR: 299082
Reported by: bruno@ruomad.net
Sponsored by: Netzkommune GmbH
---
www/immich/Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/www/immich/Makefile b/www/immich/Makefile
index 57bd406e467c..62c607787934 100644
--- a/www/immich/Makefile
+++ b/www/immich/Makefile
@@ -52,6 +52,7 @@ PLUGIN_SDK= @immich+plugin-sdk@file+packages+plugin-sdk
MAKE_ENV= CI=1 \
COREPACK_ENABLE_STRICT=0 \
+ HOME=${WRKDIR} \
NODE_OPTIONS=--max-old-space-size=4096 \
npm_config_build_from_source=true \
npm_config_nodedir=${LOCALBASE} \
@@ -70,7 +71,7 @@ post-patch:
${WRKSRC}/server/src/services/database-backup.service.ts
pre-build:
- cd ${WRKDIR} && ${SETENV} PATH=${PATH} \
+ cd ${WRKDIR} && ${SETENV} ${MAKE_ENV} PATH=${PATH} \
npm install -g --prefix ${WRKDIR}/pnpm-prefix \
${BUILDKIT}/pnpm-${PNPM_VERSION}.tgz