From d27dd19c245734fa6d482e826784295a4600899e Mon Sep 17 00:00:00 2001 From: HASUMI Hitoshi Date: Mon, 9 Feb 2026 14:33:30 +0900 Subject: [PATCH] Add PicoRuby 3.4.2 with new r2p2 executable This commit adds PicoRuby 3.4.2 and introduces a new artifacts: r2p2. Version numbering context: PicoRuby's version numbers are aligned with mruby's VM code specification compatibility. Version 3.4 indicates compatibility with mruby 3.4 VM code format, or RITE0300. Version 3.4.2 indicates minor bug fix in PicoRuby. Build artifact changes: Starting from version 3.4.2, PicoRuby has replaced the irb executable with r2p2 executable(POSIX version of PicoRuby shell system including IRB). The new build produces three executables: - picoruby: main Ruby interpreter - picorbc: Ruby bytecode compiler - r2p2: interactive REPL (replaces picoirb) Implementation: - Added conditional symlink logic in `build_package_picoruby()`: symlinks picoirb as irb if present - If there's no picoirb in artifacts, symlink for irb is not created - Added picoruby-3.4.2 definition file --- bin/ruby-build | 4 +++- share/ruby-build/picoruby-3.4.2 | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 share/ruby-build/picoruby-3.4.2 diff --git a/bin/ruby-build b/bin/ruby-build index 480973f6ab..6de5c479df 100755 --- a/bin/ruby-build +++ b/bin/ruby-build @@ -885,7 +885,9 @@ build_package_picoruby() { mkdir -p "$PREFIX_PATH" cp -fR build/host/* include "$PREFIX_PATH" ln -fs picoruby "$PREFIX_PATH/bin/ruby" - ln -fs picoirb "$PREFIX_PATH/bin/irb" + if [ -f build/host/bin/picoirb ]; then + ln -fs picoirb "$PREFIX_PATH/bin/irb" + fi } build_package_jruby() { diff --git a/share/ruby-build/picoruby-3.4.2 b/share/ruby-build/picoruby-3.4.2 new file mode 100644 index 0000000000..275726781e --- /dev/null +++ b/share/ruby-build/picoruby-3.4.2 @@ -0,0 +1 @@ +install_package "picoruby-3.4.2" "https://github.com/picoruby/picoruby/releases/download/3.4.2/picoruby-3.4.2.tar.gz#75a7dded2b2dff443a80e3bb8075ccf2fe7b77282f8a8a69689fc700b51d61f3" picoruby