Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 155149

Summary: media-video/mplayer-1.0_rc1 has automagic on dvdnav
Product: Gentoo Linux Reporter: Guillaume Castagnino <casta>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: RESOLVED FIXED    
Severity: normal CC: beandog, divided.mind, yaroslav.isakov
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 157891    
Attachments: disable automagic dep to dvdnav

Description Guillaume Castagnino 2006-11-14 10:45:26 UTC
Hi,

Emerge dvdnav
Compile mplayer with dvd USE flag.
Then unmerge dvdnav

Now mplayer is broken :
> $ mplayer
> mplayer: error while loading shared libraries: libdvdnav.so.4: cannot open shared object file: No such file or directory

When rebuilding mplayer with dvdnav unmerged, I notice this in the configure :
Checking for DVD support (libdvdnav) ... no
Checking for DVD support (libmpdvdkit2) ... no
Checking for DVD support (libdvdread) ... yes

So I understand that there is an automagick check to chose the DVD library... wich is baaaaad :)

Looking further in configure script, we have this :
--disable-dvdnav       disable libdvdnav support [autodetect]
--disable-dvdread      Disable libdvdread support [autodetect]

So I suggest you to add it add dependancy with --enable/--disable and bypass the automagic to have a more sane ebuild.

Regards,
Comment 1 Yaroslav Isakov 2006-12-03 13:41:59 UTC
Yes, i also found that mplayer detect libdvdnav, and when it does, it enable libdvdread and disable mpdvdkit (ebuild not considers dvdread USE flag, which was DISABLED)

i change the string
use dvdread || myconf="${myconf} --disable-dvdread"
to
use dvdread || myconf="${myconf} --disable-dvdread --disable-dvdnav"
in ebuild and it was fine

PS. very sorry for my very BAD english
Comment 2 Matthias Schwarzott gentoo-dev 2006-12-15 06:39:48 UTC
Created attachment 104089 [details, diff]
disable automagic dep to dvdnav

That change to the ebuild should disable the automagic dep.
I think we can unconditionally provide configure with that switch.
Comment 3 Luca Barbato gentoo-dev 2006-12-17 01:13:14 UTC
Looks ok, I'd check if the dvdnav could be of interest and maybe just link it to dvdread useflag, surely it will lately
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-01-01 16:32:55 UTC
*** Bug 159657 has been marked as a duplicate of this bug. ***
Comment 5 Steve Dibb (RETIRED) gentoo-dev 2007-03-23 01:29:08 UTC
Fixed in 20070321 release