Skip to content

Commit

Permalink
openjdk21: update patches (#26268)
Browse files Browse the repository at this point in the history
  • Loading branch information
breun authored Oct 23, 2024
1 parent ddb5ccb commit ba51b05
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion java/openjdk21/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pre-patch {
# Temporary workaround for clang 16: https://trac.macports.org/ticket/70819
# Temporary workaround for undeclared enum in < 11.00: https://trac.macports.org/ticket/71049
patchfiles JDK-8340341-clang-16-workaround.patch \
JDK-8266242-undecl-ident-nsbun-arm64-workaround.patch
JDK-8342071-undecl-ident-nsbun-arm64-workaround.patch

set tpath ${prefix}/Library/Java
use_xcode yes
Expand Down
2 changes: 1 addition & 1 deletion java/openjdk21/files/JDK-8340341-clang-16-workaround.patch
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# for the clang bug was still needed.
BUILD_LIBJVM_loopTransform.cpp_CXXFLAGS := $(CXX_O_FLAG_NONE)

+ # See JDK-8340341
+ # See https://bugs.openjdk.org/browse/JDK-8340341
+ ifeq ($(firstword $(subst ., ,$(CXX_VERSION_NUMBER))), 16)
+ BUILD_LIBJVM_stackMapTable.cpp_CXXFLAGS := -O1
+ endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

static BOOL isValidDisplayMode(CGDisplayModeRef mode) {
+ // https://trac.macports.org/ticket/71049: temporary additional guard for undef'd NSBun..ARM64
+ // Should be reported/fixed upstream at openjdk.org.
+ // https://bugs.java.com/bugdatabase/view_bug?bug_id=JDK-8342071
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= 110000
// Workaround for apple bug FB13261205, since it only affects arm based macs
// and arm support started with macOS 11 ignore the workaround for previous versions
Expand Down

0 comments on commit ba51b05

Please sign in to comment.