/[gentoo-x86]/kde-base/qtruby/files/qtruby-4.14.3-ruby20.patch
Gentoo

Contents of /kde-base/qtruby/files/qtruby-4.14.3-ruby20.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Sun Jan 18 20:55:04 2015 UTC (5 years, 8 months ago) by johu
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/x-diff
Revision bump adds patch to fix signals in ruby20 spotted by Stefano Crocco <stefano.crocco@alice.it>, bug #532120.

(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key F3CFD2BD)

1 --- qtruby-4.11.4.orig/src/qtruby.cpp 2013-06-28 19:16:12.057325696 +0200
2 +++ qtruby-4.11.4/src/qtruby.cpp 2014-01-07 19:22:11.000000000 +0100
3 @@ -1398,11 +1391,14 @@
4 return Qfalse;
5 }
6
7 -#if RUBY_VERSION >= 0x10900
8 +#if RUBY_VERSION >= 0x20000
9 + QLatin1String signalname(rb_id2name(rb_frame_this_func()));
10 +#elif RUBY_VERSION >= 0x10900
11 QLatin1String signalname(rb_id2name(rb_frame_callee()));
12 #else
13 QLatin1String signalname(rb_id2name(rb_frame_last_func()));
14 #endif
15 +
16 VALUE metaObject_value = rb_funcall(qt_internal_module, rb_intern("getMetaObject"), 2, Qnil, self);
17
18 smokeruby_object *ometa = value_obj_info(metaObject_value);

  ViewVC Help
Powered by ViewVC 1.1.20