summaryrefslogtreecommitdiff
path: root/lang/ruby19-base/patches/patch-an
diff options
context:
space:
mode:
Diffstat (limited to 'lang/ruby19-base/patches/patch-an')
-rw-r--r--lang/ruby19-base/patches/patch-an14
1 files changed, 14 insertions, 0 deletions
diff --git a/lang/ruby19-base/patches/patch-an b/lang/ruby19-base/patches/patch-an
new file mode 100644
index 00000000000..e5b26858142
--- /dev/null
+++ b/lang/ruby19-base/patches/patch-an
@@ -0,0 +1,14 @@
+$NetBSD: patch-an,v 1.1.1.1 2010/09/12 03:50:06 taca Exp $
+
+* Make sure to load YAML before use it. When should YAML be loaded?
+
+--- lib/rubygems/specification.rb.orig 2010-04-22 08:24:42.000000000 +0000
++++ lib/rubygems/specification.rb
+@@ -476,6 +476,7 @@ class Gem::Specification
+ # 'input' can be anything that YAML.load() accepts: String or IO.
+
+ def self.from_yaml(input)
++ require 'yaml'
+ input = normalize_yaml_input input
+ spec = YAML.load input
+