Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=fd8d247012ebcfa551ce162ed15c66c224331c80

commit fd8d247012ebcfa551ce162ed15c66c224331c80
Author: Miklos Vajna <[EMAIL PROTECTED]>
Date:   Wed Sep 24 22:47:59 2008 +0200

kdebindings-3.5.9-2-i686

- rebuild with gcc-4.3

diff --git a/source/kde-extra/kdebindings/FrugalBuild 
b/source/kde-extra/kdebindings/FrugalBuild
index e4024c7..ee4239d 100644
--- a/source/kde-extra/kdebindings/FrugalBuild
+++ b/source/kde-extra/kdebindings/FrugalBuild
@@ -3,7 +3,7 @@

pkgname=kdebindings
pkgver=3.5.9
-pkgrel=1
+pkgrel=2
pkgdesc="KDE Bindings."
groups=('kde-extra')
archs=('i686' 'x86_64')
@@ -11,7 +11,8 @@ makedepends=('java-gcj-compat' 'gcc-gcj' 'gtk+' 'ruby')
depends=('kdebase>=3.5.9' 'qscintilla')
_F_kde_reconf=1
Finclude kde
-source=($source kdebindings-3.5.4-java.diff)
+source=($source kdebindings-3.5.4-java.diff \
+       kdebindings-3.5.9-gcc43.diff)

subpkgs=("$pkgname-docs")
subdescs=("Kdebindings Documentation")
@@ -35,5 +36,6 @@ build()
}

sha1sums=('14fcec6c93bffa94b10201dd03d87ffcd6fb5281' \
-          '9393dda544127cbcca72fff4d9e1aad2fe7e8c7f')
+          '9393dda544127cbcca72fff4d9e1aad2fe7e8c7f' \
+          '2b328352a6d7e04f1cbc2a667e3b41360cc6e924')
# optimization OK
diff --git a/source/kde-extra/kdebindings/kdebindings-3.5.9-gcc43.diff 
b/source/kde-extra/kdebindings/kdebindings-3.5.9-gcc43.diff
new file mode 100644
index 0000000..4559579
--- /dev/null
+++ b/source/kde-extra/kdebindings/kdebindings-3.5.9-gcc43.diff
@@ -0,0 +1,58 @@
+Index: kdebindings-3.5.9/qtruby/rubylib/qtruby/Qt.cpp
+===================================================================
+--- kdebindings-3.5.9.orig/qtruby/rubylib/qtruby/Qt.cpp        2008-06-07 
00:48:29.000000000 +0000
++++ kdebindings-3.5.9/qtruby/rubylib/qtruby/Qt.cpp     2008-06-07 
00:50:23.000000000 +0000
+@@ -950,7 +950,7 @@
+ const char *
+ get_VALUEtype(VALUE ruby_value)
+ {
+-      char * classname = rb_obj_classname(ruby_value);
++      const char * classname = rb_obj_classname(ruby_value);
+     const char *r = "";
+     if(ruby_value == Qnil)
+       r = "u";
+@@ -1395,7 +1395,7 @@
+ }
+
+ static QCString *
+-find_cached_selector(int argc, VALUE * argv, VALUE klass, char * methodName)
++find_cached_selector(int argc, VALUE * argv, VALUE klass, const char * 
methodName)
+ {
+     // Look in the cache
+ static QCString * mcid = 0;
+@@ -1432,7 +1432,7 @@
+ static VALUE
+ method_missing(int argc, VALUE * argv, VALUE self)
+ {
+-      char * methodName = rb_id2name(SYM2ID(argv[0]));
++      const char * methodName = rb_id2name(SYM2ID(argv[0]));
+     VALUE klass = rb_funcall(self, rb_intern("class"), 0);
+
+       // Look for 'thing?' methods, and try to match isThing() or hasThing() 
in the Smoke runtime
+@@ -1482,7 +1482,7 @@
+
+                       VALUE retval = rb_funcall2(qt_internal_module, 
rb_intern("do_method_missing"), argc+3, temp_stack);
+                       if (_current_method == -1) {
+-                              char * op = rb_id2name(SYM2ID(argv[0]));
++                              const char * op = rb_id2name(SYM2ID(argv[0]));
+                               if (    qstrcmp(op, "-") == 0
+                                               || qstrcmp(op, "+") == 0
+                                               || qstrcmp(op, "/") == 0
+@@ -1557,7 +1557,7 @@
+ class_method_missing(int argc, VALUE * argv, VALUE klass)
+ {
+       VALUE result = Qnil;
+-      char * methodName = rb_id2name(SYM2ID(argv[0]));
++      const char * methodName = rb_id2name(SYM2ID(argv[0]));
+       VALUE * temp_stack = (VALUE *) calloc(argc+3, sizeof(VALUE));
+     temp_stack[0] = rb_str_new2("Qt");
+     temp_stack[1] = rb_str_new2(methodName);
+@@ -1772,7 +1772,7 @@
+ VALUE
+ getmetainfo(VALUE self, int &offset, int &index)
+ {
+-    char * signalname = rb_id2name(rb_frame_last_func());
++    const char * signalname = rb_id2name(rb_frame_last_func());
+     VALUE metaObject_value = rb_funcall(qt_internal_module, 
rb_intern("getMetaObject"), 1, self);
+
+     smokeruby_object *ometa = value_obj_info(metaObject_value);
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to