Opened 3 years ago

Closed 3 years ago

#62973 closed defect (fixed)

Update sbt's JAVA_OPTS

Reported by: catap (Kirill A. Korinsky) Owned by: catap (Kirill A. Korinsky)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: sbt

Description

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@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@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@Mac-mini sbt %

A fix is easy, but I guess it should be done also inside ports:

catap@Mac-mini sbt % cat > ~/.sbtconfig     
# dissable JAVA_OPTS by macports
JAVA_OPTS=" "
catap@Mac-mini sbt % sbt               
[info] [launcher] getting org.scala-sbt sbt 1.4.6  (this may take some time)...

Change History (3)

comment:1 Changed 3 years ago by jmroot (Joshua Root)

Port: sbt added

comment:2 Changed 3 years ago by catap (Kirill A. Korinsky)

comment:3 Changed 3 years ago by catap (Kirill A. Korinsky)

Owner: set to catap
Resolution: fixed
Status: newclosed

In 3f7fd06cd09196746349f453f1b336e334cfbd14/macports-ports (master):

sbt: use standard wrapper

Closes: #62973

Note: See TracTickets for help on using tickets.