diff options
Diffstat (limited to 'testing/kdebindings-korundum/ruby19.patch')
-rw-r--r-- | testing/kdebindings-korundum/ruby19.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/testing/kdebindings-korundum/ruby19.patch b/testing/kdebindings-korundum/ruby19.patch new file mode 100644 index 000000000..c2468d9ce --- /dev/null +++ b/testing/kdebindings-korundum/ruby19.patch @@ -0,0 +1,30 @@ +--- korundum-4.9.0/src/krubypluginfactory.cpp~ 2012-07-27 10:44:19.544464612 +0000 ++++ korundum-4.9.0/src/krubypluginfactory.cpp 2012-07-27 10:53:15.247374749 +0000 +@@ -39,7 +39,6 @@ + extern "C" { + extern VALUE rb_load_path; + extern VALUE qt_internal_module; +-void Init_prelude(void); + } + + // +@@ -165,7 +164,8 @@ + #if RUBY_VERSION >= 0x10900 + VALUE gem = rb_define_module("Gem"); + rb_const_set(gem, rb_intern("Enable"), Qtrue); +- Init_prelude(); ++ char *opts[] = { "ruby", "-e;" }; ++ ruby_options(2, opts); + #endif + + ruby_incpush(QFile::encodeName(program.path())); +@@ -342,7 +342,8 @@ + #if RUBY_VERSION >= 0x10900 + VALUE gem = rb_define_module("Gem"); + rb_const_set(gem, rb_intern("Enable"), Qtrue); +- Init_prelude(); ++ char *opts[] = { "ruby", "-e;" }; ++ ruby_options(2, opts); + #endif + + ruby_incpush(QFile::encodeName(program.path())); |