git: c8a17c1e8417 - main - misc/gemini-cli: fix build broken by npm/node update
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 08 Oct 2026 01:05:30 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=c8a17c1e8417fb3f58dae3c88b5c911c12b565fd
commit c8a17c1e8417fb3f58dae3c88b5c911c12b565fd
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-10-08 01:04:24 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-10-08 01:05:28 +0000
misc/gemini-cli: fix build broken by npm/node update
---
misc/gemini-cli/Makefile | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/misc/gemini-cli/Makefile b/misc/gemini-cli/Makefile
index 08b567be834c..fe42a5fd4cd1 100644
--- a/misc/gemini-cli/Makefile
+++ b/misc/gemini-cli/Makefile
@@ -54,10 +54,12 @@ do-fetch:
); fi
do-build:
- # Build native modules for node-pty
@cd ${WRKSRC}/lib/node_modules/${PACKAGE_NAME}/node_modules/node-pty && \
${SETENV} HOME=${WRKDIR} CFLAGS="-I${LOCALBASE}/include" CXXFLAGS="-I${LOCALBASE}/include" \
- PYTHON=${PYTHON_CMD} npm rebuild --nodedir=${LOCALBASE}
+ PYTHON=${PYTHON_CMD} npx node-gyp rebuild --nodedir=${LOCALBASE}
+ @${RM} -r \
+ ${WRKSRC}/lib/node_modules/${PACKAGE_NAME}/node_modules/node-pty/build/Release/.deps \
+ ${WRKSRC}/lib/node_modules/${PACKAGE_NAME}/node_modules/node-pty/build/Release/obj.target
do-install:
# install files