git: 0c87f0f5334a - main - www/node26: Fix build by using bundled abseil
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 22 Sep 2026 15:23:19 UTC
The branch main has been updated by adamw:
URL: https://cgit.FreeBSD.org/ports/commit/?id=0c87f0f5334a3b4eb5fbe754930e7fba9a1ecd07
commit 0c87f0f5334a3b4eb5fbe754930e7fba9a1ecd07
Author: Adam Weinberger <adamw@FreeBSD.org>
AuthorDate: 2026-09-22 15:17:58 +0000
Commit: Adam Weinberger <adamw@FreeBSD.org>
CommitDate: 2026-09-22 15:23:10 +0000
www/node26: Fix build by using bundled abseil
node26 cannot build against devel/abseil. My assumption is that our
abseil port needs an update (it's 18-ish months old at this point).
For now, get node building again by using the bundled libabsl.
../deps/v8/src/base/platform/mutex.cc:63:18: error: no member named 'lock' in 'absl::Mutex'; did you mean 'Lock'?
63 | native_handle_.lock();
| ^~~~
| Lock
/usr/local/include/absl/synchronization/mutex.h:180:8: note: 'Lock' declared here
180 | void Lock() ABSL_EXCLUSIVE_LOCK_FUNCTION();
| ^
../deps/v8/src/base/platform/mutex.cc:69:18: error: no member named 'unlock' in 'absl::Mutex'; did you mean 'Unlock'?
69 | native_handle_.unlock();
| ^~~~~~
| Unlock
/usr/local/include/absl/synchronization/mutex.h:186:8: note: 'Unlock' declared here
186 | void Unlock() ABSL_UNLOCK_FUNCTION();
| ^
../deps/v8/src/base/platform/mutex.cc:73:23: error: no member named 'try_lock' in 'absl::Mutex'
73 | if (!native_handle_.try_lock()) return false;
| ~~~~~~~~~~~~~~ ^
3 errors generated.
PR: 298739
Reported by: kib
---
www/node26/Makefile | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/www/node26/Makefile b/www/node26/Makefile
index 43a1be7daa11..7d90b2b0ce89 100644
--- a/www/node26/Makefile
+++ b/www/node26/Makefile
@@ -18,8 +18,7 @@ BROKEN_SSL_REASON= Node.js ${PORTVERSION:R:R}.x requires OpenSSL or the BUNDLED_
ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc64 powerpc64le
BUILD_DEPENDS= objdump:devel/binutils
-LIB_DEPENDS= libabsl_base.so:devel/abseil \
- libada.so:devel/libada \
+LIB_DEPENDS= libada.so:devel/libada \
libbrotlidec.so:archivers/brotli \
libcares.so:dns/c-ares \
libffi.so:devel/libffi \
@@ -44,7 +43,6 @@ RUN_DEPENDS= corepack>=0:www/corepack
USES= compiler:c++20-lang gmake localbase pkgconfig python:build shebangfix tar:xz
CONFIGURE_ARGS= --prefix=${PREFIX:S|^${DESTDIR}||} \
- --shared-abseil \
--shared-ada \
--shared-brotli \
--shared-cares \
@@ -122,7 +120,6 @@ post-patch:
@${RM} -r ${WRKSRC}/deps/sqlite/
@${RM} -r ${WRKSRC}/deps/uv/
@${RM} -r ${WRKSRC}/deps/uvwasi/
- @${RM} -r ${WRKSRC}/deps/v8/third_party/abseil-cpp/
@${RM} -r ${WRKSRC}/deps/v8/third_party/highway/
@${RM} -r ${WRKSRC}/deps/zlib/
@${RM} -r ${WRKSRC}/deps/zstd/