graaff      14/12/27 20:59:39

  Added:                json-1.8.1-ruby22.patch
  Log:
  Add ruby22 with ruby patch for compatibility.
  
  (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 
0x8883FA56A308A8D7!)

Revision  Changes    Path
1.1                  dev-ruby/json/files/json-1.8.1-ruby22.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/json/files/json-1.8.1-ruby22.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/json/files/json-1.8.1-ruby22.patch?rev=1.1&content-type=text/plain

Index: json-1.8.1-ruby22.patch
===================================================================
Fix compilation issue with ruby22.

See https://github.com/flori/json/issues/229

Taken from the ruby-core changes.

--- ext/json/ext/fbuffer/fbuffer.h.orig 2014-12-27 21:27:31.701991610 +0100
+++ ext/json/ext/fbuffer/fbuffer.h      2014-12-27 21:28:11.252956858 +0100
@@ -172,7 +172,7 @@
 
 static VALUE fbuffer_to_s(FBuffer *fb)
 {
-    VALUE result = rb_str_new(FBUFFER_PAIR(fb));
+    VALUE result = rb_str_new(FBUFFER_PTR(fb), FBUFFER_LEN(fb));
     fbuffer_free(fb);
     FORCE_UTF8(result);
     return result;




Reply via email to