java/openjdk26: fix build on freebsd 16/aarch64
Output from failing command(s) repeated here
- For target hotspot_variant-server_libjvm_objs_os_bsd.o:
In file included from /wrkdirs/usr/ports/java/openjdk26/work-jdk/openjdk-jdk-26-35-1/src/hotspot/os/bsd/os_bsd.cpp:135:
In file included from /usr/include/sys/user.h:52:
In file included from /usr/include/vm/pmap.h:88:
In file included from /usr/include/machine/pmap.h:46:
In file included from /usr/include/sys/systm.h:46:
/usr/include/machine/cpufunc.h:35:1: error: static declaration of 'breakpoint' follows non-static declaration
35 | breakpoint(void) | ^
/wrkdirs/usr/ports/java/openjdk26/work-jdk/openjdk-jdk-26-35-1/src/hotspot/share/utilities/breakpoint.hpp:31:17: note: previous declaration is here
31 | extern "C" void breakpoint(); | ^
1 error generated.
- For target hotspot_variant-server_libjvm_objs_os_perf_bsd.o:
In file included from /wrkdirs/usr/ports/java/openjdk26/work-jdk/openjdk-jdk-26-35-1/src/hotspot/os/bsd/os_perf_bsd.cpp:37:
In file included from /usr/include/sys/user.h:52:
In file included from /usr/include/vm/pmap.h:88:
In file included from /usr/include/machine/pmap.h:46:
In file included from /usr/include/sys/systm.h:46:
/usr/include/machine/cpufunc.h:35:1: error: static declaration of 'breakpoint' follows non-static declaration
35 | breakpoint(void) | ^
/wrkdirs/usr/ports/java/openjdk26/work-jdk/openjdk-jdk-26-35-1/src/hotspot/share/utilities/breakpoint.hpp:31:17: note: previous declaration is here
31 | extern "C" void breakpoint(); | ^
1 error generated.
- All command lines available in /wrkdirs/usr/ports/java/openjdk26/work-jdk/openjdk-jdk-26-35-1/build/bsd-aarch64-server-release/make-support/failure-logs.
End of repeated output
I don't know why this does not happen on other architectures or freebsd versions.
- changed post-patch to pre-configure, this makes it a lot easier to use "make
makepatch".
Reported-by: https://portsfallout.com/fallout?port=java%2Fopenjdk
Approved-by: silence on java@ https://lists.freebsd.org/archives/freebsd-java/2026-June/003715.html