From 32c77a3dc4ee2c7464d13be31f29fa7e04f64c40 Mon Sep 17 00:00:00 2001 From: Camden Narzt Date: Mon, 25 Mar 2024 13:33:09 -0600 Subject: [PATCH] =?UTF-8?q?fix=20rvm=E2=80=99s=20irbrc=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- image/ruby_support/finalize.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/image/ruby_support/finalize.sh b/image/ruby_support/finalize.sh index 3584403f..9f402256 100755 --- a/image/ruby_support/finalize.sh +++ b/image/ruby_support/finalize.sh @@ -5,10 +5,14 @@ source /pd_build/buildconfig ## Remove useless files. rm -f /usr/local/rvm/rubies/*/lib/libruby-static.a -## Set the latest available Ruby as the default. - known_rubies=`/usr/local/rvm/bin/rvm list strings` +## Fix https://github.com/rvm/rvm/issues/5449 +for ver in $known_rubies; do + sed -e 's/require/load/g' -i'' "/usr/local/rvm/rubies/$ver/.irbrc" +done + +## Set the latest available Ruby as the default. function set_rvm_default() { local regex="$1"