Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 83609 - mplayer need patch to build dvb support properly.
Summary: mplayer need patch to build dvb support properly.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-28 14:38 UTC by Mikael Rosbacke
Modified: 2005-03-19 07:45 UTC (History)
0 users

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


Attachments
The patch given above generated by diff -up (mplayer.patch,708 bytes, patch)
2005-02-28 14:40 UTC, Mikael Rosbacke
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mikael Rosbacke 2005-02-28 14:38:09 UTC
The current dvb support for mplayer does not work with kernel 2.6. The patch given below needs to be applied.
The DVB project have changed interface and the mplayer option for that is '--enable-dvbhead'
The include path is not part of /usr/include/linux so I added a line to /usr/src/linux/include instead as the most standard way to find the DVB include files.

--- Mikael R

--- mplayer-1.0_pre6.ebuild.old	2005-02-28 22:52:13.000000000 +0100
+++ mplayer-1.0_pre6.ebuild	2005-02-28 23:22:03.724400144 +0100
@@ -312,6 +312,11 @@ src_compile() {
 	else
 		myconf="${myconf} --disable-tdfxvid"
 	fi
+
+	if use dvb; then
+		myconf="${myconf} --enable-dvbhead --with-dvbincdir=/usr/src/linux/include"
+	fi
+
 	if use fbcon && use 3dfx; then
 		myconf="${myconf} --enable-tdfxfb"
 	else
@@ -319,7 +324,6 @@ src_compile() {
 	fi
 	myconf="${myconf} $(use_enable aalib aa)"
 	myconf="${myconf} $(use_enable directfb)"
-	myconf="${myconf} $(use_enable dvb)"
 	myconf="${myconf} $(use_enable fbcon fbdev)"
 	myconf="${myconf} $(use_enable ggi)"
 	myconf="${myconf} $(use_enable libcaca caca)"



Reproducible: Always
Steps to Reproduce:
1.
2.
3.



Expected Results:  
When emerging mplayer with USE flag 'dvb' I can watch TV with the command:
mplayer dvb://"Channel Name"
(kernel drivers for dvb-card must be compiled and loaded.)


Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.4.3,
glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r4 i686)
=================================================================
System uname: 2.6.10-gentoo-r4 i686 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  7 2005, 20:24:55)]
distcc 2.16 i386-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.7.9-r1, 1.4_p6, 1.9.4, 1.6.3, 1.8.5-r3
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.22-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer"
CHOST="i386-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://ftp.du.se/pub/os/gentoo
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo
ftp://ftp.linux.ee/pub/gentoo/distfiles/ ftp://ftp.du.se/pub/os/gentoo
http://ftp.du.se/pub/os/gentoo "
LANG="sv_SE"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts avi berkdb bitmap-fonts cdr crypt cups curl dga doc dvb
dvd dvdr emacs emboss encode f77 fam ffmpeg flac font-server foomatic-db
foomaticdb fortran freetype gdbm gif gpm gtk gtk2 imagemagick imlib ipv6 java
jpeg junit kde libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl
oss pampda pdflib perl png ppds python qt quicktime radeon readline samba sdl
slang speedo spell sse ssl svga tcpd tetex tiff transcode truetype
truetype-fonts type1-fonts usb xml2 xmms xv xvid zlib linguas_sv"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS
Comment 1 Mikael Rosbacke 2005-02-28 14:40:37 UTC
Created attachment 52327 [details, diff]
The patch given above generated by diff -up
Comment 2 Chris White (RETIRED) gentoo-dev 2005-03-18 13:26:27 UTC
Multiple bug changes:

mplayer-1.0_pre6-r1:

3gp support added
real uses RealCodecs+modified codecs.conf file
dvb support fixed

mplayer-1.0_pre5-r5

gcc detection works
real uses win32codecs dependancy
Comment 3 Sebastian 2005-03-19 06:59:57 UTC
Weeel,

there's no need to do that. I used mplayer for quite some time with kernel 2.6. It's true there were changes at 2.6.8 that seemed to break things. But the proper fix would be for everyone who wants to use apps with dvb and kernel 2.6 to emerge the proper headers, which would be linux26-headers (I believe linux-headers are still the default).

Here's a way to fix this:

echo virtual/os-headers  sys-kernel/linux26-headers >> /etc/portage/profile/virtuals
emerge unmerge linux-headers
emerge --oneshot linux26-headers glibc
USE="dvb" emerge mplayer

I hope your "fixes" don't break stuff on my box ;-)

Later
Sebastian
Comment 4 Sebastian 2005-03-19 07:01:44 UTC
Please disregard previous post, lots of little errors. Here we go again.

Weeell,

there's no need to do that. I used mplayer for quite some time with kernel 2.6. It's true there were changes at 2.6.8 that seemed to break things. But the proper fix would be for everyone who wants to use apps with dvb and kernel 2.6 to emerge the proper headers, which would be linux26-headers (I believe linux-headers are still the default).

Here's a way to fix this:

echo "virtual/os-headers  sys-kernel/linux26-headers" >> /etc/portage/profile/virtuals
emerge unmerge linux-headers
emerge --oneshot linux26-headers glibc
USE="dvb" emerge mplayer

I hope your "fixes" don't break stuff on my box ;-)

Later
Sebastian
Comment 5 Sebastian 2005-03-19 07:45:32 UTC
The new ebuild didn't break the dvb stuff on my box. So I'll stop whining if this helps people with 2.4 headers ;)

Sebastian