Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33129 - pykde 3.7.4 emerge problem
Summary: pykde 3.7.4 emerge problem
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Carsten Lohrke (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-10 02:46 UTC by Jeremy S Lowery
Modified: 2004-06-23 15:41 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
pykde-3.8.0.ebuild (pykde-3.8.0.ebuild,1.23 KB, text/plain)
2003-11-10 15:52 UTC, Carsten Lohrke (RETIRED)
Details
discover.py.diff - patch needed for pykde-3.8.0.ebuild (discover.py.diff,564 bytes, patch)
2003-11-10 15:54 UTC, Carsten Lohrke (RETIRED)
Details | Diff
pykde-3.8.0.ebuild - the above patch is still needed (pykde-3.8.0.ebuild,2.35 KB, text/plain)
2003-11-12 09:05 UTC, Carsten Lohrke (RETIRED)
Details
pykde 3.11 alpha6 ebuild (pykde-3.11_alpha6.ebuild,1.20 KB, text/plain)
2004-04-23 23:57 UTC, Russell Valentine
Details
pykde-3.11_alpha6.ebuild (pykde-3.11_alpha6.ebuild,838 bytes, text/plain)
2004-04-24 04:22 UTC, Carsten Lohrke (RETIRED)
Details
pykde-3.11_alpha7.ebuild (pykde-3.11_alpha7.ebuild,1.23 KB, text/plain)
2004-04-29 04:37 UTC, Carsten Lohrke (RETIRED)
Details
kmacroexpander.sip.diff (kmacroexpander.sip.diff,448 bytes, patch)
2004-04-29 04:38 UTC, Carsten Lohrke (RETIRED)
Details | Diff
emerge info + KDE & QT version (info,2.93 KB, text/plain)
2004-05-04 07:10 UTC, David Gethings
Details
/var/tmp/portage/pykde-3.11_rc1/temp/kmacroexpander.sip.diff-13577.out (kmacroexpander.sip.diff-13577.out,2.61 KB, text/plain)
2004-05-10 17:38 UTC, Aaron Peterson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy S Lowery 2003-11-10 02:46:05 UTC
when trying to emerge pykde 3.7.4, the following error is generated. 
 
Building PyKDE 3.7 for Python 2.2.3 on linux2. 
/var/tmp/portage/pykde-3.7.4/image//usr/lib/python2.2/site-packages is t 
he 
PyKDE installation directory. 
/usr/include/python2.2 contains Python.h. 
/usr/bin/sip will be used as the SIP code generator. 
/usr/include/python2.2 contains sipQt.h. 
/usr/lib/python2.2/site-packages contains the SIP module. 
/usr/qt/3 is the Qt base directory. 
/usr/qt/3/include contains qglobal.h. 
Qt 3.2.2 is being used. 
/usr/kde/3.1 is the KDE base directory. 
/usr/kde/3.1/include contains kdeversion.h. 
KDE 3.1.3 is being used. 
/usr/qt/3/bin/qmake will be used to generate Makefiles. 
The libqt-mt.so.3 Qt library was found. 
Qt thread support is enabled. 
Qt and KDE use compatible libs (threading) 
 
found libs for modules: 
     dcop kdecore kdesu kdefx kdeui kio kfile (kio) kparts khtml kjs ksp 
ell kdeprint 
 
PyQt/sip directory found at /usr/share/sip/qt 
PyQt sip file version is compatible with PyKDE (3.7) 
sip version is compatible with PyKDE-3.7 
/usr/bin/make will be used as the make program. 
Checking to see if the C++ compiler supports -fno-exceptions. 
g++ -c -pipe -w -O2 -D_REENTRANT  -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -fno 
-exceptions -I/usr/qt/3/mkspecs/linux-g++ -I. -I. -I/usr/include/python2 
.2 -I/usr/kde/3.1/include -I/usr/qt/3/include -o qttest.o qttest.cpp 
g++ -Wl,-rpath,/usr/qt/3/lib -o qttest qttest.o   -L/usr/qt/3/lib -L/usr 
/X11R6/lib -lqt-mt -lXext -lX11 -lm -lpthread 
The C++ compiler supports -fno-exceptions. 
Using existing features file. 
Generating the C++ source for the dcop module. 
sip: /usr/share/sip/qt/versions.sip:28: Exactly one of this %Timeline mu 
st be specified with the -t flag 
An internal error occured.  Please report all the output from the progra 
m, 
including the following traceback, to <jbublitz@nwinternet.com> and CC t 
he 
PyKDE mailing list: <pykde@mats.imk.fraunhofer.de>. Thanks. 
 
Traceback (most recent call last): 
  File "build.py", line 1616, in ? 
    main(sys.argv) 
  File "build.py", line 1578, in main 
    generateSource(mname, plattag, qttag) 
  File "build.py", line 1125, in generateSource 
    runProgram (sipBin, argv) 
  File "build.py", line 1084, in generateSource 
    shutil.rmtree(mname) 
  File "/usr/lib/python2.2/shutil.py", line 117, in rmtree 
    _build_cmdtuple(path, cmdtuples) 
  File "/usr/lib/python2.2/shutil.py", line 132, in _build_cmdtuple 
    for f in os.listdir(path): 
OSError: [Errno 2] No such file or directory: 'dcop' 
 
!!! ERROR: dev-python/pykde-3.7.4 failed. 
!!! Function src_compile, Line 41, Exitcode 1 
!!! (no error message) 
 
It notes that KDE 3.1.3, however I have recently installed 3.1.4. Don't know if 
this is the issue. This buy has also been sent to the PyKDE mailing list (Don't 
know if it's a library or distribution problem). 
 
 

Reproducible: Always
Steps to Reproduce:
1. have kde 3.1.4 installed 
2. emerge -u pykde 
3. 
Actual Results:  
compilation failure 

Expected Results:  
properly installed the pykde package. 

Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 
2.4.20-gentoo-r8) 
================================================================= 
System uname: 2.4.20-gentoo-r8 i686 AMD Athlon(tm) processor 
Gentoo Base System version 1.4.3.10 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=athlon-tbird -O3 -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/
share/config /var/bind /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/
share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/
config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-march=athlon-tbird -O3 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="sandbox ccache autoaddcvs" 
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/
Linux/distributions/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="oss crypt encode foomaticdb gif libg++ mad mikmod nls pdflib png spell 
xml2 xmms xv gtkhtml gdbm berkdb slang readline aalib bonobo svga mysql sdl 
tcpd pam libwww ssl perl esd imlib oggvorbis motif opengl X gtk jack freetype2 
-gnome -alsa kde 3dnow -acpi apm -arts avi cdr cups directfb dvd -emacs fbcon 
-gpm java jikes jpeg mpeg mozilla ncurses -pcmcia pda -pnp python qt quicktime 
samba tcltk tetex truetype usb zlib x86 joystick"
Comment 1 Jeremy S Lowery 2003-11-10 02:49:56 UTC
/usr/kde/3.1/include/kdeversion.h

/* This file is part of the KDE libraries
    Copyright (c) 2002 KDE Team

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public
    License as published by the Free Software Foundation; either
    version 2 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Library General Public License for more details.

    You should have received a copy of the GNU Library General Public License
    along with this library; see the file COPYING.LIB.  If not, write to
    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.
*/

// $Id: kdeversion.h,v 1.22.2.13 2003/09/03 00:02:53 mueller Exp $

#ifndef _KDE_VERSION_H_
#define _KDE_VERSION_H_

#define KDE_VERSION_STRING "3.1.4"
#define KDE_VERSION_MAJOR 3
#define KDE_VERSION_MINOR 1
#define KDE_VERSION_RELEASE 4
#define KDE_MAKE_VERSION( a,b,c ) (((a) << 16) | ((b) << 8) | (c))

#define KDE_VERSION \
 
KDE_MAKE_VERSION(KDE_VERSION_MAJOR,KDE_VERSION_MINOR,KDE_VERSION_RELEASE)

#define KDE_IS_VERSION(a,b,c) ( KDE_VERSION >= KDE_MAKE_VERSION(a,b,c) )

/**
 * Namespace for general KDE functions.
 */
namespace KDE
{
    /**
     * Returns the major number of KDE's version, e.g.
     * 3 for KDE 3.1.2.
     * @return the major version number
     * @since 3.1
     */
    unsigned int versionMajor();
    /**
     * Returns the minor number of KDE's version, e.g.
     * 1 for KDE 3.1.2.
     * @return the minor version number
     * @since 3.1
     */
    unsigned int versionMinor();
    /**
     * Returns the release of KDE's version, e.g.
     * 2 for KDE 3.1.2.
     * @return the release number
     * @since 3.1
     */
    unsigned int versionRelease();
    /**
     * Returns the KDE version as string, e.g. "3.1.2".
     * @return the KDE version. You can keep the string forever
     * @since 3.1
     */
    const char *versionString();
}

#endif // _KDE_VERSION_H_
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2003-11-10 04:34:50 UTC
(re-)compiling sip-3.8 & PyQt-3.8.1 should help

could these ebuilds be marked stable please?
Comment 3 Caleb Tennis (RETIRED) gentoo-dev 2003-11-10 06:30:17 UTC
x86 stable now Carlo.
Comment 4 Jeremy S Lowery 2003-11-10 08:28:15 UTC
# emerge sip-3.8.ebuild
success

# emerge  PyQt-3.8.1.ebuild
success

# emerge -up pykde

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild     UD] dev-python/sip-3.7 [3.8]
[ebuild     UD] dev-python/PyQt-3.7 [3.8.1]
[ebuild     U ] dev-python/pykde-3.7.4 [3.5.2]

