[kde-linux] Re: PyKDE 4.6 BRANCH will not build.

Duncan 1i5t5.duncan at cox.net
Thu Mar 17 05:42:47 UTC 2011


James Tyrer posted on Wed, 16 Mar 2011 15:42:45 -0700 as excerpted:

> Does anyone know if there is a way to build PyKDE4 -- the KDE/4.6 branch
> from the GIT repository -- without replacing the current SIP-4.12.1 and
> PyQt-x11-gpl-4.8.3 with older versions?
> 
> It fails with:
> 
> error: ‘class KTabWidget’ has no member named ...
> 
> Google found several other people with the same problem but no solution.

(The post evolves as it goes, so skip to the end if you want my final 
conclusion...)

Have you tried PyKDE4-4.6.1, to see if it builds?  That's what I'm running 
here on Gentoo (on both my amd64 main system and x86 netbook machines, the 
netbook /just/ finished updating from kde 4.4.5 and kernel 2.6.35-rc6-git-
something, yesterday, so it's fresh), along with sip-4.12.1 and 
PyQt4-4.8.3.  Python-2.7.1-r1 (-r1 indicates a Gentoo revision, often 
patched for some reason, beyond initial release), FWIW.

If that builds, you know it's a problem since 4.6.1.  If it doesn't, then 
you know you have a different issue, as it built fine for me here, on two 
different machines, one 64-bit kept regularly updated, one 32-bit that was 
allowed to get ~8 months behind and just recently updated.

Meanwhile, I see you've already commented on this related-but-4.5-era 
Gentoo bug, back on Feb 20:  http://bugs.gentoo.org/show_bug.cgi?id=349707

More possibly useful info from the Gentoo/kde project overlay 4.6.9999 
(live 4.6 branch) ebuild:

* Requires >= sip-4.12 (Actually, this appears to be due to the bug linked 
above, upstream bumped their deps so they didn't have to worry about the 
two different handling methods split across 4.12.)

* Requires >= PyQt4-4.8.2, where the flags/options for dbus, declarative, 
sql, svg, webkit, and X, should be turned on.

* I see -DWITH-QScintilla=OFF -DWITH-PolkitQt=OFF hardcoded as cmake args.

* There's some cross-dependencies with kdelibs and kdepimlibs regarding 
semantic-desktop (soprano/nepomuk/etc) and opengl options, so in general 
make sure you're using the same options for them and for pykde4.  (The 
description in the ebuild uses gentoo-specific dependency language that I 
won't bother explaining, but if you make sure your options are set 
similarly for everything, you should be fine.)

Meanwhile, if 4.6.0 or 4.6.1 builds, this shouldn't be the problem as it's 
4.5.90 (4.6-beta-1 IIRC) era, I don't see the patch applied in the live 
ebuilds (either 4.6 branch or trunk/master), and the error looks different 
(MappedType template already defined), but who knows, the patch might be 
useful...   http://bugs.gentoo.org/show_bug.cgi?id=349668

Finally... I am currently trying unmasking, building, and "fake-
installing" (gentoo installs to a temp location first, the fake-install, 
then copies that over to the live filesystem with qmerge, the step I 
deliberately didn't take, so as not to mess up my 4.6.1 install) the 
4.6.9999 "live 4.6-branch" version, and (... waiting for the results)...

With my latest sync with the gentoo/kde overlay on the 12th, 4 days ago... 
I seem to have the same issue...

So it appears gentoo/kde had the same problem with 4.6-branch with their 
version from 4 days ago, at least...

(BTW, I note that the live-master 4.9999 ebuild changed source modules 
within the tarball, but 4.6.9999 4.6-branch hadn't.  I had to do that 
manually to even get it to start the process as it died in the unpack, 
otherwise.  But that might be an ebuild-script-specific issue, thus 
nothing you have to worry about.)

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman




More information about the kde-linux mailing list