git: fa96c62b2e3c - main - java/openjdk17: try to fix the flapping build
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 11 Sep 2025 09:06:26 UTC
The branch main has been updated by ronald:
URL: https://cgit.FreeBSD.org/ports/commit/?id=fa96c62b2e3cacce280053fda46dedd8b84a1018
commit fa96c62b2e3cacce280053fda46dedd8b84a1018
Author: Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2025-09-11 08:53:58 +0000
Commit: Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2025-09-11 09:05:52 +0000
java/openjdk17: try to fix the flapping build
Build is flapping.
The error that pops up is similar to this, but the filename can change:
nm: 'abstractCompiler.o': Invalid argument
Sometimes the build runs fine and I can't reproduce the failure locally
on a 4-CPU RPI4.
If this stabalizes the build for openjdk17 I will apply it to other
openjdk* ports too.
Mind that openjdk23 and -24 already have this change and don't seem to fail.
Bumped portrevision so I can easily see if future failures use this change
or not.
Reported by: https://portsfallout.com/fallout?port=java%2Fopenjdk17%24
Reviewed by: https://lists.freebsd.org/archives/freebsd-java/2025-September/003296.html
---
java/openjdk17/Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/java/openjdk17/Makefile b/java/openjdk17/Makefile
index 5cb25e6aee72..9549ff9b0984 100644
--- a/java/openjdk17/Makefile
+++ b/java/openjdk17/Makefile
@@ -1,6 +1,7 @@
PORTNAME= openjdk
DISTVERSIONPREFIX= jdk-
DISTVERSION= ${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_PATCH_VERSION}+${JDK_BUILD_NUMBER}-${BSD_JDK_VERSION}
+PORTREVISION= 1
CATEGORIES= java devel
PKGNAMESUFFIX?= ${JDK_MAJOR_VERSION}
@@ -38,7 +39,6 @@ GH_PROJECT= jdk17u
NO_CCACHE= yes
-_MAKE_JOBS= #
MAKE_ENV= LANG="C" \
LC_ALL="C" \
CLASSPATH="" \
@@ -48,6 +48,7 @@ MAKE_ENV= LANG="C" \
CXX=${CXX} \
CPP=${CPP} \
MAKEFLAGS=""
+MAKE_JOBS_UNSAFE= yes
JDK_OSARCH= bsd-${ARCH:S/amd64/x86_64/:S/i386/x86/:S/powerpc64/ppc64/}
JDK_BUILDDIR= ${WRKSRC}/build/${JDK_OSARCH}-${JDK_BUILD_JVM}-${JDK_BUILD_TYPE}