Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 257428 - Phonon doesn't find all of his backends in KDE 4.2.0
Summary: Phonon doesn't find all of his backends in KDE 4.2.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords: InOverlay, InVCS
Depends on:
Blocks:
 
Reported: 2009-02-02 20:56 UTC by Lóránt Farkas
Modified: 2009-03-01 00:26 UTC (History)
8 users (show)

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


Attachments
No backend list in systemsettings (No-phonon-backends.png,233.91 KB, image/png)
2009-02-02 20:58 UTC, Lóránt Farkas
Details
emerge --info (emerge.info,5.55 KB, text/plain)
2009-02-02 20:59 UTC, Lóránt Farkas
Details
phonon-4.3.0.ebuild (phonon-4.3.0.ebuild,1.64 KB, text/plain)
2009-02-23 18:08 UTC, Rick Harris
Details
phonon-kde-4.2.0-r1.ebuild (phonon-kde-4.2.0-r1.ebuild,912 bytes, text/plain)
2009-02-28 07:01 UTC, Tomáš Chvátal (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lóránt Farkas 2009-02-02 20:56:28 UTC
I've installed KDE 4.2.0 from the tree all seemed OK, but the dragonplayer cannot play any DVD, nor DVD image. After looking into systemsetting I've found, that in the backends tab in the Multimedia setting no backends are listed. 


Reproducible: Always

Steps to Reproduce:



Expected Results:  
The backends should be listed, and the dragonplayer should play DVD

It is very strange because the sound is OK, and when I merge the phonon-4.3.0 then the cmake found the libxine and says :
-- The following external packages were located on your system.                                                    
-- This installation will have the extra features provided by these packages.                                      
+ GStreamer                                                                                                        
+ GStreamer video plugin                                                                                           
+ GStreamer audio plugin                                                                                           
+ GLib2                                                                                                            
+ LibXml2                                                                                                          
+ OpenGL                                                                                                           
+ XCB                                                                                                              
Congratulations! All external packages have been found.                                                            
-----------------------------------------------------------------------------

After installed the packages I have 

/usr/lib64/kde4/plugins/phonon_backend/phonon_gstreamer.so
and 
/usr/lib64/kde4/plugins/phonon_backend/phonon_xine.so        
as well.

But no backends listed in systemsettings
Comment 1 Lóránt Farkas 2009-02-02 20:58:26 UTC
Created attachment 180739 [details]
No backend list in systemsettings
Comment 2 Lóránt Farkas 2009-02-02 20:59:01 UTC
Created attachment 180740 [details]
emerge --info
Comment 3 subscryer 2009-02-02 21:15:43 UTC
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
Comment 4 Lóránt Farkas 2009-02-02 21:43:25 UTC
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!
Comment 5 Tomáš Chvátal (RETIRED) gentoo-dev 2009-02-02 21:49:48 UTC
We have to fix it somehow in the tree first ;]
Comment 6 J. M. Gottfried 2009-02-02 22:03:21 UTC
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.
Comment 7 Nikos Chantziaras 2009-02-14 00:22:21 UTC
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.
Comment 8 Stephan Sokolow 2009-02-14 01:47:54 UTC
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/.
Comment 9 Rick Harris 2009-02-23 18:08:56 UTC
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.
Comment 10 Tomáš Chvátal (RETIRED) gentoo-dev 2009-02-28 07:01:08 UTC
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 :]
Comment 11 Nikos Chantziaras 2009-02-28 07:52:30 UTC
(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.
Comment 12 Nikos Chantziaras 2009-02-28 08:02:00 UTC
Er, ignore.  I just woke up :P
Comment 13 Stephan Rave 2009-02-28 14:28:19 UTC
phonon-kde-4.2.0-r1 fixes the problem for me!
Comment 14 Tomáš Chvátal (RETIRED) gentoo-dev 2009-03-01 00:26:52 UTC
Fixed in overlay and in the tree.