[MacPorts] #62973: Update sbt's JAVA_OPTS

MacPorts noreply at macports.org
Wed May 26 21:46:11 UTC 2021


#62973: Update sbt's JAVA_OPTS
--------------------+--------------------
 Reporter:  catap   |      Owner:  (none)
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:
 Keywords:          |       Port:
--------------------+--------------------
 Right now sbt forces to use `CMSClassUnloadingEnabled` which had gone at
 modern JVM.

 Let me share some example how I tried to start it:
 {{{
 catap at Mac-mini sbt % sudo port install sbt
 --->  Fetching archive for sbt
 --->  Attempting to fetch sbt-1.4.6_0.darwin_20.noarch.tbz2 from
 https://fra.de.packages.macports.org/sbt
 --->  Attempting to fetch sbt-1.4.6_0.darwin_20.noarch.tbz2.rmd160 from
 https://fra.de.packages.macports.org/sbt
 --->  Installing sbt @1.4.6_0
 --->  Activating sbt @1.4.6_0
 --->  Cleaning sbt
 --->  Updating database of binaries
 --->  Scanning binaries for linking errors
 --->  No broken files found.
 --->  No broken ports found.
 catap at Mac-mini sbt % sbt
 Unrecognized VM option 'CMSClassUnloadingEnabled'
 Error: Could not create the Java Virtual Machine.
 Error: A fatal exception has occurred. Program will exit.
 catap at Mac-mini sbt %
 }}}

 A fix is easy, but I guess it should be done also inside ports:
 {{{
 catap at Mac-mini sbt % cat > ~/.sbtconfig
 # dissable JAVA_OPTS by macports
 JAVA_OPTS=" "
 catap at Mac-mini sbt % sbt
 [info] [launcher] getting org.scala-sbt sbt 1.4.6  (this may take some
 time)...
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/62973>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list