[packages/ruby-tokyocabinet] Rel 5

arekm arekm at pld-linux.org
Fri Mar 20 23:58:52 CET 2026


commit ff2c0f9a34fc43cd944d5bef29911480b6098f13
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Mar 20 23:58:42 2026 +0100

    Rel 5

 ruby-tokyocabinet-arity.patch | 21 +++++++++++++++++++++
 ruby-tokyocabinet.spec        |  4 +++-
 2 files changed, 24 insertions(+), 1 deletion(-)
---
diff --git a/ruby-tokyocabinet.spec b/ruby-tokyocabinet.spec
index e79cc60..31f6597 100644
--- a/ruby-tokyocabinet.spec
+++ b/ruby-tokyocabinet.spec
@@ -2,11 +2,12 @@ Summary:	Ruby binding for Tokyo Cabinet
 Summary(pl.UTF-8):	Wiązania języka Ruby do biblioteki Tokyo Cabinet
 Name:		ruby-tokyocabinet
 Version:	1.31
-Release:	4
+Release:	5
 License:	LGPL v2.1+
 Source0:	http://fallabs.com/tokyocabinet/rubypkg/tokyocabinet-ruby-%{version}.tar.gz
 # Source0-md5:	8e71f49c5ae2cb8c46f5c2e5f43c182c
 Patch0:		%{name}-gemspec.patch
+Patch1:		%{name}-arity.patch
 Group:		Development/Languages
 URL:		http://fallabs.com/tokyocabinet/
 BuildRequires:	bzip2-devel
@@ -41,6 +42,7 @@ Ten pakiet zawiera wiązania języka Ruby do biblioteki.
 %prep
 %setup -q -n tokyocabinet-ruby-%{version}
 %patch -P0 -p1
+%patch -P1 -p1
 
 %build
 ruby extconf.rb --vendor
diff --git a/ruby-tokyocabinet-arity.patch b/ruby-tokyocabinet-arity.patch
new file mode 100644
index 0000000..02721a9
--- /dev/null
+++ b/ruby-tokyocabinet-arity.patch
@@ -0,0 +1,21 @@
+diff -uNr tokyocabinet-ruby-1.31.orig/tokyocabinet.c tokyocabinet-ruby-1.31/tokyocabinet.c
+--- tokyocabinet-ruby-1.31.orig/tokyocabinet.c	2026-03-20 23:24:48.773153004 +0100
++++ tokyocabinet-ruby-1.31/tokyocabinet.c	2026-03-20 23:24:48.995650046 +0100
+@@ -240,7 +240,7 @@
+ static VALUE tdbqry_setlimit(int argc, VALUE *argv, VALUE vself);
+ static VALUE tdbqry_search(VALUE vself);
+ static VALUE tdbqry_searchout(VALUE vself);
+-static VALUE tdbqry_proc(VALUE vself, VALUE vproc);
++static VALUE tdbqry_proc(VALUE vself);
+ static VALUE tdbqry_hint(VALUE vself);
+ static VALUE tdbqry_metasearch(int argc, VALUE *argv, VALUE vself);
+ static VALUE tdbqry_kwic(int argc, VALUE *argv, VALUE vself);
+@@ -3271,7 +3271,7 @@
+ }
+ 
+ 
+-static VALUE tdbqry_proc(VALUE vself, VALUE vproc){
++static VALUE tdbqry_proc(VALUE vself){
+   VALUE vqry;
+   TDBQRY *qry;
+   if(rb_block_given_p() != Qtrue) rb_raise(rb_eArgError, "no block given");
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-tokyocabinet.git/commitdiff/ff2c0f9a34fc43cd944d5bef29911480b6098f13



More information about the pld-cvs-commit mailing list