Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 156605 - media-video/mplayer-1.0_rc1 doesn't compile directfb output
Summary: media-video/mplayer-1.0_rc1 doesn't compile directfb output
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 157891
  Show dependency tree
 
Reported: 2006-11-29 06:18 UTC by Ben
Modified: 2007-12-12 22:33 UTC (History)
0 users

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


Attachments
mplayer-1.0-directfb.patch (mplayer-1.0-directfb.patch,640 bytes, patch)
2006-11-29 06:21 UTC, Ben
Details | Diff
mplayer-1.0_rc1.ebuild (mplayer-1.0_rc1.ebuild,15.62 KB, text/plain)
2006-11-29 06:21 UTC, Ben
Details
mplayer-1.0-directfb.patch (mplayer-1.0-directfb.patch,581 bytes, patch)
2007-01-06 20:15 UTC, Ben
Details | Diff
mplayer-1.0_rc1.ebuild (mplayer-1.0_rc1.ebuild,15.89 KB, text/plain)
2007-01-06 20:15 UTC, Ben
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ben 2006-11-29 06:18:50 UTC
I have the use flag directfb and try to compile mplayer RC1. I allways get the following error:

Checking for DirectFB ... /var/tmp/portage/mplayer-1.0_rc1/temp/mplayer-conf-14171-11545.c:1:30: error: directfb_version.h: No such file or directory
no (failed to get version)

It seems the compiler doesnt get all the necessary include paths so I added them to the configure script. See the inlcuded patch for a solution. 

Portage 2.1.1-r2 (selinux/x86/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.18-hardened-r1 i686)
=================================================================
System uname: 2.6.18-hardened-r1 i686 AMD Duron(tm) Processor
Gentoo Base System version 1.12.6
Last Sync: Wed, 29 Nov 2006 13:00:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -mtune=athlon -march=athlon -fomit-frame-pointer -fforce-addr -pipe -fstack-protector -fPIC -mmmx -m3dnow"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O3 -mtune=athlon -march=athlon -fomit-frame-pointer -fforce-addr -pipe -fstack-protector -fPIC -mmmx -m3dnow"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks loadpolicy metadata-transfer sandbox selinux sesandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ http://ftp.gentoo.or.kr/ http://ftp.du.se/pub/os/gentoo"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LINGUAS="en de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac acpi alsa amd amr apache2 apm asf async bash-completion bcmath berkdb bidi bzip2 calendar caps cdb cddb cdparanoia cdr chroot cli contentcache cpdflib crypt css ctype cups curl curlwrappers dbase dbm dga dio directfb divx4linux dri dts dv dvd dvdr dvdread elibc_glibc encode evo exif expat ext-zlib fam fame fastbuild fbcon fdftk ffmpeg filepro flac flatfile foomaticdb fortran fritzcapi_cards_fcpci ftp fusion gcj gd gdbm geoip gif gmp hal hardened hardenedphp iconv imagemagick imap imlib inifile inline innodb inode input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdn ithreads java jce jpeg kde kernel_linux ldap libedit linguas_de linguas_en lirc lirc_devices_sir live logrotate lzo maildir matrox mcal memlimit mhash mime mmx mp3 mp4 mpeg mpeg4 mplayer musepack musicbrainz mysql mysqli mythtv ncurses nfs nls nocardbus nptl nptlonly ogg opengl pam pcntl pcre pdo pear perl pic png posix ppds prelude python qt3 qt4 quicktime readline real reflection samba sasl sblive scanner sdl selinux session sguil shared sharedext sharedmem snortsam soap sockets spamassassin spl sqlite ssl sysfs tcltk tcpd theora threads tidy tiff tokenizer truetype udev unicode usb userland_GNU userlocales utf8 v4l v4l2 video_cards_fbdev video_cards_matrox video_cards_mga video_cards_vesa visualization vorbis wddx win32codecs xanim xine xinerama xml xmlreader xmlrpc xmlwriter xorg xsl xv xvid xvmc zip zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Ben 2006-11-29 06:21:00 UTC
Created attachment 102979 [details, diff]
mplayer-1.0-directfb.patch

Patch to add includes for directfb
Comment 2 Ben 2006-11-29 06:21:42 UTC
Created attachment 102980 [details]
mplayer-1.0_rc1.ebuild

Changed ebuild to patch configure
Comment 3 Marcus Furlong 2007-01-06 14:05:39 UTC
(In reply to comment #2)
> Created an attachment (id=102980) [edit]
> mplayer-1.0_rc1.ebuild
> 
> Changed ebuild to patch configure
> 

mplayer-1.0_rc1 just went stable, and directfb output is still broken on it:

Checking for DirectFB ... /var/tmp/portage/mplayer-1.0_rc1/temp/mplayer-conf-8653-9664.c:1:30: error: directfb_version.h: No such file or directory
no (failed to get version)

  Disabled optional drivers:
    Input: vstream pvr radio mpdvdkit2 dvdnav
    Codecs: x264 twolame toolame
    Audio output: sun polyp esd arts ivtv dxr2 nas sdl
    Video output: xvidix winvidix cvidix bl zr zr2 ivtv dxr3 dxr2 sdl vesa svga ggi xmga mga xvmc dfbmga directfb tga tdfx_vid s3fb tdfxfb 3dfx
    Audio filters:

Any chance of getting this patch into the stable ebuild?
Comment 4 Ben 2007-01-06 20:15:19 UTC
Created attachment 105697 [details, diff]
mplayer-1.0-directfb.patch

New patch as the old one did not really fix the problem. I commited this patch to mplayer see http://bugzilla.mplayerhq.hu/show_bug.cgi?id=708 for details. We can wait for them to fix it upstream or use the patch right now.
Comment 5 Ben 2007-01-06 20:15:58 UTC
Created attachment 105699 [details]
mplayer-1.0_rc1.ebuild

The ebuild changed in portage so this is the new ebuild from portage including the patch
Comment 6 Anthony Knittel 2007-02-13 02:35:52 UTC
is this supposed to be patched in the ebuilds you get through portage?  i've done a --sync update a few times recently but every (new) version of mplayer still fails to find directfb_version.h and fails to build with dfbmga output.

do i need to do a manual patch, ie make a second ebuild folder and all that?  i'd rather just go through the normal portage tree if possible.
Comment 7 Ben 2007-02-13 10:49:34 UTC
I got the following message from the mplayer developers:

"As configure states multiple times, whoever uses --enable flags is on his own,
and current behaviour is as intended."

So its not going to be fixed upstream even though I dont know why they changed it between mplayer-pre8 and mplayer-rc1. It seems we either have to fix it in portage which has a low priority at the moment or everybody has to fix it themselfs. 

I just created a ebuild in my portage overlay that applys the patch. Give it a resonable high number so it wont be overwritten by each update to mplayer. I hope that this fix will be included in portage sometime.
Comment 8 Steve Dibb (RETIRED) gentoo-dev 2007-08-15 06:55:23 UTC
Is this still broken?  Please test against latest release (1.0.20070814) or mplayer's SVN

Thanks
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2007-12-12 22:33:05 UTC
Get back to us...