Similar to the fix in openjdk17.
For more information and lessons learned see ports commit
fa96c62b2e3cacce280053fda46dedd8b84a1018 and the follow-up commits.
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.
n file included from /wrkdirs/usr/ports/java/openjdk24/work/openjdk-jdk-24.0.2-ga-freebsd-1/src/hotspot/share/precompiled/precompiled.hpp:45:
In file included from /wrkdirs/usr/ports/java/openjdk24/work/openjdk-jdk-24.0.2-ga-freebsd-1/src/hotspot/share/nmt/memTracker.hpp:30:
In file included from /wrkdirs/usr/ports/java/openjdk24/work/openjdk-jdk-24.0.2-ga-freebsd-1/src/hotspot/share/nmt/memoryFileTracker.hpp:34:
In file included from /wrkdirs/usr/ports/java/openjdk24/work/openjdk-jdk-24.0.2-ga-freebsd-1/src/hotspot/share/runtime/os.inline.hpp:31:
/wrkdirs/usr/ports/java/openjdk24/work/openjdk-jdk-24.0.2-ga-freebsd-1/src/hotspot/os_cpu/bsd_ppc/os_bsd_ppc.inline.hpp:35:10: error: no member named 'resolve_function_descriptor' in 'os::Bsd'; did you mean simply 'resolve_function_descriptor'?
35 | return os::Bsd::resolve_function_descriptor(p);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| resolve_function_descriptor
/wrkdirs/usr/ports/java/openjdk24/work/openjdk-jdk-24.0.2-ga-freebsd-1/src/hotspot/os_cpu/bsd_ppc/os_bsd_ppc.inline.hpp:34:18: note: 'resolve_function_descriptor' declared here
34 | inline void* os::resolve_function_descriptor(void* p) {
| ^
1 error generated.
Put back _MAKE_JOBS with a description why it is set empty.
Fixes:
===> Building for openjdk17-17.0.16+8.1_2
Error: 'make -jN' is not supported, use 'make JOBS=N'
NB: this error came from work/jdk17u-jdk-17.0.16-8-1/make/InitSupport.gmk:119
Bump portrevision so future failures are easy to trace back to specific
port version.
Reported-by: https://lists.freebsd.org/archives/freebsd-ports/2025-September/008453.html
The configure script detects cores and memory and calculates itself how many jobs it uses.
checking for number of cores... 28
checking for memory size... 130926 MB
checking for appropriate number of jobs to run in parallel... 28
Override this by the variables of our ports framework.
If this fixes the flapping builds I want to apply it to the other openjdk* ports.
Bump portrevision so future failures are easy to trace back.
Suggested in: https://lists.freebsd.org/archives/freebsd-java/2025-September/003304.html
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
This port installs precompiled binaries which rely on libutil.so.9,
which is replaced by libutil.so.10 in FreeBSD 15 and up.
Note that this only helps platforms for which misc/compat14x is
available, i.e. i386, amd64, and aarch64. The port remains broken
on powerpc, powerpc64, and powerpc64le.
Differential Revision: https://reviews.freebsd.org/D51873
Updates the OpenJDK to version 24.0.2, including several fixes for
FreeBSD backported from mainline.
Reviewed by: jrm
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D51367
Implement getCommittedVirtualMemorySize() directly using sysctl
kern.proc.vmmap
Implement getOpenFileDescriptorCount() directly using sysctl
kern.proc.nfds
Note on openjdk17 use closefrom where possible (note this use case is
only in openjdk 17, 21, 23 and 24)
Remove the message about the use of fdescfs(5) as this is not needed
for sure, keep the information about procfs(5) as I have not analysed
enough the source code to make sure it is not used anywhere else, but
I don't think it is.
Abandoned and obsolete, last release in 2010
Functionality offered in various more active projects and/or
including JDK itself
PR: 287366
Reviewed by: Jean-Paul Beconne <jpbeconne@free.fr> (maintainer)
Printf was confused because the argument was used as format string
and contained a %.
The issue is only cosmetical so not bumping port revision.
It is mentioned in the PR that an upstream fix is in openjdk25.
PR: 287053
Approved by: java@
===> Checking if linux-oracle-jdk18 is already installed
===> Registering installation for linux-oracle-jdk18-8.291
pkg-static: Invalid value for config option SHLIB_PROVIDE_PATHS_NATIVE, 'jre/lib' is not an absolute path.
pkg-static: Invalid value for config option SHLIB_PROVIDE_PATHS_NATIVE, 'lib' is not an absolute path.
pkg-static: Cannot parse configuration file!
*** Error code 1
This is variable LIB_DIRS collision with Mk/bsd.port.mk.
PR: 286831
Approved by: java (maintainer, implicit - fix port)
MFH: 2025Q2