git: 42d622822a7b - main - net-mgmt/uptime-kuma: Fix build on 16-CURRENT arm64
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 17 Jul 2026 07:27:37 UTC
The branch main has been updated by dch:
URL: https://cgit.FreeBSD.org/ports/commit/?id=42d622822a7b3170795c98b0174acc823bd6021d
commit 42d622822a7b3170795c98b0174acc823bd6021d
Author: Dave Cottlehuber <dch@FreeBSD.org>
AuthorDate: 2026-07-16 15:25:46 +0000
Commit: Dave Cottlehuber <dch@FreeBSD.org>
CommitDate: 2026-07-17 07:26:28 +0000
net-mgmt/uptime-kuma: Fix build on 16-CURRENT arm64
Sponsored by: SkunkWerks, GmbH
---
net-mgmt/uptime-kuma/Makefile | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/net-mgmt/uptime-kuma/Makefile b/net-mgmt/uptime-kuma/Makefile
index 63075b99dfb6..36a3100711c0 100644
--- a/net-mgmt/uptime-kuma/Makefile
+++ b/net-mgmt/uptime-kuma/Makefile
@@ -1,4 +1,5 @@
PORTNAME= uptime-kuma
+PORTREVISION= 1
DISTVERSION= 2.4.0
CATEGORIES= net-mgmt www
MASTER_SITES= LOCAL/dch/${PORTNAME}/:npmcache \
@@ -83,6 +84,13 @@ do-build:
'/checkAndPreparePackage()\.then/,$$d' \
${WRKSRC}/node_modules/esbuild/install.js
${ECHO_CMD} 'checkAndPreparePackage();' >> ${WRKSRC}/node_modules/esbuild/install.js
+# clang 16+ rejects static_cast<napi_typedarray_type>(-1) as a non-constant
+# expression because -1 is outside the valid enum range [0,15]. Adding
+# 'inline' makes it a C++17 inline static data member whose initialiser is
+# no longer required to be a constant expression.
+ ${REINPLACE_CMD} \
+ 's/static const napi_typedarray_type unknown_array_type = /static inline const napi_typedarray_type unknown_array_type = /' \
+ ${WRKSRC}/node_modules/node-addon-api/napi.h
cd ${WRKSRC} && \
${SETENV} ${MAKE_ENV} HOME=${WRKDIR} npm_config_cache=${_NPM_CACHE} \
npm_config_offline=true npm_config_python=${PYTHON_CMD} \