ruby--ruby/ext
Alan Wu 9357e310fb [ruby/psych] Fix libyaml download failure rescue under miniruby
I tried to build Ruby on a system without libyaml today and realized
that my attempt from <https://github.com/ruby/psych/pull/557> doesn't
fix the error in <https://github.com/ruby/psych/issues/552>. I still got
the same `LoadError` from `digest` which stopped the build.

Since `LoadError` is not a `StandardError`, a plain `rescue` doesn't catch
it. Catch `LoadError` explicitly instead and reduce the scope of the
`begin` block.

I tested this change in a Ruby build on macOS without libyaml installed
and confirmed that `make` continues with a warning instead of aborting:

    *** Following extensions are not compiled:
    psych:
            Could not be configured. It will not be installed.
            ...

This should address <https://bugs.ruby-lang.org/issues/18790>.

https://github.com/ruby/psych/commit/251289ba83
2022-06-15 01:05:51 +09:00
..
-test- Make method id explicit in rb_exec_recursive_outer 2022-06-10 14:48:21 -07:00
bigdecimal [ruby/bigdecimal] Fix docs 2022-04-18 10:29:25 +09:00
cgi/escape
continuation
coverage Rust YJIT 2022-04-27 11:00:22 -04:00
date [ruby/date] Constify gperf-generated table 2022-05-24 17:23:42 +09:00
digest
etc
fcntl
fiddle
io Merge JRuby implementation for stringio and io-wait 2022-05-20 18:45:14 +09:00
json [flori/json] Bump version to 2.6.2 2022-05-20 17:49:13 +09:00
monitor
nkf [ruby/nkf] Constified invariant tables 2022-06-03 20:25:12 +09:00
objspace Rust YJIT 2022-04-27 11:00:22 -04:00
openssl Suppress warnings by OpenSSL 3 2022-03-16 20:49:00 +09:00
pathname Merge https://github.com/ruby/pathname/pull/8 for pathname 2022-05-20 18:36:01 +09:00
psych [ruby/psych] Fix libyaml download failure rescue under miniruby 2022-06-15 01:05:51 +09:00
pty Update PTY.spawn's document 2022-04-13 15:43:28 -04:00
racc/cparse
rbconfig/sizeof
readline [ruby/readline-ext] Removed the duplicated dependencies 2022-03-25 20:27:58 +09:00
ripper
rubyvm
socket Fix broken links of rdoc 2022-03-17 10:11:38 +09:00
stringio [ruby/stringio] Fix extracting encoding names in the fallback code 2022-05-30 14:48:45 +09:00
strscan
syslog
win32
win32ole
zlib Removed mswin patch for zlib-1.2.11 2022-04-05 14:30:47 +09:00
.document
Setup
Setup.atheos
Setup.nt
extmk.rb Move the target directory of bundled gems like as rubygems 2022-04-07 09:47:10 +09:00