You are not logged in.

#1 2005-10-20 15:35:35

Machiavelli
Member
Registered: 2005-08-24
Posts: 92

Errors compiling pykde package...

I need pykde for several reasons, but appearantly it has been removed from the kdebindings package. I downloaded a source package and began constructing my pkgbuild. Finding out that it had a history of problems compiling under gcc4, I modified an existing patch to create this:

--- PyKDE-snapshot20051013/sip/kdecore/kurl.sip    2005-02-03 22:32:28.000000000 +0000
+++ ../kurl.sip    2005-05-21 15:42:31.493521712 +0000
@@ -345,9 +345,9 @@
 //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);
+    QValueList<KURL> qurls = ((*sipCpp) + *a0);
+    const KURL::List& kurls = (const KURL::List&)qurls;
+    sipRes = new KURL::List( kurls );
     Py_END_ALLOW_THREADS
 %End

The pkgbuild looked like this:

pkgname=pykde
pkgver=3.5
pkgrel=1
pkgdesc="KDE binding for Python"

depends=('python' 'kdelibs' 'pyqt' 'sip' 'qt')
source=(http://www.river-bank.demon.co.uk/download/PyKDE2/PyKDE-snapshot20051013.tar.gz pykde-gcc4-patch.diff)
md5sums=()

build() {
    cd $startdir/src/*
    patch -Np1 -i ../pykde-gcc4-patch.diff || return 1
    python configure.py
    make || return 1
    make DESTDIR=$startdir/pkg install
    }

And the end result was still this: http://pastebin.com/399903

What am I doing wrong? Any sip/pykde experts out there that could give me a hint? Would appreciate anything!

Offline

#2 2005-10-20 15:53:17

mpie
Member
From: 404 Not found
Registered: 2005-03-06
Posts: 649

Re: Errors compiling pykde package...

==> Extracting Sources...
==>     tar --use-compress-program=gzip -xf PyKDE-snapshot20051013.tar.gz
==> Removing existing pkg/ directory...
==> Starting build()...
Patching sources for GCC4...
patching file sip/kdecore/kurl.sip
patch unexpectedly ends in middle of line

     PyKDE version 4.0.0


your patch is not applying cleanly

Offline

#3 2005-10-20 15:58:09

Machiavelli
Member
Registered: 2005-08-24
Posts: 92

Re: Errors compiling pykde package...

Thanks for the tip, but the patched file looks like it should, so it couldn't be that big a problem. Besides, the error outdates the patch.

It fixes something in kurl.sip, which is not mentioned in the error at all.

Offline

Board footer

Powered by FluxBB