Gentoo Archives: gentoo-commits

From: "Manuel Rueger (mrueg)" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-mobilephone/obexftp/files: obexftp-0.23-fix-ruby19.patch
Date: Tue, 05 Nov 2013 00:16:01
Message-Id: 20131105001555.5AE6E2004E@flycatcher.gentoo.org
1 mrueg 13/11/05 00:15:55
2
3 Added: obexftp-0.23-fix-ruby19.patch
4 Log:
5 NMU: Update ebuild to work with ruby 1.9 only. Fixes bug #483096.
6
7 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key )
8
9 Revision Changes Path
10 1.1 app-mobilephone/obexftp/files/obexftp-0.23-fix-ruby19.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-mobilephone/obexftp/files/obexftp-0.23-fix-ruby19.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-mobilephone/obexftp/files/obexftp-0.23-fix-ruby19.patch?rev=1.1&content-type=text/plain
14
15 Index: obexftp-0.23-fix-ruby19.patch
16 ===================================================================
17 Replace functions removed with ruby 1.9
18 See also http://dev.zuckschwerdt.org/openobex/ticket/49
19
20
21 diff --git a/swig/charmap.i b/swig/charmap.i
22 index e1f1fc1..b8e17de 100644
23 --- a/swig/charmap.i
24 +++ b/swig/charmap.i
25 @@ -89,8 +89,8 @@
26 $2 = PyString_Size($input);
27 #elif defined SWIGRUBY
28 /* VALUE str = StringValue($input); // perhaps better? */
29 - $1 = STR2CSTR($input);
30 - $2 = (int) RSTRING($input)->len;
31 + $1 = StringValuePtr($input);
32 + $2 = (int) RSTRING_LEN($input);
33 #elif defined SWIGTCL
34 $1 = Tcl_GetStringFromObj($input,&$2);
35 #else
36 diff --git a/swig/ruby/ruby_wrap.c b/swig/ruby/ruby_wrap.c
37 index 57e40bf..31b1a9d 100644
38 --- a/swig/ruby/ruby_wrap.c
39 +++ b/swig/ruby/ruby_wrap.c
40 @@ -2579,8 +2579,8 @@ _wrap_Client_put_data(int argc, VALUE *argv, VALUE self) {
41
42
43 /* VALUE str = StringValue(argv[0]); // perhaps better? */
44 - arg2 = STR2CSTR(argv[0]);
45 - arg3 = (int) RSTRING(argv[0])->len;
46 + arg2 = StringValuePtr(argv[0]);
47 + arg3 = (int) RSTRING_LEN(argv[0]);
48
49
50
51 --
52 1.8.4.2