17291717 gem install is broken s11-update
authorApril Chin <april.chin@oracle.com>
Mon, 12 Aug 2013 22:22:15 -0700
branchs11-update
changeset 2728 bf58c1253c6c
parent 2727 1025391509eb
child 2729 2f15e9679c2c
17291717 gem install is broken
components/ruby/patches/09-ruby_marshal_c.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/ruby/patches/09-ruby_marshal_c.patch	Mon Aug 12 22:22:15 2013 -0700
@@ -0,0 +1,22 @@
+diff -rupN ruby-1.8.7-p374.orig/marshal.c ruby-1.8.7-p374/marshal.c
+--- ruby-1.8.7-p374.orig/marshal.c	2012-03-01 18:45:35.000000000 -0800
++++ ruby-1.8.7-p374/marshal.c	2013-08-10 16:45:24.260126000 -0700
[email protected]@ -756,7 +756,7 @@ marshal_dump(argc, argv)
+     VALUE obj, port, a1, a2;
+     int limit = -1;
+     struct dump_arg *arg;
+-    VALUE wrapper;
++    volatile VALUE wrapper;
+ 
+     port = Qnil;
+     rb_scan_args(argc, argv, "12", &obj, &a1, &a2);
[email protected]@ -1450,7 +1450,8 @@ marshal_load(argc, argv)
+ {
+     VALUE port, proc;
+     int major, minor, taint = Qfalse;
+-    VALUE v, wrapper;
++    VALUE v;
++    volatile VALUE wrapper;
+     struct load_arg *arg;
+ 
+     rb_scan_args(argc, argv, "11", &port, &proc);