On Mon, Oct 17, 2011 at 1:17 PM, Joseph Mulloy <jdmulloy@gmail.com> wrote:
In order to run OpenLP I had to rebuild python-qt4 with phonon-devel installed. I figured out how to do this on OBS by adding "BuildRequires: phonon-devel" to the spec file. I submitted a bug report to try to get this added to the packaged shipped in 12.1. The developer who is handling my bug gave me instructions on how to branch the package and submit my packages back through OBS. I've made the change and it build for 11.3, 11.4 and Factory but it fails for SLE_11_SP1. I'm assuming that I shouldn't submit a change that causes this breakage. I can't figure out what the problem is. I don't know if there is some other dependency I need to add to the spec file or if there is an error in the source code somewhere.
This is where the OBS project is located: https://build.opensuse.org/project/show?project=home%3Ajdmulloy%3Abranches%3...
This is the bug I submitted: https://bugzilla.novell.com/show_bug.cgi?id=655152
This is the error I get /usr/src/packages/BUILD/PyQt-x11-gpl-4.8.5/phonon/sipphononPhononVideoWidget.cpp: In function 'PyObject* meth_Phonon_VideoWidget_snapshot(PyObject*, PyObject*)': /usr/src/packages/BUILD/PyQt-x11-gpl-4.8.5/phonon/sipphononPhononVideoWidget.cpp:1724: error: 'class Phonon::VideoWidget' has no member named 'snapshot' make[1]: *** [sipphononPhononVideoWidget.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/usr/src/packages/BUILD/PyQt-x11-gpl-4.8.5/phonon' make: *** [all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.390 (%build)
RPM build errors: cannot open Pubkeys index using db3 - No such file or directory (2) Bad exit status from /var/tmp/rpm-tmp.390 (%build) [ 775.759097] Power down.
Any help in debugging this would be appreciated as I can't figure out what the problem is.
The problem is that there is no phonon package in KDE:Qt. Phonon is built in the KDE:Distro repositories rather than the KDE:Qt repositories. This means that python-qt4, which is being built against the KDE:Qt repository, uses the default version of phonon shipped with each distribution, rather than the updated version shipped with, say, KDE:Distro:Factory. The version of phonon shipped with SLE-11 SP1 is apparently ancient, version 4.3 while supported openSUSE versions ship with 4.4 and Factory/12.1will ship with 4.5. I would suspect that the very recent python-qt4 in KDE:Qt is not compatible with the ancient phonon version shipped with SLE-11 SP1. How to handle this, however, I don't know. You could always add a check that disables using phonon for SLE-11. Something like: %if 0%{?sles_version} <= 11 BuildRequires: phonon-devel %endif However, this means that KDF will have python-qt4 compiled against an old version of phonon. A better solution might be to move python-qt4 to the KDE:Distro repositories. All the other qt bindings are built there. This would allow it to build against the proper version of phonon. -Todd -- To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde+owner@opensuse.org