BUNDLE_LIBS is for preventing _providing_ libraries. In this
case the pre-compiled binary distributed has dependencies on
libraries that are not provided here. BUNDLE_LIBS does not
help the problem.
Add flavor to make a headless jre package, where dev tools and x11
support is removed. As requested in Bug #266059.
PR: 266059
Reviewed by: fuz, jrm
Approved by: fuz (Mentor), jrm
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D53707
This prevents Pkg from recording the bundled libraries as
dependencies. This otherwise can confuse Pkg and Poudriere
about missing dependencies.
Reviewed by: bapt
Differential Revision: https://reviews.freebsd.org/D53723
Suppress warnings with newer llvm versions.
If upstream doesn't fix the warnings it makes no sense to bother the
port with it.
In my test the log went from 30 MB to 3 MB.
No functional change intended.
Approved by: java@ mailing list
Add FLAVORS to allow building jre and headless variants from the same
port. For backwards compatibility, it is also possible to build the jre
version by setting the BUILD_JRE env var.
Also reorganize the Makefile to make portclippy happy
Reviewed by: fuz, jrm
Approved by: fuz (mentor)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D53450
/wrkdirs/usr/ports/java/openjdk25/work/openjdk-jdk-25-36-freebsd-1/src/hotspot/os_cpu/bsd_ppc/os_bsd_ppc.cpp:182:54: error: no member named 'regs' in '__mcontext'
- old version, the project continued in another repository and nobody noticed
- no users in the ports tree
- manual download, so no package is available
Got a report that build is also flapping on 14.3, so extent the range
of OSVERSIONs.
Allow parallel jobs, but limited to the number of jobs that is
currently used (and works) on the official FreeBSD pkg build cluster.
PR: 290148
- Add dependency on libX11 and libXext.
- Replace ${SETENV} with ${SETENVI} ${WRK_ENV} to build with a clean
environment.
- Install the library with ${INSTALL_LIB} so it is stripped.
- Link with C compiler because ld doesn't always search /usr/lib.
Reported by: vvd
- Enable and fix demangling C++ symbols in the Servicability Agent for
FreeBSD. This fixes several issues with backtraces and looking up
symbols when debugging or inspecting programs running in the JVM.
- Fix a performance issue when looking up committed memory size and
number of open file handles via the OperatingSystemMXBean interface.
This affected some large ElasticSearch clusters, but potentially also
other large high performance systems.
Reviewed by: emaste, jrm
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D52354
- Enable IPv6 dual protocol socket support on FreeBSD.
- Fixed a performance issue when looking up committed memory size and
number of open file handles via the OperatingSystemMXBean interface.
This affected some large ElasticSearch clusters, but potentially also
other large high performance systems.
Reviewed by: emaste, jrm
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D52381
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