# emerge --nodeps pykde
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-python/pykde-3.7.4 to /
>>> md5 src_uri ;-) PyKDE-3.7-4.tar.gz
>>> Unpacking source...
>>> Unpacking PyKDE-3.7-4.tar.gz to /var/tmp/portage/pykde-3.7.4/work
>>> Source unpacked.
Building PyKDE 3.7 for Python 2.2.3 on linux2.
/var/tmp/portage/pykde-3.7.4/image//usr/lib/python2.2/site-packages is the
PyKDE installation directory.
/usr/include/python2.2 contains Python.h.
/usr/bin/sip will be used as the SIP code generator.
/usr/include/python2.2 contains sipQt.h.
/usr/lib/python2.2/site-packages contains the SIP module.
/usr/qt/3 is the Qt base directory.
/usr/qt/3/include contains qglobal.h.
Qt 3.2.2 is being used.
/usr/kde/3.1 is the KDE base directory.
/usr/kde/3.1/include contains kdeversion.h.
KDE 3.1.3 is being used.
/usr/qt/3/bin/qmake will be used to generate Makefiles.
The libqt-mt.so.3 Qt library was found.
Qt thread support is enabled.
Qt and KDE use compatible libs (threading)

found libs for modules:
     dcop kdecore kdesu kdefx kdeui kio kfile (kio) kparts khtml kjs kspell
kdeprint

PyQt/sip directory found at /usr/share/sip/qt
******************************************************************************
Error: PyQt 3.8 sip files not compatible with PyKDE 3.7 -- from line 785
in
build.py
******************************************************************************


