git: d0afe5cf11c6 - main - java/openjdk17: generate more output during compilation
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 19 Sep 2025 11:38:28 UTC
The branch main has been updated by ronald:
URL: https://cgit.FreeBSD.org/ports/commit/?id=d0afe5cf11c699741cc117f3120b618e12d39e91
commit d0afe5cf11c699741cc117f3120b618e12d39e91
Author: Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2025-09-19 11:27:31 +0000
Commit: Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2025-09-19 11:37:26 +0000
java/openjdk17: generate more output during compilation
Prevents:
Creating support/modules_libs/java.base/server/libjvm.so from 989 file(s)
=>> Killing runaway build after 7200 seconds with no output
The cmdlines output can also help in debugging the flapping builds if a
race condition is the cause of the 'nm' error. (see previous commits)
Reported-by: https://lists.freebsd.org/archives/freebsd-pkg-fallout/2025-September/807751.html
Plus, use --with-num-cores instead of --with-jobs. With-num-cores still
lets configure override (reduce) the number of parallel jobs if the
memory size is limited. With-jobs sets an absolute number.
See {WRKSRC}/doc/building.md for more information.
Reported-by: https://lists.freebsd.org/archives/freebsd-java/2025-September/003314.html
Bump portrevision so future failures are easy to trace back to specific
port version.
---
java/openjdk17/Makefile | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/java/openjdk17/Makefile b/java/openjdk17/Makefile
index 1af63a2554c8..3571d44ad9df 100644
--- a/java/openjdk17/Makefile
+++ b/java/openjdk17/Makefile
@@ -1,7 +1,7 @@
PORTNAME= openjdk
DISTVERSIONPREFIX= jdk-
DISTVERSION= ${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_PATCH_VERSION}+${JDK_BUILD_NUMBER}-${BSD_JDK_VERSION}
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= java devel
PKGNAMESUFFIX?= ${JDK_MAJOR_VERSION}
@@ -50,6 +50,7 @@ MAKE_ENV= LANG="C" \
CC=${CC} \
CXX=${CXX} \
CPP=${CPP} \
+ LOG=cmdlines \
MAKEFLAGS=""
JDK_OSARCH= bsd-${ARCH:S/amd64/x86_64/:S/i386/x86/:S/powerpc64/ppc64/}
@@ -91,8 +92,8 @@ CONFIGURE_ARGS= --with-boot-jdk=${BOOTSTRAPJDKDIR} \
--with-giflib-include=${LOCALBASE}/include \
--with-giflib-lib=${LOCALBASE}/lib \
--with-harfbuzz=system \
- --with-jobs=${MAKE_JOBS_NUMBER} \
--with-libpng=system \
+ --with-num-cores=${MAKE_JOBS_NUMBER} \
--with-zlib=system \
--with-lcms=system \
--x-includes=${LOCALBASE}/include \