diff --git a/build/openjdk17/build.sh b/build/openjdk17/build.sh index b602426f60..04a2d96f4f 100755 --- a/build/openjdk17/build.sh +++ b/build/openjdk17/build.sh @@ -17,7 +17,7 @@ . ../../lib/functions.sh PROG=openjdk -VER=17.0.9+9 +VER=17.0.10+7 PKG=runtime/java/openjdk17 SUMMARY="openjdk ${VER%%.*}" DESC="Open-source implementation of the seventeenth edition of the " diff --git a/build/openjdk17/patches/illumos-port-18.patch b/build/openjdk17/patches/illumos-port-18.patch new file mode 100644 index 0000000000..f8bcb293f4 --- /dev/null +++ b/build/openjdk17/patches/illumos-port-18.patch @@ -0,0 +1,33 @@ +While we do have stafs(2) it has a different signature, is deprecated and +undocumented, while statvfs() gives the behaviour we actually want. + +--- a/test/jdk/java/io/File/libGetXSpace.c Wed Apr 5 22:54:38 2023 ++++ b/test/jdk/java/io/File/libGetXSpace.c Thu Apr 6 14:28:43 2023 +@@ -34,9 +34,13 @@ + #include + #include + #else ++#ifdef __sun__ ++#include ++#else + #include + #endif + #endif ++#endif + + #ifdef __cplusplus + extern "C" { +@@ -142,8 +146,13 @@ + chars[len] = '\0'; + (*env)->ReleaseStringChars(env, root, strchars); + ++#ifdef __sun__ ++ struct statvfs buf; ++ int result = statvfs((const char*)chars, &buf); ++#else + struct statfs buf; + int result = statfs((const char*)chars, &buf); ++#endif + free(chars); + if (result < 0) { + JNU_ThrowByNameWithLastError(env, "java/lang/RuntimeException", diff --git a/build/openjdk17/patches/java-solaris-sparc.patch b/build/openjdk17/patches/java-solaris-sparc.patch index 3b954f458c..81cf6d155c 100644 --- a/build/openjdk17/patches/java-solaris-sparc.patch +++ b/build/openjdk17/patches/java-solaris-sparc.patch @@ -988,11 +988,11 @@ @@ -36,7 +36,6 @@ LDFLAGS := $(LDFLAGS_JDKLIB) \ $(call SET_SHARED_LIBRARY_ORIGIN), \ - LIBS := -ljava, \ + LIBS_unix := -ljava, \ - LIBS_solaris := -lsocket, \ LIBS_linux := -ljvm, \ + LIBS_windows := jvm.lib ws2_32.lib $(WIN_JAVA_LIB), \ )) - --- old/make/modules/jdk.sctp/Lib.gmk 2020-05-20 17:59:26.921438651 -0700 +++ new/make/modules/jdk.sctp/Lib.gmk 2020-05-20 17:59:26.541431354 -0700 @@ -44,7 +44,6 @@ @@ -1488,10 +1488,10 @@ - -#define CURRENT_PC ((MemTracker::tracking_level() == NMT_detail && NMT_stack_walkable) ? \ +#define CURRENT_PC ((MemTracker::tracking_level() == NMT_detail) ? \ - NativeCallStack(0) : NativeCallStack::empty_stack()) + NativeCallStack(0) : FAKE_CALLSTACK) -#define CALLER_PC ((MemTracker::tracking_level() == NMT_detail && NMT_stack_walkable) ? \ +#define CALLER_PC ((MemTracker::tracking_level() == NMT_detail) ? \ - NativeCallStack(1) : NativeCallStack::empty_stack()) + NativeCallStack(1) : FAKE_CALLSTACK) class MemBaseline; --- old/src/hotspot/share/utilities/debug.cpp 2020-05-20 18:00:41.782876045 -0700 diff --git a/build/openjdk17/patches/series b/build/openjdk17/patches/series index c6d836b829..85d3f456a4 100644 --- a/build/openjdk17/patches/series +++ b/build/openjdk17/patches/series @@ -16,6 +16,7 @@ illumos-port-14.patch illumos-port-15.patch illumos-port-16.patch illumos-port-17.patch +illumos-port-18.patch illumos-signal-1.patch illumos-signal-2.patch illumos-signal-3.patch