[MacPorts] #58108: JDK missing in Mojave images?

MacPorts noreply at macports.org
Thu Feb 21 00:09:05 UTC 2019


#58108: JDK missing in Mojave images?
----------------------------+---------------------
  Reporter:  mattbishop     |      Owner:  admin@…
      Type:  enhancement    |     Status:  new
  Priority:  Normal         |  Milestone:
 Component:  buildbot/mpbb  |    Version:
Resolution:                 |   Keywords:
      Port:                 |
----------------------------+---------------------

Comment (by mattbishop):

 I tried the py-tensorflow approach and didn't find a lot of joy. It looks
 like it cannot pick up the JAVA_HOME that was set earlier in the port
 file:

 # Required java version
 java.version        1.8
 # JDK port to install if required java not found
 java.fallback       openjdk8

 if {[info exists env(JAVA_HOME)]} {
     configure.args-append   --with-java-home="$env(JAVA_HOME)"
 } else {
     configure.args-append   --with-java-home="${java.home}"
 }

 ...
 main.log:

 :debug:configure
 JAVA_HOME='/Library/Java/JavaVirtualMachines/openjdk8/Contents/Home'

  --with-java-home=""

 Not sure why it can't pick up either java.home or JAVA_HOME.

 This may not be a big deal as tomcat-native is a C lib using JNI headers
 in the JDK to build against. These headers are super-stable so any version
 will do. tomcat-native does not use the JRE/JDK at runtime but is loaded
 as a JNI lib by tomcat at launch. Usually the installer will have JDK
 installed in order to run tomcat. tomcat-native has no use outside of a
 tomcat runtime.

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


More information about the macports-tickets mailing list