Opened 6 weeks ago

Closed 6 weeks ago

Last modified 6 weeks ago

#71045 closed defect (fixed)

openjdk21-openj9: Minimum OS version is 10.15 but install on older versions, openjdk17-openj9: minimum OS version is 10.14

Reported by: sambthompson (Sam Thompson) Owned by: breun (Nils Breunese)
Priority: Normal Milestone:
Component: ports Version: 2.10.2
Keywords: mojave Cc:
Port: openjdk21-openj9 openjdk17-openj9

Description

openjdk21-openj9 port installation succeeds on Mojave (and earlier, based on Port Health), however the installed file /opt/local/Library/Java/JavaVirtualMachines/jdk-21-ibm-semeru.jdk/Contents/Info.plist in the run-time has:

...
<key>JVMMinimumSystemVersion</key>
		<string>10.15.0</string>
...

This sort-of accords with IBM's support documentation, where earliest version supported for openjdk21-openj9 is stated as macOS 11 (and it's the prior LTS version openjdk17-openj9 which has OSX 10.14+ as minimum version).

Should adjust Portfile to exclude OS versions < 10.15, since /usr/libexec/java_home checks the minimum system version and will not report this JDK as present. This issue also affects openjdk17-openj9, where again (according to Port Health), it will install on versions earlier than 10.14, despite the Info.plist setting specifying 10.14

Change History (5)

comment:1 Changed 6 weeks ago by sambthompson (Sam Thompson)

Summary: openjdk21-openj9: Minimum OS version is 10.15, openjdk17-openj9: minimum OS version is 10.14openjdk21-openj9: Minimum OS version is 10.15 but install on older versions, openjdk17-openj9: minimum OS version is 10.14

comment:2 Changed 6 weeks ago by breun (Nils Breunese)

Thanks for pointing this out, I'll check JVMMinimumSystemVersion for all JDK ports and update as necessary.

comment:3 Changed 6 weeks ago by Nils Breunese <breun@…>

Resolution: fixed
Status: assignedclosed

comment:4 Changed 6 weeks ago by Nils Breunese <breun@…>

comment:5 Changed 6 weeks ago by sambthompson (Sam Thompson)

Thanks, Nils!

Note: See TracTickets for help on using tickets.