Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 532120

Summary: kde-base/qtruby-4.14.3-r1 doesn't work correctly with ruby 2.0
Product: Gentoo Linux Reporter: Stefano Crocco <stefano.crocco>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED FIXED    
Severity: major Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://bugs.kde.org/show_bug.cgi?id=330800
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 517344    
Attachments: simple ruby script showing the effects of this bug
patch to fix this bug

Description Stefano Crocco 2014-12-10 09:44:20 UTC
Created attachment 391348 [details]
simple ruby script showing the effects of this bug

qtruby-4.14.3-r1 uses ruby 2.0, but according to KDE bug 330800, it doesn't work correctly because signals defined in ruby programs aren't emitted. Since defining signals in ruby is quite common, this bug makes qtruby unusable with ruby 2. The bug report also includes a patch which should make qtruby work with ruby 2.

I attach a simple ruby file which shows this behaviour. When run using qtruby-4.14.3 and ruby 1.9.3, it prints the text "SIGNAL RECEIVED". When run using qtruby-4.14.3-r1 with ruby 2.0, it prints nothing. When applying the patch mentioned in the KDE bug report, it works correctly again.

Note that, while the patch works for this simple script, I've not tested it in real programs so, while it should fix this problem, I'm not sure whether it has other, unintended consequences.
Comment 1 Stefano Crocco 2014-12-10 09:46:35 UTC
Created attachment 391350 [details, diff]
patch to fix this bug

This is the patch suggested in the KDE bug report to fix this bug
Comment 2 Johannes Huber (RETIRED) gentoo-dev 2015-01-18 20:55:57 UTC
Thanks for reporting. This is fixed in cvs now please sync in some hours to get the changes.

+
+  18 Jan 2015; Johannes Huber <johu@gentoo.org>
+  +files/qtruby-4.14.3-ruby20.patch, +qtruby-4.14.3-r2.ebuild,
+  qtruby-4.14.3.ebuild:
+  Revision bump adds patch to fix signals in ruby20 spotted by Stefano Crocco
+  <stefano.crocco@alice.it>, bug #532120.
+