Magellan Linux

Contents of /trunk/korundum/patches/korundum-4.9.4-ruby19.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2013 - (show annotations) (download)
Fri Jan 4 22:07:25 2013 UTC (11 years, 4 months ago) by niro
File size: 1042 byte(s)
-moved to the right place
1 diff -Naur korundum-4.9.4/src/krubypluginfactory.cpp korundum-4.9.4-magellan/src/krubypluginfactory.cpp
2 --- korundum-4.9.4/src/krubypluginfactory.cpp 2012-11-30 07:30:09.000000000 +0000
3 +++ korundum-4.9.4-magellan/src/krubypluginfactory.cpp 2013-01-02 01:47:31.005946038 +0000
4 @@ -39,7 +39,6 @@
5 extern "C" {
6 extern VALUE rb_load_path;
7 extern VALUE qt_internal_module;
8 -void Init_prelude(void);
9 }
10
11 //
12 @@ -165,7 +164,8 @@
13 #if RUBY_VERSION >= 0x10900
14 VALUE gem = rb_define_module("Gem");
15 rb_const_set(gem, rb_intern("Enable"), Qtrue);
16 - Init_prelude();
17 + char *opts[] = { "ruby", "-e;" };
18 + ruby_options(2, opts);
19 #endif
20
21 ruby_incpush(QFile::encodeName(program.path()));
22 @@ -342,7 +342,8 @@
23 #if RUBY_VERSION >= 0x10900
24 VALUE gem = rb_define_module("Gem");
25 rb_const_set(gem, rb_intern("Enable"), Qtrue);
26 - Init_prelude();
27 + char *opts[] = { "ruby", "-e;" };
28 + ruby_options(2, opts);
29 #endif
30
31 ruby_incpush(QFile::encodeName(program.path()));