summaryrefslogtreecommitdiff
path: root/lang/ruby/3.2/patches/patch-lib_rubygems_rb
diff options
context:
space:
mode:
Diffstat (limited to 'lang/ruby/3.2/patches/patch-lib_rubygems_rb')
-rw-r--r--lang/ruby/3.2/patches/patch-lib_rubygems_rb25
1 files changed, 0 insertions, 25 deletions
diff --git a/lang/ruby/3.2/patches/patch-lib_rubygems_rb b/lang/ruby/3.2/patches/patch-lib_rubygems_rb
deleted file mode 100644
index 233c34c..0000000
--- a/lang/ruby/3.2/patches/patch-lib_rubygems_rb
+++ /dev/null
@@ -1,25 +0,0 @@
1Disable the use of `gem update --system`, which is not supported when using
2OpenBSD packages. Also avoids printing the nagging update message:
3
4 A new release of RubyGems is available: 3.4.1 - 3.4.2!
5 Run `gem update --system 3.4.2` to update your installation.
6
7The ENV usage is to skip this logic during tests, to avoid test failures.
8
9Index: lib/rubygems.rb
10--- lib/rubygems.rb.orig
11+++ lib/rubygems.rb
12@@ -1168,6 +1168,13 @@ An Array (#{env.inspect}) was passed in from #{caller[
13
14 attr_accessor :disable_system_update_message
15
16+ unless ENV['RUBYGEMS_SYSTEM_UPDATE_MESSAGE'] == 'enable'
17+ Gem.disable_system_update_message = <<EOF
18+Ruby was installed using an OpenBSD package, and using `gem update --system`
19+is not supported.
20+EOF
21+ end
22+
23 ##
24 # Whether RubyGems should enhance builtin `require` to automatically
25 # check whether the path required is present in installed gems, and