summaryrefslogtreecommitdiff
path: root/lang/ruby/3.2/patches/patch-lib_rubygems_rb
diff options
context:
space:
mode:
authorVineet Kumar <git@vineetk.net>2026-06-15 14:54:51 -0400
committerVineet Kumar <git@vineetk.net>2026-06-15 14:54:51 -0400
commite81f04fa53e7e01afdc834d9c22b5c982c98f59b (patch)
tree763d6d68516ca9d184ddd2402978adcc4027a99d /lang/ruby/3.2/patches/patch-lib_rubygems_rb
parent92e45e47c29ec037842c4a34ebc0c14143d413ff (diff)
remove all ports to start from clean slateHEADmaster
This is due to the following two reasons: 1. it's very out of date compared with current ports tree (like by 2+ years!) - some of the ports here were mainly just updates I didn't upstream, which have since now been part of openbsd, like verilator 2. removing dependencies is a lot of headache to stay in sync and/or for ports I no longer use - e.g. dbus is very difficult to remove in a desktop while patching to remove from gtk and downstream - I don't want to spend more time reducing number of dependencies when I can be working instead. I no longer have as much free time as I did in high school :(
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