Comment 5 Carsten Lohrke (RETIRED) gentoo-dev 2003-11-10 10:05:50 UTC
yeah - sorry, you have to use pykde-3.7.4-r2, even though someone noticed
in the forums he had a problem with it. I couldn't reproduce it. pykde-3.7.4-r2
_should_ work (but for kde-3.1.x only - the dependency is not yet correct)

I hope to add pykde-3.8 soon, facing a minor problem atm - probably related
to a change in the pykde build script.
Comment 6 Carsten Lohrke (RETIRED) gentoo-dev 2003-11-10 10:13:12 UTC
Caleb: Sorry for bugging you again. pykde-3.7.4 has not the code to distict
between  pyqt-3.7/8, pykde-3.7.4-r1 is broken, we need pykde-3.7.4-r2 marked
stable. :)

Comment 7 Caleb Tennis (RETIRED) gentoo-dev 2003-11-10 11:00:45 UTC
done.
Comment 8 Carsten Lohrke (RETIRED) gentoo-dev 2003-11-10 15:52:40 UTC
Created attachment 20550 [details]
pykde-3.8.0.ebuild
Comment 9 Carsten Lohrke (RETIRED) gentoo-dev 2003-11-10 15:54:17 UTC
Created attachment 20551 [details, diff]
discover.py.diff  - patch needed for pykde-3.8.0.ebuild
Comment 10 Carsten Lohrke (RETIRED) gentoo-dev 2003-11-10 16:01:28 UTC
Comment on attachment 20550 [details]
pykde-3.8.0.ebuild

err - fails
Comment 11 Carsten Lohrke (RETIRED) gentoo-dev 2003-11-10 16:09:36 UTC
Caleb, you're the kde gui - is this due to the beta status of kde or a pykde
problem?

make[1]: Leaving directory `/var/tmp/portage/pykde-3.8.0/work/PyKDE-3.8.0/dcop'
cd kdecore && "make" -f Makefile
make[1]: Entering directory `/var/tmp/portage/pykde-3.8.0/work/PyKDE-3.8.0/kdecore'
g++ -c -pipe -w -O2 -D_REENTRANT -fPIC  -DSIP_MAKE_MODULE_DLL -DQT_NO_DEBUG
-DQT_THREAD_SUPPORT -fno-exceptions -I/usr/qt/3/mkspecs/linux-g++ -I. -I../extra/kde314
-I. -I/usr/include/python2.2 -I/usr/qt/3/include -I/usr/kde/3.2/include -I/usr/qt/3/include
-o kdecorehuge0.o kdecorehuge0.cpp
/usr/kde/3.2/include/kprocctrl.h: In constructor
   `sipKProcessController::sipKProcessController()':
/usr/kde/3.2/include/kprocctrl.h:139: `KProcessController::KProcessController()
   ' is private
Comment 12 Carsten Lohrke (RETIRED) gentoo-dev 2003-11-10 16:10:49 UTC
guy of course...
Comment 13 Caleb Tennis (RETIRED) gentoo-dev 2003-11-11 04:53:19 UTC
looks most likely to be a pykde problem.  probably should notify the pykde
folks.
Comment 14 Nikl 2003-11-11 05:51:24 UTC
in reply to http://bugs.gentoo.org/show_bug.cgi?id=33210:

--------------------------
emerge pykde-3.8.0.ebuild:
--------------------------
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-python/pykde-3.8.0 to /
>>> md5 src_uri ;-) PyKDE-3.8.0.tar.gz
eutils
alternatives
python
distutils
>>> Unpacking source...
>>> Unpacking PyKDE-3.8.0.tar.gz to /var/tmp/portage/pykde-3.8.0/work
>>> Source unpacked.
eutils
alternatives
python
distutils
 * Applying discover.py.diff...                                         
 [ ok ]
Traceback (most recent call last):
  File "build.py", line 41, in ?
    from config import *
  File "/usr/lib/python2.2/site-packages/config.py", line 337, in ?
    curses.init_pair(1, curses.COLOR_WHITE,   curses.COLOR_BLACK)
_curses.error: must call initscr() first

!!! ERROR: dev-python/pykde-3.8.0 failed.
!!! Function src_compile, Line 41, Exitcode 1
!!! (no error message)

------------
emerge info:
------------
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.23_pre7-gss)
=================================================================
System uname: 2.4.23_pre7-gss i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.4.3.10p1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -fforce-addr
-fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt
-falign-functions=4 -maccumulate-outgoing-args -ffast-math -fprefetch-loop-arrays"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config
/usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -fforce-addr
-fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt
-falign-functions=4 -maccumulate-outgoing-args -ffast-math -fprefetch-loop-arrays"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs fixpackages sandbox ccache strict userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://www.fhh.opensource-mirror.de/gentoo.org/
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo
http://gentoo.inode.at/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 oss avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod
mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb
alsa gdbm berkdb slang readline tetex aalib nas bonobo svga ggi tcltk guile
ruby mysql X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis
gnome gtk qt kde motif opengl mozilla gphoto2 ldap snmp cdr scanner 3dnow
3ds acl acpi acpi4linux antlr bindist caps clamav cscope curl dga dillo dnd
doc dv dvd etwin ext-png ext-zlib faad fbcon fbdev ffmpeg firebird flac flash
gatos gd gd-external geoip gnomedb gstreamer gtk2 gtkhtml hyriand imagemagick
imap imlib2 innodb ipv6 java javascript jdepend jikes joystick js junit jython
lcms lua maildir mcal memlimit mmx mng mozcalendar moznocompose moznoirc
moznomail mozp3p mozsvg mozxmlterm mpi music nowin nptl oav oci8 odbc offensive
openal openssh parse-clocks pda pic plotutils psyco radeon S3TC samba sasl
sdk slp sox sse tiff unicode usb v4l videos vim-with-x wmf wxwin wxwindows
X509 Xaw3d xchattext xine xinerama xosd xvid -apm -arts"
Comment 15 Carsten Lohrke (RETIRED) gentoo-dev 2003-11-11 17:52:45 UTC
Sorry, my fault - kde 3.2 isn't supported yet as it seems

