Commit graph

880 commits

Author SHA1 Message Date
Benoit Daloze
f723aa7bf0 ruby-build 20260426 2026-04-26 23:37:45 +02:00
Hiroshi SHIBATA
1c4ddb5320
ruby-build 20260422 2026-04-22 10:15:49 +09:00
Mislav Marohnić
82be834195
Merge pull request #2576 from mikelolasagasti/droppingOfCertPemFile
Support RHEL 9+/Fedora 34+ CA bundle path
2026-04-21 20:21:57 +02:00
Mislav Marohnić
2b0f711360
Merge pull request #2614 from hasumikin/picoruby-3.4.2
Add PicoRuby 3.4.2 with new r2p2 executable
2026-04-21 20:20:27 +02:00
Benoit Daloze
90b52b26b7 ruby-build 20260412 2026-04-12 14:18:21 +02:00
HASUMI Hitoshi
d27dd19c24 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
2026-04-10 10:53:36 +09:00
Hiroshi SHIBATA
d099da0514
ruby-build 20260327 2026-03-27 09:13:23 +09:00
Hiroshi SHIBATA
98609f51ae
ruby-build 20260326 2026-03-26 10:36:45 +09:00
Hiroshi SHIBATA
e0074453e0
ruby-build 20260317 2026-03-17 09:04:00 +09:00
Hiroshi SHIBATA
6643698de6
ruby-build 20260311 2026-03-11 21:08:07 +09:00
Mislav Marohnić
a6d4d3a023
ruby-build 20260222 2026-02-22 21:09:37 +01:00
Jean Boussier
23a3fa9f11 Support building from arbitrary git revision
While bisecting, or building a nightly Ruby CI and some other situations,
it is useful to be able to build a specific Ruby revision rather than
just the tip of Ruby's master branch.
2026-02-19 08:42:16 +01:00
Benoit Daloze
7b526519e6 ruby-build 20260121 2026-01-21 20:08:27 +01:00
Hiroshi SHIBATA
d693ea747e
ruby-build 20260114 2026-01-14 11:05:33 +09:00
Hiroshi SHIBATA
9894cb339a
ruby-build 20260113 2026-01-13 13:52:49 +09:00
Benoit Daloze
3ffe15e0e1 ruby-build 20260110 2026-01-10 14:56:08 +01:00
Hiroshi SHIBATA
7ea6b50fe7
ruby-build 20251225 2025-12-25 13:39:22 +09:00
Hiroshi SHIBATA
8264adddb4
ruby-build 20251218 2025-12-18 14:23:18 +09:00
Hiroshi SHIBATA
60c9125fd0
ruby-build 20251217 2025-12-17 18:50:17 +09:00
Benoit Daloze
98288dd18e ruby-build 20251203 2025-12-03 15:36:01 +01:00
Benoit Daloze
fcaec71dee Follow repo move from oracle/truffleruby to truffleruby/truffleruby 2025-12-03 09:44:56 +01:00
Benoit Daloze
65a6833849 ruby-build 20251117 2025-11-17 15:09:39 +01:00
Hiroshi SHIBATA
447468b1b9
ruby-build 20251023 2025-10-23 20:24:15 +09:00
Mikel Olasagasti Uranga
cb14920bd6 Support RHEL 9+/Fedora 34+ CA bundle path
Detect /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem used in modern
RHEL and Fedora systems.

Also improve the error message when no system CA bundle is found.

