components/ruby/ruby-19/patches/01-yaml_rb.patch
author April Chin <april.chin@oracle.com>
Wed, 06 Nov 2013 14:12:13 -0800
branchs11-update
changeset 2813 db0bfa0fa498
permissions -rw-r--r--
PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7 15700054 SUNBT7023596 integrate ruby version 1.9.3 17650189 problem in UTILITY/RUBY

# Until we add libyaml to Solaris, ruby will build with syck instead of psych;
# eliminate warning message, so it won't show up for every invocation of gem
#
--- ruby-1.9.3-p448.orig/lib/yaml.rb	Wed May 29 05:00:57 2013
+++ ruby-1.9.3-p448/lib/yaml.rb	Mon Aug 26 14:57:17 2013
@@ -85,9 +85,10 @@
     require 'psych'
     engine = 'psych'
   rescue LoadError
-    warn "#{caller[0]}:"
-    warn "It seems your ruby installation is missing psych (for YAML output)."
-    warn "To eliminate this warning, please install libyaml and reinstall your ruby."
+# remove warning for now, until libyaml is included in Solaris
+#    warn "#{caller[0]}:"
+#    warn "It seems your ruby installation is missing psych (for YAML output)."
+#    warn "To eliminate this warning, please install libyaml and reinstall your ruby."
     require 'syck'
     engine = 'syck'
   end