Package: python-kde3
Version: 3.11.3-4
Severity: normal
Tags: patch

When building 'python-kde3' on amd64/unstable with gcc-4.0,
I get the following error:

sip/kdecore/kurl.sip: In function 'PyObject* slot_KURL_List___add__(PyObject*, 
PyObject*)':
sip/kdecore/kurl.sip:343: error: invalid cast of an rvalue expression of type 
'QValueList<KURL>' to type 'const KURL::List&'

With the attached patch 'python-kde3' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/python-kde3-3.11.3/sip/kdecore/kurl.sip 
./sip/kdecore/kurl.sip
--- ../tmp-orig/python-kde3-3.11.3/sip/kdecore/kurl.sip 2004-08-15 
19:41:52.000000000 +0200
+++ ./sip/kdecore/kurl.sip      2005-04-12 23:40:08.851320367 +0200
@@ -340,7 +340,8 @@
 //returns (KURL.List)
 //takes listToAdd | (KURL.List)
     Py_BEGIN_ALLOW_THREADS
-    sipRes = new KURL::List((const KURL::List&)((*sipCpp) + *a0));
+    sipRes = new KURL::List(*sipCpp);
+    *sipRes += *a0;
     Py_END_ALLOW_THREADS
 %End
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to