Signed-off-by: Mikel Olasagasti Uranga <mikel@olasagasti.info>
2025-10-12 22:03:57 +02:00
Hiroshi SHIBATA
da5bb283df
ruby-build 20251008 2025-10-08 09:10:25 +09:00
Mislav Marohnić
a71c27a9e7
ruby-build 20250925 2025-09-25 13:57:06 +02:00
Mislav Marohnić
cf383ac114
Fixes "integer expression expected" error
This happens while compiling OpenSSL or any other non-Ruby package:

    ruby-build: line 723: [: : integer expression expected

This was because $ruby_semver was checked as a numeric value but was never set.
2025-09-25 13:50:49 +02:00
Benoit Daloze
d9725557c6 ruby-build 20250916.1 2025-09-16 18:30:45 +02:00
Hiroshi SHIBATA
58d14974bc
ruby-build 20250916 2025-09-16 09:15:53 +09:00
Jeremy Daer
df045bdc07 Drop the default package mirror
37signals are dropping AWS, which means goodbye to S3 and CloudFront.

The CloudFront mirror (dqw8nmjcqpjn7.cloudfront.net) was introduced ages
ago to address intermittent unavailability from some upstream sources.
These days, it mainly serves non-MRI packages like OpenSSL and libyaml.

Ruby releases are now served by Fastly (cache.ruby-lang.org) which has
bypassed the ruby-build mirror since 2015. Other sources (GitHub, RubyGems,
Maven) have their own CDNs.

This change removes the default `RUBY_BUILD_MIRROR_URL` and S3 release
mirroring. Custom mirror support remains.
2025-09-12 09:49:34 -07:00
Mislav Marohnić
ab15bd535f
ruby-build 20250908 2025-09-08 19:20:07 +02:00
Mislav Marohnić
28563f38a3
Fix using system openssl v1.x with pkg-config
System openssl version reported by `pkg-config --modversion openssl` might end
with a letter, e.g. "1.0.2k", due to OpenSSL versioning policy prior to OpenSSL v3:
https://www.openssl-library.org/policies/general/versioning-policy/#history

The letter would trip up the normalize_semver function due to it only handling numbers.

This change switches to semver parsing via awk instead of doing it clumsily in
bash.  This also changes the multiplication factor of major version numbers,
from 100000 to 10000, and adjusts static version comparisons accodingly.
2025-09-08 19:07:28 +02:00
Hiroshi SHIBATA
2d5ef5b4b0
ruby-build 20250829 2025-08-29 08:24:24 +09:00
Mislav Marohnić
95b887330e
Fix linking to Homebrew OpenSSL 2025-08-14 12:33:22 +02:00
Mislav Marohnić
fd0460e858
Merge pull request #2560 from rbenv/jruby-9.3
Fix regression in JRuby 9.3
2025-08-12 13:56:59 +02:00
Nicolas Bachschmidt
fd0f332f06
Consult pkg-config when detecting system OpenSSL (#2547)
Skip downloading and building OpenSSL if a compatible version was found with pkg-config, but only if that openssl version isn't under Homebrew's "cellar".

---------

Co-authored-by: Mislav Marohnić <git@mislav.net>
2025-08-12 13:56:42 +02:00
Mislav Marohnić
986c1e373e
Fix regression in JRuby 9.3
Commit f661b64cab that restores `bin/jruby.sh` for
all JRuby versions has an undesired effect on JRuby 9.3 when it pulls in
jruby-launcher v2. Since JRuby 9.3 is EOL and won't get a fix for this, at least
attempt to fix this in ruby-build since until recently JRuby 9.3 worked.

The fix is that JRuby 9.3 (and only those versions) are not allowed to install
jruby-launcher versions 2.0 or greater.
2025-08-11 16:03:12 +02:00
Mislav Marohnić
266b94f278
ruby-build 20250811 2025-08-11 15:46:25 +02:00
Hiroshi SHIBATA
a97e10ff10
ruby-build 20250724 2025-07-24 20:38:15 +09:00
Hiroshi SHIBATA
d037c38abb
ruby-build 20250716 2025-07-16 09:29:50 +09:00
Mislav Marohnić
72aae41d57
Fix Fedora version check when VERSION_ID is decimal
This fixes RHEL builds where VERSION_ID=7.9
2025-06-30 17:14:22 +02:00
|7eter l-|. l3oling
5693b62d54
Allow installation of Ruby 2.7, 3.0, 3.1 on Fedora >= 42 (#2543)
Fedora 42+ has updated to GCC v15. GCC v15 changed the default
mode from gnu17 to gnu23: https://gcc.gnu.org/gcc-15/changes.html#c

Ruby < 3.2 can't compile on GCC v15 in the default mode of gnu23.

Fixes https://github.com/rbenv/ruby-build/issues/2542

---------

Co-authored-by: Mislav Marohnić <git@mislav.net>
2025-06-26 01:26:07 +02:00
Mislav Marohnić
1195268593
ruby-build 20250610 2025-06-10 22:38:55 +02:00
Benoit Daloze
5fedc1fc56 ruby-build 20250529.1 2025-05-29 00:12:45 +02:00
Jason Karns
0f0b4f5628
ruby-build 20250516 2025-05-16 09:13:02 -04:00
Mislav Marohnić
7c0b13b355
ruby-build 20250507 2025-05-07 20:08:15 +02:00
Benoit Daloze
de8494ef4b ruby-build 20250430 2025-04-30 20:51:44 +02:00
Benoit Daloze
f89beda427 ruby-build 20250424 2025-04-24 22:41:33 +02:00
なつき
e90abc41aa Honor $JAVA_HOME in require_java 2025-04-18 15:09:22 +08:00
Hiroshi SHIBATA
e1393bad0e
ruby-build 20250418 2025-04-18 10:00:11 +09:00