[pkg-kde-commits] rev 2587 - in branches/kde-3.4.0/packages/kdebindings/debian: . patches

Adeodato Simó adeodato at costa.debian.org
Wed Dec 7 15:31:08 UTC 2005


Author: adeodato
Date: 2005-12-07 15:31:07 +0000 (Wed, 07 Dec 2005)
New Revision: 2587

Added:
   branches/kde-3.4.0/packages/kdebindings/debian/patches/001_qtruby_dont_call_rb_respond_to_for_initialize.diff
Modified:
   branches/kde-3.4.0/packages/kdebindings/debian/changelog
Log:
Preparing kdebindings 3.4.3-3.


Modified: branches/kde-3.4.0/packages/kdebindings/debian/changelog
===================================================================
--- branches/kde-3.4.0/packages/kdebindings/debian/changelog	2005-12-07 14:33:27 UTC (rev 2586)
+++ branches/kde-3.4.0/packages/kdebindings/debian/changelog	2005-12-07 15:31:07 UTC (rev 2587)
@@ -1,3 +1,13 @@
+kdebindings (4:3.4.3-3) unstable; urgency=low
+
+  +++ Changes by Adeodato Simó:
+
+  * Apply patch from SVN to make QtRuby invoke initialize() methods correctly,
+    thus fixing its latest and total breakage after a change in rb_respond_to()
+    introduced in Ruby 1.8.3-2. (Closes: #335876)
+
+ -- Debian Qt/KDE Maintainers <debian-qt-kde at lists.debian.org>  Wed,  7 Dec 2005 15:42:22 +0100
+
 kdebindings (4:3.4.3-2) unstable; urgency=low
 
   +++ Changes by Christopher Martin:

Added: branches/kde-3.4.0/packages/kdebindings/debian/patches/001_qtruby_dont_call_rb_respond_to_for_initialize.diff
===================================================================
--- branches/kde-3.4.0/packages/kdebindings/debian/patches/001_qtruby_dont_call_rb_respond_to_for_initialize.diff	2005-12-07 14:33:27 UTC (rev 2586)
+++ branches/kde-3.4.0/packages/kdebindings/debian/patches/001_qtruby_dont_call_rb_respond_to_for_initialize.diff	2005-12-07 15:31:07 UTC (rev 2587)
@@ -0,0 +1,30 @@
+#DPATCHLEVEL=0
+--- qtruby/ChangeLog
++++ qtruby/ChangeLog
+@@ -1,3 +1,13 @@
++2005-12-06  Richard Dale  <Richard_Dale at tipitina.demon.co.uk>
++
++	* QtRuby didn't work with versions of ruby > 1.8.3, as it didn't call
++	  initialize methods correctly. It used the rb_respond_to() method
++	  to check it a newly created qt instance responded to :initialize.
++	  However, in newer versions of ruby rb_responds_to() ignores
++	  private methods such as initialize(). The solution was to just remove
++	  the test, as it was redundant anyway.
++	* Fixes problem reported by Hans Fugel and Caleb Tennis.
++
+ 2005-08-04  Richard Dale  <Richard_Dale at tipitina.demon.co.uk>
+ 
+ 	* Added a file called 'COPYING' to the qtruby project, with a note that
+--- qtruby/rubylib/qtruby/Qt.cpp
++++ qtruby/rubylib/qtruby/Qt.cpp
+@@ -1563,10 +1563,7 @@
+     }
+ 
+     VALUE result = rb_funcall2(qt_internal_module, rb_intern("try_initialize"), argc+1, temp_stack);
+-
+-    if (rb_respond_to(result, rb_intern("initialize")) != 0) {
+ 	rb_obj_call_init(result, argc, argv);
+-    }
+ 	
+ 	free(temp_stack);
+     return result;




More information about the pkg-kde-commits mailing list