Files
ports/lang/jruby/patches/patch-bin_jruby_sh
jeremy d5bccafe39 Update to JRuby 10.1.0.0
This brings the Ruby version to 4.0. This updates the embedded jffi to
from 1.3.10 to 1.3.15, and the embedded jruby-launcher from 1.1.19 to
2.0.2.

This disables AppCDS usage unless the user has configured a JRUBY_JSA
environment variable, as the default location is not writable results
in a warning.

This ships more of the jruby bin files. There were some hidden files
needed to avoid warnings, as well as some new programs that should be
added. These go in /usr/local/jruby/bin, which is not in PATH, so
conflicts aren't an issue.

One issue with this version is it ships a version of minitest that
doesn't work, as the version it ships depends on a prism library that
it doesn't ship. This should be fixed in the next version, but in the
meantime, comment out a couple minitest files in the PLIST. Users can
use the following to install a usable minitest version:

  jruby -S gem install minitest --version '<6'
2026-05-10 00:13:36 +00:00

19 lines
571 B
Plaintext

Avoid the following warning on every startup:
Warning: AppCDS archive directory is not writable, disabling AppCDS operations
Users can set the JRUBY_JSA environment variable to a writeable file; doing so
improves performance significantly.
Index: bin/jruby.sh
--- bin/jruby.sh.orig
+++ bin/jruby.sh
@@ -875,6 +875,7 @@ if [ -n "${JRUBY_JSA-}" ]; then
else
# Default JVM Class Data Sharing Archive (jsa) file for JVMs that support it
jruby_jsa_file="$JRUBY_HOME/lib/jruby-java$java_runtime_version.jsa"
+ use_jsa_file=false
fi
readonly jruby_jsa_file