From fe60a83a146d922eefce7bbd587a437214f77689 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Jun 12 2009 14:15:33 +0000 Subject: patch respin --- diff --git a/PyKDE-3.16.3.patch b/PyKDE-3.16.3.patch index 58c9f3f..7a13275 100644 --- a/PyKDE-3.16.3.patch +++ b/PyKDE-3.16.3.patch @@ -1374,11 +1374,35 @@ diff -ruN PyKDE-3.16.2/sip/kfile/knotifydialog.sip PyKDE-3.16.3/sip/kfile/knotif if (iserr) { +diff -ruN PyKDE-3.16.2/sip/khtml/dom_string.sip PyKDE-3.16.3/sip/khtml/dom_string.sip +--- PyKDE-3.16.2/sip/khtml/dom_string.sip 2006-09-22 04:11:13.000000000 +0100 ++++ PyKDE-3.16.3/sip/khtml/dom_string.sip 2009-06-12 15:08:32.000000000 +0100 +@@ -44,11 +44,6 @@ + DOM::DOMString operator + (const DOM::DOMString&); + void insert (DOM::DOMString, uint); + const QChar& operator [] (uint) const; +-%MethodCode +-//returns (QChar) +-//takes index | uint +- sipRes = &((*sipCpp)[a0]); +-%End + + int find (const QChar, int = 0) const; + uint length () const; diff -ruN PyKDE-3.16.2/sip/khtml/khtml_settings.sip PyKDE-3.16.3/sip/khtml/khtml_settings.sip --- PyKDE-3.16.2/sip/khtml/khtml_settings.sip 2008-03-04 20:47:14.000000000 +0000 -+++ PyKDE-3.16.3/sip/khtml/khtml_settings.sip 2009-06-10 22:41:39.000000000 +0100 -@@ -235,8 +235,8 @@ ++++ PyKDE-3.16.3/sip/khtml/khtml_settings.sip 2009-06-12 15:00:58.000000000 +0100 +@@ -227,16 +227,16 @@ + return NULL; + + QValueList *cpplist = (QValueList *)sipCpp; +- PyObject *inst; + + // Get it. + QValueList::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) { ++ PyObject *inst = NULL; QString s = (*it).first; QChar c = (*it).second; - PyObject *pys = sipBuildResult (NULL, "N", new QString (s), sipClass_QString); @@ -2194,13 +2218,15 @@ diff -ruN PyKDE-3.16.2/sip/kmdi/kmdimainfrm.sip PyKDE-3.16.3/sip/kmdi/kmdimainfr { diff -ruN PyKDE-3.16.2/sip/kparts/browserextension.sip PyKDE-3.16.3/sip/kparts/browserextension.sip --- PyKDE-3.16.2/sip/kparts/browserextension.sip 2008-03-04 20:47:14.000000000 +0000 -+++ PyKDE-3.16.3/sip/kparts/browserextension.sip 2009-06-10 21:42:21.000000000 +0100 -@@ -393,8 +393,8 @@ ++++ PyKDE-3.16.3/sip/kparts/browserextension.sip 2009-06-12 14:59:48.000000000 +0100 +@@ -392,9 +392,9 @@ + QCString acpp = it.key (); QCString bcpp = it.data (); PyObject *ainst; - PyObject *binst; +- PyObject *binst; - if (((ainst = sipBuildResult (NULL, "N", new QCString (acpp), sipClass_QCString)) == NULL) - || ((binst = sipBuildResult (NULL, "N", new QCString (bcpp), sipClass_QCString)) == NULL) ++ PyObject *binst = NULL; + if (((ainst = sipConvertFromNewType(new QCString (acpp), sipType_QCString, NULL)) == NULL) + || ((binst = sipConvertFromNewType(new QCString (bcpp), sipType_QCString, NULL)) == NULL) || (PyDict_SetItem (dict, ainst, binst) < 0)) @@ -2225,11 +2251,13 @@ diff -ruN PyKDE-3.16.2/sip/kparts/browserextension.sip PyKDE-3.16.3/sip/kparts/b if (iserr) { -@@ -477,7 +476,7 @@ +@@ -476,8 +475,8 @@ + QCString acpp = it.key (); int bcpp = it.data (); PyObject *ainst; - PyObject *binst; +- PyObject *binst; - if (((ainst = sipBuildResult (NULL, "N", new QCString (acpp), sipClass_QCString)) == NULL) ++ PyObject *binst = NULL; + if (((ainst = sipConvertFromNewType(new QCString (acpp), sipType_QCString, NULL)) == NULL) || ((binst = PyInt_FromLong (bcpp)) < 0) || (PyDict_SetItem (dict, ainst, binst) < 0)) diff --git a/PyKDE.spec b/PyKDE.spec index ba809b7..a6a4a69 100644 --- a/PyKDE.spec +++ b/PyKDE.spec @@ -79,7 +79,9 @@ unset QTDIR || : ; source /etc/profile.d/qt.sh -d %{python_sitearch} \ -i -make %{?_smp_mflags} +# debuging +make -k +#make %{?_smp_mflags} %install