I'll add a fixed ebuild asap - the changed build.py is a mess - it creates
makefiles which break the sandbox concept a couple of times (and it contains
a few minor bugs)

@Nikl: This error is odd - config.py is a file from the pykde tarball. I'll
wonder why python searches at first in /usr/lib/python2.2/site-packages/
for you. Even though /usr/lib/python2.2/site-packages/ is in PYTHONPATH,
this is no problem on my system. 

Please don't do further tests. The ebuild is a wreckage anyway.
Comment 16 Carsten Lohrke (RETIRED) gentoo-dev 2003-11-12 09:05:52 UTC
Created attachment 20644 [details]
pykde-3.8.0.ebuild - the above patch is still needed

Caleb: I'll be glad, if you could check this ebuild. It works fine for me,
but... 
Dropped the build.py 'make install' stuff.  Patching the whole install script
would have taken more time. I limited the ebuild to kde-3.1*, which allowed me
to use an ugly but simple kde 3.2 related kdedir substitution. If you're not
fine with it, have a look at these new python install scripts, please.
Comment 17 Caleb Tennis (RETIRED) gentoo-dev 2003-11-14 06:47:04 UTC
Hi Carlo

Okay, I see what you've done.  I wonder if it wouldn't be better to just put KDEDIR=/usr/kde/3.1 at the top and let it use it for the rest of the ebuild?

I am testing some other things now, but I will try to tend to this over the weekend.
Comment 18 Carsten Lohrke (RETIRED) gentoo-dev 2003-11-14 06:56:09 UTC
>I wonder if it wouldn't be better to just put KDEDIR=/usr/kde/3.1
Because KDEDIR could be /another/path/kde/3.? on some system!?

Comment 19 Pedro Schwaller 2004-02-01 12:21:24 UTC
Hi. I am currently testing this ebuild for pykde 3.8
I had a superkaramba theme working with PyQt 3.7.4 and Python 2.2.X. It depends on pykde. 

Currently I have:
Python 2.3.3
kdelibs 3.1.4
PyQt 3.8.1
sip 3.8
pykde 3.8 using latest ebuild, emerged without problems

Problems:
superkaramba tells me: "Could not load PyKDE."

I had a look at the pykde documentation on their homepage. I found the folllowing looking at the System requirements:
"Of course you must also have Python (any version from 1.5.2 through 2.3.1), KDE (any KDE 3.0 or 3.1 version) and Qt (any version from 3.0 through 3.2) installed. PyKDE no longer supports KDE1 or KDE2, and does not yet support KDE 3.2. KDE3.2 will supported when the final release is available." (from http://www.riverbankcomputing.co.uk/pykde/docs/install.html)

There are several tests suggested to check the pykde installation (trouble.html). They all fail when trying to import the pykde bindings (or whatever is the correct name for this). 

Now if the Problem is the new python version (2.3.3), could we modify the ebuild to build with the old (2.2.X) version of python? Or what else could be the solution.

Thnx
Comment 20 Pedro Schwaller 2004-02-03 11:39:29 UTC
edit:
After emerging pykde 3.7.4_r2 again (I unmerged any existing Version before) the pykde bindings are there, tests are successful, and the superkaramba theme is working. I think I rebuilt sip before. All using python 2.3.3
Comment 21 Christian Bartels 2004-02-27 05:46:27 UTC
hi, 
i modified the dependencies of the ebuild to be able to able to use higher version of sip & co. (just added ">"). when i now try to emerge pykde it get this:

emerge pykde
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-python/pykde-3.8.0 to /
>>> md5 src_uri ;-) PyKDE-3.8.0.tar.gz
>>> Unpacking source...
>>> Unpacking PyKDE-3.8.0.tar.gz to /var/tmp/portage/pykde-3.8.0/work
>>> Source unpacked.
 * Applying discover.py.diff...                                           [ ok ]

Building PyKDE 3.8 on linux2.

Python version is 2.3
Python parent directory is /usr/lib/python2.3
Python library directory is /usr/lib/python2.3/config
Python include directory is /usr/include/python2.3

Home directory is /root

sip code generator path (sip) is /usr/bin
sip version is 4.0

*** Error: sip lib directory (libsip*) -- not found
 (['/usr/lib/python2.3/site-packages'], libsip*)

Please review the installation documentation before reporting errors
When reporting errors, include the complete output of this program


!!! ERROR: dev-python/pykde-3.8.0 failed.
!!! Function src_compile, Line 45, Exitcode 1
!!! (no error message)


how do i fix this?
Comment 22 Christian Bartels 2004-03-13 02:49:20 UTC
mail from the author of pykde:

"I should have a 
snapshot current to KDE 3.2.1 available by Monday (supports any 
KDE3x version). It's a snapshot only to test the build system 
(which seems to be working fine) and because I haven't completed 
the docs."

Monday he means 15th of march.
so, perhaps someone could grab the snapshot an make an ebuild for ~x86. (sry, but i do not have the knowledge for this)
Comment 23 Aaron Peterson 2004-03-18 00:39:49 UTC
I just learned what the "inclusion" keyword is supposed to do..

