Gentoo Archives: gentoo-commits

From: "Richard Brown (rbrown)" <rbrown@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ruby/ruby-mmap/files: ruby-mmap-0.2.6-oniguruma_rb_reg_regsub.patch
Date: Tue, 18 Sep 2007 17:22:08
Message-Id: E1IXgeR-0001ri-7R@stork.gentoo.org
rbrown      07/09/18 17:14:19

  Added:                ruby-mmap-0.2.6-oniguruma_rb_reg_regsub.patch
  Log:
  Fix compile when ruby has USE="cjk". Bug #191203 thanks to : Brenden Matthews. Keyword ~amd64
  (Portage version: 2.1.3.9)

Revision  Changes    Path
1.1                  dev-ruby/ruby-mmap/files/ruby-mmap-0.2.6-oniguruma_rb_reg_regsub.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/ruby-mmap/files/ruby-mmap-0.2.6-oniguruma_rb_reg_regsub.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/ruby-mmap/files/ruby-mmap-0.2.6-oniguruma_rb_reg_regsub.patch?rev=1.1&content-type=text/plain

Index: ruby-mmap-0.2.6-oniguruma_rb_reg_regsub.patch
===================================================================
--- mmap.c.orig	Thu Feb  1 14:52:50 2007
+++ mmap.c	Thu Feb  1 14:55:16 2007
@@ -1113,7 +1113,7 @@
 	}
 	else {
 	    RSTRING(str)->ptr += start;
-	    repl = rb_reg_regsub(repl, str, regs);
+	    repl = rb_reg_regsub(repl, str, regs, pat);
 	    RSTRING(str)->ptr -= start;
 	}
 	if (OBJ_TAINTED(repl)) tainted = 1;
@@ -1211,7 +1211,7 @@
 	}
 	else {
 	    RSTRING(str)->ptr += start;
-	    val = rb_reg_regsub(repl, str, regs);
+	    val = rb_reg_regsub(repl, str, regs, pat);
 	    RSTRING(str)->ptr -= start;
 	}
 	if (OBJ_TAINTED(repl)) tainted = 1;



-- 
gentoo-commits@g.o mailing list