mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
ruby-ng.eclass: die on errors in ruby_rbconfig_value
Die on errors in ruby_rbconfig_value, so that any issues with it cause an immediate stop, rather than returning a nil value which may propagate into installed ebuilds and cause hard-to-diagnose issues. Closes: https://bugs.gentoo.org/776322 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
@@ -607,7 +607,7 @@ ruby-ng_src_install() {
|
||||
# @USAGE: rbconfig item
|
||||
# @RETURN: Returns the value of the given rbconfig item of the Ruby interpreter in ${RUBY}.
|
||||
ruby_rbconfig_value() {
|
||||
echo $(${RUBY} --disable=did_you_mean -rrbconfig -e "puts RbConfig::CONFIG['$1']")
|
||||
echo $(${RUBY} --disable=did_you_mean -rrbconfig -e "puts RbConfig::CONFIG['$1']" || die "Could not read ruby configuration for '${1}'")
|
||||
}
|
||||
|
||||
# @FUNCTION: doruby
|
||||
|
||||
Reference in New Issue
Block a user