Jeremy, You can add the keyword "inclusion" to prompt a developer to look at it.

Comment 24 yalag 2004-03-23 10:59:19 UTC
Could someone make at least one version of working pykde for kde3.2.x please? 
Comment 25 Christian Bartels 2004-04-22 22:20:00 UTC
this was on the pykde mailinglists today. the file can be found here:
http://www.river-bank.demon.co.uk/download/PyKDE2/PyKDE-3.11alpha5.tar.gz

unfortunately no kde 3.2.2 support yet. (uh...just emerge kde 3.2.2 two days ago :-/)

---------------------------------------------------------------------------

I'm finishing a couple of test builds for PyKDE-3.11alpha5 and 
assuming those work OK, I'll be sending a tarball to Phil to put 
up either on the PyKDE page or in a PyKDE snapshot directory.

This isn't the final release. It should build against any KDE 
version from 3.0.0 through 3.2.1 inclusive. It has (more or 
less) the final build system and I've fixed all of the bugs 
people have posted to the list (I think).

It requires sip >= 3.10.1 (3.10 isn't sufficient) and PyQt >= 
3.11. I've tested it against SuSE 9.0/KDE3.2.1, SuSE 
8.2/KDE3.1.1 and RH 9.0/KDE3.1.0. You'll also need to have 
installed the *config.py files that the new sip and PyQt create 
and install (usually in /site-packages). If you build from a 
tarball, those are created automatically - I'm not sure how 
packagers have been handling those. As always, you need to have 
sip and PyQt installed and the PyQt sip files installed as well 
(pyqtconfig.py should point to those).

I'll be doing more testing against different distributions and 
KDE versions and adding KDE 3.2.2 support over the next couple 
of days, and should have another snapshot available when that's 
completed. The final release still needs updated docs and a few 
other minor details cleaned up. I also haven't tested the 
command line switches to configure.py, but will before the final 
release.

I'd recommend that anyone experiencing problems with PyKDE 3.8 
installation upgrade their sip and PyQt versions and use the 
PyKDE snapshots or wait for the final release.

Please report any build, compile or execution errors you run 
across to the list.

Sorry for the long delay in getting this out.

Jim
Comment 26 Russell Valentine 2004-04-23 23:57:01 UTC
Created attachment 29939 [details]
pykde 3.11 alpha6 ebuild

ebuild to build pykde 3.11alpha6 with kde 3.2.1 sip 3.10.1 PyQt3.11
Comment 27 Carsten Lohrke (RETIRED) gentoo-dev 2004-04-24 04:22:16 UTC
Created attachment 29951 [details]
pykde-3.11_alpha6.ebuild

the ebuild above doesn't put the sip files in the right place
Comment 28 Carsten Lohrke (RETIRED) gentoo-dev 2004-04-29 04:37:36 UTC
Created attachment 30309 [details]
pykde-3.11_alpha7.ebuild
Comment 29 Carsten Lohrke (RETIRED) gentoo-dev 2004-04-29 04:38:43 UTC
Created attachment 30310 [details, diff]
kmacroexpander.sip.diff
Comment 30 David Gethings 2004-05-04 07:10:19 UTC
Created attachment 30706 [details]
emerge info + KDE & QT version

I've just tried the 3.11_alpha7 ebuild (and sip patch). It didn't work for me
:(

Here's where the ebuild fails, attached is more information:

make[1]: Entering directory
`/var/tmp/portage/pykde-3.11_alpha7/work/PyKDE-3.11alpha7/kdecore'
g++ -c -Wno-deprecated-declarations -pipe -mcpu=athlon-xp -O3 -pipe -ffast-math
-funroll-loops -fomit-frame-pointer -msse -mfpmath=sse,387 -mmmx -m3dnow -fPIC
-O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I.
-I../extra/kde321 -I/usr/kde/3.2/include -I/usr/include/python2.3
-I/usr/qt/3/include -I/usr/X11R6/include -o sipkdecorepart0.o
sipkdecorepart0.cpp
sipkdecorepart0.cpp: In function `const KShortcut&
   sipVH_kdecore_35(PyGILState_STATE, PyObject*, unsigned int)':
sipkdecorepart0.cpp:5170: warning: reference to local variable `sipRes'
   returned
sipkdecorepart0.cpp: In function `const QString&
   sipVH_kdecore_60(PyGILState_STATE, PyObject*)':
sipkdecorepart0.cpp:5573: warning: reference to local variable `sipRes'
   returned
sip/kdecore/kmountpoint.sip: In function `PyObject*
   convertFrom_KMountPoint_List(void*)':
sip/kdecore/kmountpoint.sip:136: warning: taking address of temporary
sipkdecorepart0.cpp: In function `int convertTo_Display(PyObject*, void**,
   int*)':
sipkdecorepart0.cpp:27744: warning: unused parameter `PyObject*sipPy'
sipkdecorepart0.cpp:27744: warning: unused parameter `int*sipIsErr'
sipkdecorepart0.cpp: In function `PyObject* convertFrom_Display(void*)':
sipkdecorepart0.cpp:27778: warning: unused variable `Display*sipCpp'
sipkdecorepart0.cpp: In member function `virtual const KShortcut&
   sipKShortcutList::shortcutDefault(unsigned int) const':
sipkdecorepart0.cpp:51346: error: new cannot be applied to a reference type
sipkdecorepart0.cpp: In member function `virtual const KShortcut&
   sipKShortcutList::shortcut(unsigned int) const':
sipkdecorepart0.cpp:51361: error: new cannot be applied to a reference type
sipkdecorepart0.cpp: In function `PyObject* convertFrom_ulonglong(void*)':
sip/kdecore/kconfigbase.sip:314: warning: unused variable `PyObject*LongLong'
sipkdecorepart0.cpp: In function `void dealloc_KShared(sipWrapper*)':
sipkdecorepart0.cpp:79326: warning: unused parameter `sipWrapper*sipSelf'
sipkdecorepart0.cpp: In function `PyObject* convertFrom_QValueList_2100(void*)
   ':
sip/kdecore/kwinmodule.sip:110: warning: unused variable `PyObject*inst'
make[1]: *** [sipkdecorepart0.o] Error 1
make[1]: Leaving directory
`/var/tmp/portage/pykde-3.11_alpha7/work/PyKDE-3.11alpha7/kdecore'
make: *** [all] Error 2

!!! ERROR: dev-python/pykde-3.11_alpha7 failed.
!!! Function src_compile, Line 43, Exitcode 2
!!! (no error message)
Comment 31 Carsten Lohrke (RETIRED) gentoo-dev 2004-05-04 17:16:35 UTC
David: If you are using sip 4, then you'll have to grab the latest snapshot.
Comment 32 David Gethings 2004-05-05 13:45:54 UTC
oops! I failed to notice that when I installed PyKDE 3.11_alpha7 it also installed sip 4.0-rc3. I've installed sip 3.10.1 but I now get the following error:

make[1]: Entering directory `/var/tmp/portage/pykde-3.11_alpha7/work/PyKDE-3.11alpha7/dcop'
g++ -c -Wno-deprecated-declarations -pipe -mcpu=athlon-xp -O3 -pipe -ffast-math -funroll-loops -fomit-frame-pointer -msse -mfpmath=sse,387 -mmmx -m3dnow -fPIC -O2 -w -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I../extra/kde321 -I/usr/kde/3.2/include -I/usr/include/python2.3 -I/usr/qt/3/include -I/usr/X11R6/include -o dcoppart0.o dcoppart0.cpp
/usr/qt/3/bin/moc -o moc_dcoppart0.cpp dcoppart0.h
g++ -c -Wno-deprecated-declarations -pipe -mcpu=athlon-xp -O3 -pipe -ffast-math -funroll-loops -fomit-frame-pointer -msse -mfpmath=sse,387 -mmmx -m3dnow -fPIC -O2 -w -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I../extra/kde321 -I/usr/kde/3.2/include -I/usr/include/python2.3 -I/usr/qt/3/include -I/usr/X11R6/include -o moc_dcoppart0.o moc_dcoppart0.cpp
g++ -shared -Wl,-soname,libdcopcmodule.so -Wl,-rpath,/usr/kde/3.2/lib -Wl,-rpath,/usr/qt/3/lib -o libdcopcmodule.so dcoppart0.o moc_dcoppart0.o -L../qt -L/usr/kde/3.2/lib -L/usr/lib/python2.3/site-packages -L/usr/qt/3/lib -L/usr/X11R6/lib -lqtcmodule -lDCOP -lsip -lqt-mt -lXext -lX11 -lm -lpthread
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lqtcmodule
collect2: ld returned 1 exit status
make[1]: *** [libdcopcmodule.so] Error 1
make[1]: Leaving directory `/var/tmp/portage/pykde-3.11_alpha7/work/PyKDE-3.11alpha7/dcop'
make: *** [all] Error 2

!!! ERROR: dev-python/pykde-3.11_alpha7 failed.
!!! Function src_compile, Line 43, Exitcode 2
!!! (no error message)

Any ideas why I am missing the qtcmodule library? qpkg hasn't been much help and nor has google.

Cheers

Dg
Comment 33 Aaron Peterson 2004-05-07 17:37:31 UTC
With -Wall
*************
ipdcoppart0.cpp
g++ -shared -Wl,-rpath,/usr/kde/3.2/lib -Wl,-rpath,/usr/qt/3/lib -o dcop.so sipdcoppart0.o moc_sipdcoppart0.o -L/usr/kde/3.2/lib -L/usr/qt/3/lib -L/usr/X11R6/lib -lDCOP -lqt-mt -lXext -lX11 -lm -lpthread
make[1]: Leaving directory `/var/tmp/portage/pykde-3.11_alpha7/work/PyKDE-3.11alpha7/dcop'
make[1]: Entering directory `/var/tmp/portage/pykde-3.11_alpha7/work/PyKDE-3.11alpha7/kdecore'
g++ -c -Wno-deprecated-declarations -pipe -march=athlon-xp -mmmx -m3dnow -msse -fomit-frame-pointer -O2 -pipe -Wall -fPIC -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I../extra/kde322 -I/usr/kde/3.2/include -I/usr/include/python2.3 -I/usr/qt/3/include -I/usr/X11R6/include -o sipkdecorepart0.o sipkdecorepart0.cpp
sipkdecorepart0.cpp: In function `const KShortcut&
   sipVH_kdecore_35(PyGILState_STATE, PyObject*, unsigned int)':
sipkdecorepart0.cpp:5170: warning: reference to local variable `sipRes'
   returned
sipkdecorepart0.cpp: In function `const QString&
   sipVH_kdecore_60(PyGILState_STATE, PyObject*)':
sipkdecorepart0.cpp:5573: warning: reference to local variable `sipRes'
   returned
sip/kdecore/kmountpoint.sip: In function `PyObject*
   convertFrom_KMountPoint_List(void*)':
sip/kdecore/kmountpoint.sip:136: warning: taking address of temporary
sipkdecorepart0.cpp: In function `int convertTo_Display(PyObject*, void**,
   int*)':
sipkdecorepart0.cpp:27744: warning: unused parameter `PyObject*sipPy'
sipkdecorepart0.cpp:27744: warning: unused parameter `int*sipIsErr'
sipkdecorepart0.cpp: In function `PyObject* convertFrom_Display(void*)':
sipkdecorepart0.cpp:27778: warning: unused variable `Display*sipCpp'
sipkdecorepart0.cpp: In member function `virtual const KShortcut&
   sipKShortcutList::shortcutDefault(unsigned int) const':
sipkdecorepart0.cpp:51346: error: new cannot be applied to a reference type
sipkdecorepart0.cpp: In member function `virtual const KShortcut&
   sipKShortcutList::shortcut(unsigned int) const':
sipkdecorepart0.cpp:51361: error: new cannot be applied to a reference type
sipkdecorepart0.cpp: In function `PyObject* convertFrom_ulonglong(void*)':
sip/kdecore/kconfigbase.sip:314: warning: unused variable `PyObject*LongLong'
sipkdecorepart0.cpp: In function `void dealloc_KShared(sipWrapper*)':
sipkdecorepart0.cpp:79326: warning: unused parameter `sipWrapper*sipSelf'
sipkdecorepart0.cpp: In function `PyObject* convertFrom_QValueList_2100(void*)
   ':
sip/kdecore/kwinmodule.sip:110: warning: unused variable `PyObject*inst'
make[1]: *** [sipkdecorepart0.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/pykde-3.11_alpha7/work/PyKDE-3.11alpha7/kdecore'
make: *** [all] Error 2

!!! ERROR: dev-python/pykde-3.11_alpha7 failed.
!!! Function src_compile, Line 43, Exitcode 2
!!! (no error message)

bash-2.05b# vi /etc/make.conf

*****
without -Wall
**********

g++ -c -Wno-deprecated-declarations -pipe -march=athlon-xp -mmmx -m3dnow -msse -fomit-frame-pointer -O2 -pipe -Wall -fPIC -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I../extra/kde322 -I/usr/kde/3.2/include -I/usr/include/python2.3 -I/usr/qt/3/include -I/usr/X11R6/include -o sipkdecorepart0.o sipkdecorepart0.cpp
sipkdecorepart0.cpp: In function `const KShortcut&
   sipVH_kdecore_35(PyGILState_STATE, PyObject*, unsigned int)':
sipkdecorepart0.cpp:5170: warning: reference to local variable `sipRes'
   returned
sipkdecorepart0.cpp: In function `const QString&
   sipVH_kdecore_60(PyGILState_STATE, PyObject*)':
sipkdecorepart0.cpp:5573: warning: reference to local variable `sipRes'
   returned
sip/kdecore/kmountpoint.sip: In function `PyObject*
   convertFrom_KMountPoint_List(void*)':
sip/kdecore/kmountpoint.sip:136: warning: taking address of temporary
sipkdecorepart0.cpp: In function `int convertTo_Display(PyObject*, void**,
   int*)':
sipkdecorepart0.cpp:27744: warning: unused parameter `PyObject*sipPy'
sipkdecorepart0.cpp:27744: warning: unused parameter `int*sipIsErr'
sipkdecorepart0.cpp: In function `PyObject* convertFrom_Display(void*)':
sipkdecorepart0.cpp:27778: warning: unused variable `Display*sipCpp'
sipkdecorepart0.cpp: In member function `virtual const KShortcut&
   sipKShortcutList::shortcutDefault(unsigned int) const':
sipkdecorepart0.cpp:51346: error: new cannot be applied to a reference type
sipkdecorepart0.cpp: In member function `virtual const KShortcut&
   sipKShortcutList::shortcut(unsigned int) const':
sipkdecorepart0.cpp:51361: error: new cannot be applied to a reference type
sipkdecorepart0.cpp: In function `PyObject* convertFrom_ulonglong(void*)':
sip/kdecore/kconfigbase.sip:314: warning: unused variable `PyObject*LongLong'
sipkdecorepart0.cpp: In function `void dealloc_KShared(sipWrapper*)':
sipkdecorepart0.cpp:79326: warning: unused parameter `sipWrapper*sipSelf'
sipkdecorepart0.cpp: In function `PyObject* convertFrom_QValueList_2100(void*)
   ':
sip/kdecore/kwinmodule.sip:110: warning: unused variable `PyObject*inst'
make[1]: *** [sipkdecorepart0.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/pykde-3.11_alpha7/work/PyKDE-3.11alpha7/kdecore'
make: *** [all] Error 2

!!! ERROR: dev-python/pykde-3.11_alpha7 failed.
!!! Function src_compile, Line 43, Exitcode 2
!!! (no error message)

***********
without the epatch line and without -Wall
(I've got sip4.0rc3)

same as without -Wall
Comment 34 Carsten Lohrke (RETIRED) gentoo-dev 2004-05-08 04:11:14 UTC
David: I don't think you can switch between sip3/4 without rebuilding PyQt before pykde. On the other hand it may be your CFLAGS or something else. Don't forget - it's an alpha version.

Aaron: When using sip4, you'll need the latest snapshot - rc3 will not work
Comment 35 Aaron Peterson 2004-05-10 17:20:21 UTC
pykde-3.11_rc1 is out!

http://www.river-bank.demon.co.uk/download/PyKDE2/

I'm going to try to update the ebuild, if it's just renaming it, I won't report back... I probably won't report back anyway... unless I somehow make it work with a non obvious procedure.
Comment 36 Aaron Peterson 2004-05-10 17:32:52 UTC
make[1]: Leaving directory `/var/tmp/portage/pykde-3.11_rc1/work/PyKDE-3.11rc1/dcop'
make[1]: Entering directory `/var/tmp/portage/pykde-3.11_rc1/work/PyKDE-3.11rc1/kdecore'
g++ -c -Wno-deprecated-declarations -pipe -march=athlon-xp -mmmx -m3dnow -msse -fomit-frame-pointer -O2 -pipe -Wall -fPIC -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I../extra/kde322 -I/usr/kde/3.2/include -I/usr/include/python2.3 -I/usr/qt/3/include -I/usr/X11R6/include -o sipkdecorepart0.o sipkdecorepart0.cpp
sipkdecorepart0.cpp: In function `const KShortcut&
   sipVH_kdecore_35(PyGILState_STATE, PyObject*, unsigned int)':
sipkdecorepart0.cpp:5171: warning: reference to local variable `sipRes'
   returned
sipkdecorepart0.cpp: In function `const QString&
   sipVH_kdecore_60(PyGILState_STATE, PyObject*)':
sipkdecorepart0.cpp:5574: warning: reference to local variable `sipRes'
   returned
sip/kdecore/kmountpoint.sip: In function `PyObject*
   convertFrom_KMountPoint_List(void*)':
sip/kdecore/kmountpoint.sip:137: warning: taking address of temporary
sipkdecorepart0.cpp: In function `int convertTo_Display(PyObject*, void**,
   int*)':
sipkdecorepart0.cpp:27824: warning: unused parameter `PyObject*sipPy'
sipkdecorepart0.cpp:27824: warning: unused parameter `int*sipIsErr'
sipkdecorepart0.cpp: In function `PyObject* convertFrom_Display(void*)':
sipkdecorepart0.cpp:27858: warning: unused variable `Display*sipCpp'
sipkdecorepart0.cpp: In member function `virtual const KShortcut&
   sipKShortcutList::shortcutDefault(unsigned int) const':
sipkdecorepart0.cpp:51467: error: new cannot be applied to a reference type
sipkdecorepart0.cpp: In member function `virtual const KShortcut&
   sipKShortcutList::shortcut(unsigned int) const':
sipkdecorepart0.cpp:51482: error: new cannot be applied to a reference type
sipkdecorepart0.cpp: In function `PyObject* convertFrom_ulonglong(void*)':
sip/kdecore/kconfigbase.sip:298: warning: unused variable `PyObject*LongLong'
sipkdecorepart0.cpp: In function `void dealloc_KShared(sipWrapper*)':
sipkdecorepart0.cpp:79446: warning: unused parameter `sipWrapper*sipSelf'
sipkdecorepart0.cpp: In function `PyObject* convertFrom_QValueList_2100(void*)
   ':
sip/kdecore/kwinmodule.sip:110: warning: unused variable `PyObject*inst'
make[1]: *** [sipkdecorepart0.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/pykde-3.11_rc1/work/PyKDE-3.11rc1/kdecore'
make: *** [all] Error 2

!!! ERROR: dev-python/pykde-3.11_rc1 failed.
!!! Function src_compile, Line 43, Exitcode 2
!!! (no error message)

--Without the epatch..

-- with epatch:
 * Applying kmacroexpander.sip.diff...

 * Failed Patch: kmacroexpander.sip.diff!
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/pykde-3.11_rc1/temp/kmacroexpander.sip.diff-13577.out

Comment 37 Aaron Peterson 2004-05-10 17:38:19 UTC
Created attachment 31133 [details]
/var/tmp/portage/pykde-3.11_rc1/temp/kmacroexpander.sip.diff-13577.out

doing what the command told me to do when it failed.

Shouldn't this bug be owned by ebuilds?
Comment 38 Carsten Lohrke (RETIRED) gentoo-dev 2004-05-10 17:45:40 UTC
The patch is not needed anymore, but to quote the author of pykde, Jim Bublitz:

>There are some bugs in the startService* and kdeinitexec* groups 
>of methods in the KApplication class.  None of these methods are 
>currently working properly. The fix involves providing a fair 
>amount of handwritten code, so it can't be detailed here easily.
>I can provide a modified kapplication.sip to anyone who needs any 
>of these methods prior to the next release (probably in a few 
>days to a week from now).

So be a bit patient, please.
Comment 39 Aaron Peterson 2004-05-24 11:19:47 UTC
The new sip is out.

It emerges!!!
Comment 40 Jean-François Gagnon Laporte 2004-05-26 06:44:11 UTC
WFM with the new sip and 3.11rc1
Comment 41 Carsten Lohrke (RETIRED) gentoo-dev 2004-05-26 12:58:18 UTC
Jean: the new sip versions are already commited, pykde-3.11rc1 has a few bugs and the new version comes out together with KDE 3.2.2 next week, so I won't add this one to the tree.

I'm closing this bug report now, guessing to to see a new one in a week. ;)
Comment 42 Carsten Lohrke (RETIRED) gentoo-dev 2004-05-26 12:59:27 UTC
KDE 3.2.3 of course
Comment 43 Aaron Peterson 2004-06-23 15:26:50 UTC
well, it worked.. now it's a problem for kde 3.2.3.. methinks.. last time I checked it was..
Comment 44 Carsten Lohrke (RETIRED) gentoo-dev 2004-06-23 15:41:39 UTC
pykde-3.11.1 supports kde 3.2.3. You can check this yourself btw.: `ACCEPT_KEYWORDS="~x86" emerge -p pykde` 

Please don't reuse old, closed bug reports. If you have a real bug, open a new one, if it's just a simple question there is forums.g.o and the mailing lists.