Summary: | Phonon doesn't find all of his backends in KDE 4.2.0 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Lóránt Farkas <lfarkas> |
Component: | [OLD] KDE | Assignee: | Gentoo KDE team <kde> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | blog, gentoo, jmgottfried, mikko.cal, rb6, realnc, subscryer, ziga.boehm |
Priority: | High | Keywords: | InOverlay, InVCS |
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
No backend list in systemsettings
emerge --info phonon-4.3.0.ebuild phonon-kde-4.2.0-r1.ebuild |
Description
Lóránt Farkas
2009-02-02 20:56:28 UTC
Created attachment 180739 [details]
No backend list in systemsettings
Created attachment 180740 [details]
emerge --info
Gentoo puts the backends in /usr/share/kde4/services/phononbackends If 3.5 is installed too KDEDIR points to /usr/kde/4.2 As a workaround you can make a symlink /usr/kde/4.2/share/kde4/services/phononbackends -> /usr/share/kde4/services/phononbackends I have created a symlink /usr/kde/4.2/share/kde4/services/phononbackends which points to /usr/share/kde4/services/phononbackends but only this doesn't solved the problem. But I have found that, for the original directory (/usr/share/kde4/services/phononbackends) the users had no permission to read or execute, after I fixed this, the backends are working. Thanks! We have to fix it somehow in the tree first ;] Changing CMAKE_INSTALL_PREFIX to /usr/kde/4.2 and LIB_INSTALL_DIR to /usr/kde/4.2/lib64 after manual "ebuild /usr/portage/media-sound/phonon/phonon-4.3.0.ebuild unpack compile" and finishing with "ebuild /usr/portage/media-sound/phonon/phonon-4.3.0.ebuild install qmerge" solves the problem for me (on amd64). The install target directories shold be set depending on the kdeprefix use flag. Is this an upstream bug or Gentoo specific? I found this: http://forum.kde.org/no-phonon-backends-listed-t-23591.html and it isn't clear if it's Gentoo's or upstream's bug. Given that ebuilds serve the role of packages in Gentoo, it's a packaging bug. With USE="-kdeprefix", they get installed together. With USE="kdeprefix", KDE moves to /usr/kde/4.2/ but phonon stays in /usr/. Created attachment 182920 [details] phonon-4.3.0.ebuild Phonon should be made '+kdeprefix' aware, but should not install itself in /usr/kde/4.x The idea mentioned by Lóránt in comment #4 of symlinking to the correct kdeprefix'ed directory is the ideal solution I believe. It is problematic to install to /usr/kde/4.x for phonon due to users possibly having another 4.x installation present in the future. Phonon configuration expects to find the backends within the current session's $KDEDIR, and if installed in /usr/kde/4.x would mean having to re-install phonon every time the user changed 4.x sessions. Also, non-kdebase applications linked to libphonon (amarok for example) would then require rebuilding to (re-)link against the new lib location. This updated phonon ebuild inherits kde4-functions.eclass and uses some kde4-base.eclass code in the ebuild to get $KDEDIR. This is later used in the ebuild to create a symlink in the latest 4.x installation to /usr/share/kde4/services/phononbackends for '+kdeprefix' only. Have tested this on 4.2 with amarok only so far, able to change back and forth between both gstreamer and xine backends with ease. Created attachment 183449 [details]
phonon-kde-4.2.0-r1.ebuild
Test this one. Should do the thing.
I need it reported working cause i dont have +kdeprefix :]
(In reply to comment #10) > Created an attachment (id=183449) [edit] > phonon-kde-4.2.0-r1.ebuild > > Test this one. Should do the thing. > I need it reported working cause i dont have +kdeprefix :] The problem is with phonon, not phonon-kde. Er, ignore. I just woke up :P phonon-kde-4.2.0-r1 fixes the problem for me! Fixed in overlay and in the tree. |