Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13809 - Mplayer-rc2 doesn't compile when DVB card is detected
Summary: Mplayer-rc2 doesn't compile when DVB card is detected
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-12 18:51 UTC by Juri Haberland
Modified: 2003-04-09 18:37 UTC (History)
2 users (show)

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


Attachments
new USE vatiable "dvb" to en/disable DVB support in mplayer (mplayer-ebuild.diff,945 bytes, patch)
2003-01-12 18:53 UTC, Juri Haberland
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Juri Haberland 2003-01-12 18:51:09 UTC
Thanks to the new DVB support in mplayer, mplayer's configure script will find
an DVB device, but due to a bug in this script, it doesn't differentiate between
the old and the new driver. So if you have a new DVB driver, it will fail to build.

Therefore, and for other reasons, I propose the following patch to the ebuild
script, that introduces the new USE variable 'dvb'.
Tested on my box:
If I set USE="$USE -dvb" I can complile (emerge) mplayer just fine (though
without DVB support, but let's wait for -rc3 to fix this).

--- mplayer-0.90_rc2.ebuild     2003-01-07 00:25:37.000000000 +0100
+++ mplayer-0.90_rc2-r1.ebuild  2003-01-13 01:11:03.000000000 +0100
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Header:
/home/cvsroot/gentoo-x86/media-video/mplayer/mplayer-0.90_rc2.ebuild,v 1.2
2003/01/06 23:20:34 azarah Exp $

-IUSE="dga oss jpeg 3dfx sse matrox sdl X svga ggi oggvorbis 3dnow aalib gnome
xv opengl truetype dvd gtk gif esd fbcon encode alsa directfb arts"
+IUSE="dga oss jpeg 3dfx sse matrox sdl X svga ggi oggvorbis 3dnow aalib gnome
xv opengl truetype dvd gtk gif esd fbcon encode alsa directfb arts dvb"

 inherit eutils

@@ -180,6 +180,10 @@
                && myconf="${myconf} --enable-i18n" \
                || myconf="${myconf} --disable-i18n"

+       use dvb \
+               && myconf="${myconf} --enable-dvb" \
+               || myconf="${myconf} --disable-dvb"
+
        if [ -d /opt/RealPlayer9/Real/Codecs ]
        then
                REALLIBDIR="/opt/RealPlayer9/Real/Codecs"
Comment 1 Juri Haberland 2003-01-12 18:53:18 UTC
Created attachment 7237 [details, diff]
new USE vatiable "dvb" to en/disable DVB support in mplayer
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-19 16:59:39 UTC
We currently do not have a 'dvb' USE flag.  It was proposed, will wait till
it gets resolved.
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-04-04 05:52:54 UTC
now we've dvb as USE flag
Comment 4 Thomas Raschbacher gentoo-dev 2003-04-06 05:44:04 UTC
shall i appy this patch?
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-07 00:11:05 UTC
No, hang on.
Comment 6 Thomas Raschbacher gentoo-dev 2003-04-07 08:48:25 UTC
ok then it's yours :)
feel free to ask if u got problems ..

btw .. this isn't really needed when the mpegtools are installed (can be used with mplayer like this: szap <channel>; ts2ps /dev/dvb/adapter0/dvr0 0 0 | buffer | mplayer -nocache -vop lavcdeint - [buffer and lavcdint are not needed but nice :)])

regards
Comment 7 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-09 18:37:43 UTC
Added to mplayer-0.90.