git: d96a7db1fe9a - main - devel/bazel{8,9}: pin to Java 21 to fix build with JDK 23+
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 07 Apr 2026 06:46:05 UTC
The branch main has been updated by delphij:
URL: https://cgit.FreeBSD.org/ports/commit/?id=d96a7db1fe9ac829e96b33345357cc0799ec6a3b
commit d96a7db1fe9ac829e96b33345357cc0799ec6a3b
Author: Xin LI <delphij@FreeBSD.org>
AuthorDate: 2026-04-07 06:45:59 +0000
Commit: Xin LI <delphij@FreeBSD.org>
CommitDate: 2026-04-07 06:45:59 +0000
devel/bazel{8,9}: pin to Java 21 to fix build with JDK 23+
Java 23 changed annotation processing defaults (JDK-8321314), breaking
the bootstrap compilation when openjdk23+ is selected via JAVA_VERSION=21+.
The port infrastructure already assumes Java 21 throughout (toolchain names,
config_settings), so pin to the exact version instead of passing -proc:full.
---
devel/bazel8/Makefile | 2 +-
devel/bazel9/Makefile | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/devel/bazel8/Makefile b/devel/bazel8/Makefile
index 8f63335caf44..7bc796a1c9f5 100644
--- a/devel/bazel8/Makefile
+++ b/devel/bazel8/Makefile
@@ -19,7 +19,7 @@ BUILD_DEPENDS= bash:shells/bash \
USES= cpe java python shebangfix zip
CPE_VENDOR= google
-JAVA_VERSION= 21+
+JAVA_VERSION= 21
JAVA_VENDOR= openjdk
SHEBANG_REGEX= .*(sh|txt|_stub|stub_.*|bazel|get_workspace_status|protobuf_support|_so)
diff --git a/devel/bazel9/Makefile b/devel/bazel9/Makefile
index 665e767b8406..dad926148981 100644
--- a/devel/bazel9/Makefile
+++ b/devel/bazel9/Makefile
@@ -19,7 +19,7 @@ BUILD_DEPENDS= bash:shells/bash \
USES= cpe java python shebangfix zip
CPE_VENDOR= google
-JAVA_VERSION= 21+
+JAVA_VERSION= 21
JAVA_VENDOR= openjdk
SHEBANG_REGEX= .*(sh|txt|_stub|stub_.*|bazel|get_workspace_status|protobuf_support|_so)