[MacPorts] #69474: 'port install openjdk8-openj9' oddities

MacPorts noreply at macports.org
Mon Mar 11 17:20:17 UTC 2024


#69474: 'port install openjdk8-openj9' oddities
------------------------------+----------------------
  Reporter:  jf               |      Owner:  breun
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:
Resolution:                   |   Keywords:
      Port:  openjdk8-openj9  |
------------------------------+----------------------

Comment (by breun):

 IBM Semeru based on Java 8 officially only supports x64, while builds for
 both x64 and aarch64 are provided for Java 11 and later. The
 `openjdk8-openj9` portfile contains `supported_archs  x86_64`, but that
 indeed doesn't stop arm64 users from installing this port. But, as you
 noticed, it doesn't play nice on Apple Silicon devices and the
 installation of the port will trigger the offer to run `rev-upgrade`.

 If you don't run the `rev-upgrade` command, then afterwards I can
 successfully run its `java` binary:

 {{{
 ❯ /Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/bin/java
 -version
 openjdk version "1.8.0_402"
 IBM Semeru Runtime Open Edition (build 1.8.0_402-b06)
 Eclipse OpenJ9 VM (build openj9-0.43.0, JRE 1.8.0 Mac OS X amd64-64-Bit
 Compressed References 20240131_892 (JIT enabled, AOT enabled)
 OpenJ9   - 2c3d78b48
 OMR      - ea8124dbc
 JCL      - 0fa9d9c532 based on jdk8u402-b06)
 }}}

 The `java` binary is an x86_64 executable:

 {{{
 ❯ file
 /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/bin/java
 /opt/local/Library/Java/JavaVirtualMachines/openjdk8-openj9/Contents/Home/bin/java:
 Mach-O 64-bit executable x86_64
 }}}

 MacPorts also thinks it has installed the port for x86_64:

 {{{
 ❯ port -v installed openjdk8-openj9
 The following ports are currently installed:
   openjdk8-openj9 @8u402_0 (active) requested_variants='' platform='darwin
 any' archs='x86_64' date='2024-03-11T18:11:46+0100'
 }}}

 I don't know what I'd need to do to not make MacPorts think that this is a
 broken port with 7 broken dylib files. Any suggestions, @ryandesign?

-- 
Ticket URL: <https://trac.macports.org/ticket/69474#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list