Files
ports/lang/jruby/patches/patch-jruby-launcher_jrubyexe_cpp
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

18 lines
468 B
Plaintext

Hardcode executable path so that the symlink in the standard PATH
works correctly.
Index: jruby-launcher/jrubyexe.cpp
--- jruby-launcher/jrubyexe.cpp.orig
+++ jruby-launcher/jrubyexe.cpp
@@ -57,8 +57,10 @@ const char *CON_ATTACH_MSG =
#include "unixlauncher.h"
#endif // WIN32
+char JRUBY_PATH[] = "${PREFIX}/jruby/bin/jruby";
int main(int argc, char *argv[], char* envp[]) {
+ argv[0] = JRUBY_PATH;
#ifdef WIN32
checkLoggingArg(argc, argv, true);