Opened 3 years ago

Last modified 3 years ago

#63988 assigned defect

openjdk11-temurin

Reported by: pdvnl Owned by: breun (Nils Breunese)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc: cjones051073 (Chris Jones)
Port:

Description

on osx 10.11 openjdk11-temurin fails to install:

--->  Fetching archive for openjdk11-temurin
--->  Attempting to fetch openjdk11-temurin-11.0.13_0.darwin_15.x86_64.tbz2 from http://packages.macports.org/openjdk11-temurin
--->  Attempting to fetch openjdk11-temurin-11.0.13_0.darwin_15.x86_64.tbz2 from http://mse.uk.packages.macports.org/openjdk11-temurin
--->  Attempting to fetch openjdk11-temurin-11.0.13_0.darwin_15.x86_64.tbz2 from http://ema.uk.packages.macports.org/openjdk11-temurin
--->  Fetching distfiles for openjdk11-temurin
Error: openjdk 11.0.13 is only supported on Mac OS X 10.12 Sierra or later.
Error: Failed to fetch openjdk11-temurin.
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_java_openjdk/openjdk11-temurin/main.log for details.

Change History (8)

comment:1 Changed 3 years ago by cjones051073 (Chris Jones)

Owner: set to breun
Status: newassigned

This is not a bug but intentional.

https://github.com/macports/macports-ports/blob/c5c47f3df960659199029e396646043177bd6bb7/java/openjdk/Portfile#L615

Nils should comment as maintainer, but I believe you should use an alternative jdk on older obsolete OSes like macOS 10.11

comment:2 Changed 3 years ago by cjones051073 (Chris Jones)

Cc: cjones051073 added

comment:3 Changed 3 years ago by breun (Nils Breunese)

I don't have access to old macOS versions to test, but if you hover your mouse over the macOS header on https://adoptium.net/supported_platforms.html you see: "macOS builds should work on 10.12 or above", so that is what I used for the check in MacPorts as well.

If you try manual install the .tar.gz or .pkg on 10.11 and can verify that everything works, we could consider lowering the OS requirement in MacPorts, but apparently the Adoptium project doesn't support 10.11 or older.

comment:4 Changed 3 years ago by breun (Nils Breunese)

IBM Semeru is supported on 10.10 or later: https://www.ibm.com/support/pages/semeru-runtimes-support Maybe the openjdk11-openj9 port can serve your needs on 10.11?

Last edited 3 years ago by breun (Nils Breunese) (previous) (diff)

comment:5 Changed 3 years ago by cjones051073 (Chris Jones)

The openjdk portfile should automatically handle that for users on these older OS, if indeed it works there, I would say ?

comment:6 Changed 3 years ago by breun (Nils Breunese)

The openjdk port is not really an installable port. It's marked as obsoleted by the subport for the latest Java LTS release (currently openjdk17).

IBM Semeru uses a different virtual machine implementation than most other OpenJDK-based JVM's (OpenJ9 instead of HotSpot VM). I'm not sure we should give users a OpenJ9-based JVM without asking for it, just because they run an older OS, but we could maybe add a suggestion to consider installing that instead when erroring out when the OS is not supported.

comment:7 Changed 3 years ago by thetrial (alabay)

Of course 11.0.13 works with El Capitan. Wasn’t V11 LTS? It clearly installs under El Capitan, too (from https://adoptium.net/?variant=openjdk11&jvmVariant=hotspot). 11.0.11 also had worked (and was installable). That worked via MacPorts, too. But the problem was/is, that the path does not contain exactly temurin-11.jdk. So TVBrowser could not find the MP installed Java stuff (guess TVBrowser related error, but I’m not keen on registering for a forum just to tell them bugs).

I guess it’s not bad to have older machines for MP testing due to some of them still are in use. They were good, maybe even better machines than the geeky new stuff.

comment:8 Changed 3 years ago by breun (Nils Breunese)

The fact that there have been binaries based on OpenJDK 11 source code for El Capitan in the past doesn’t automatically mean that these Eclipse Temurin binaries are compatible with El Capitan. If you have access to El Capitan and can verify that the binaries in the Eclipse Temurin 11.0.13 distribution for Mac work on 10.11, then I’m fine with lowering the minimum required OS version.

If TVBrowser requires a JDK in a specific location, maybe you can create a symlink with that name?

Note: See TracTickets for help on using tickets.