Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 31376 - media-video/ffmpeg should use the X USE flag
Summary: media-video/ffmpeg should use the X USE flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 30067
  Show dependency tree
 
Reported: 2003-10-17 13:43 UTC by Wolfram Schlich (RETIRED)
Modified: 2004-05-14 00:35 UTC (History)
0 users

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


Attachments
Ebuild patch that fixes the ffmpeg unneccessary xlib dependency (ffmpeg-0.4.7.ebuild.include_xlib_fix,475 bytes, patch)
2004-05-14 00:35 UTC, d0der
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfram Schlich (RETIRED) gentoo-dev 2003-10-17 13:43:23 UTC
ffmpeg won't compile when 'sdl' is set and xfree isn't installed.

solution: add
'X? ( >=x11-base/xfree )'
to DEPEND and change
'use sdl || myconf="${myconf} --disable-ffplay"'
to
'use X && use sdl || myconf="${myconf} --disable-ffplay"'
because ffplay depends on the Xlib of XFree86

Reproducible: Always
Steps to Reproduce:
1. don't install xfree!
2. USE="sdl" emerge ffmpeg
Comment 1 Brian Jackson (RETIRED) gentoo-dev 2003-10-18 13:35:05 UTC
Actually ffplay includes X11/Xlib.h for no apparent reason, so if you just
remove that line from ffplay.c, you don't have problems, this is taken care
of in the 0.4.8 ebuild I just committed.
Comment 2 Wolfram Schlich (RETIRED) gentoo-dev 2003-10-18 13:40:49 UTC
Great :-)
Comment 3 d0der 2004-05-14 00:22:40 UTC
Well .. this should really have been fixed for 0.4.7 also - this bug still exist in the currently stable 0.4.7, see below:

gcc -Wl,--warn-common -rdynamic -g  -o ffplay_g ffplay.o cmdutils.o
-L./libavformat -lavformat -L./libavcodec -lavcodec -lm -lz -ldl -logg
-lvorbis -lvorbisenc -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread
ffplay.o(.text+0x634): In function main':
/home/tmp/portage/ffmpeg-0.4.7/work/ffmpeg-0.4.7/ffplay.c:1692: undefined
reference to XOpenDisplay'
ffplay.o(.text+0x66a):/home/tmp/portage/ffmpeg-0.4.7/work/ffmpeg-0.4.7/ffplay.c:1696:
undefined reference to XCloseDisplay'
collect2: ld returned 1 exit status
make: *** [ffplay_g] Error 1

Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.25-gentoo-r2)
=================================================================
System uname: 2.4.25-gentoo-r2 i686 VIA C3 Ezra
Gentoo Base System version 1.4.9
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=i586 -O3 -pipe -fomit-frame-pointer -m3dnow -mmmx"
CHOST="i586-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://mirror.pudas.net/gentoo ftp://ftp.du.se/pub/os/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/home/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow alsa apache2 berkdb cdr crypt curl directfb dvd dvdr emacs encode fbcon gd gdbm gif imap java jpeg junit jython libg++ libwww mad maildir mmx mpeg mule mysql ncurses nls nojoystick oav odbc oggvorbis pam perl png postgres python readline regexp samba sdl slang spell ssl svga tcpd truetype vhosts x86 xml xml2 xvid zlib"
Comment 4 Wolfram Schlich (RETIRED) gentoo-dev 2004-05-14 00:33:50 UTC
Brian, have you contacted the ffmpeg developers regarding this issue? They might want to fix it upstream :)
Comment 5 d0der 2004-05-14 00:35:36 UTC
Created attachment 31396 [details, diff]
Ebuild patch that fixes the ffmpeg unneccessary xlib dependency

This is the same fix already in 0.4.8