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

Bug 363197

Summary: media-plugins/audacious-plugins-2.4.4-r1: ffmpeg useflag doesn't work with media-video/ffmpeg-0.6_p28715
Product: Gentoo Linux Reporter: tokiclover <tokiclover>
Component: Current packagesAssignee: Tony Vroon (RETIRED) <chainsaw>
Status: RESOLVED FIXED    
Severity: normal CC: media-video, sound
Priority: Normal    
Version: 10.0   
Hardware: All   
OS: Linux   
URL: https://forums.gentoo.org/viewtopic-p-6649259.html#6649259
Whiteboard:
Package list:
Runtime testing required: ---

Description tokiclover 2011-04-11 22:36:15 UTC
I have an issue with audacious-plugins-2.4.4-r1 which doesn't compile ffaudio.so. And even with an audacious-plugins-2.4.4-r1.tbz2 tarball package, compiled with alsa useflag, it doesn't work: I got the "no decoder" for .ape files. I can't understand why it doesn't work, that package worked pretty well in my system a while back, and everything was the same minus a world update and USE="alsa hal" which became USE="-hal -alsa" to get rid of alsa and hal[d]. It should basically work because I use solely oss for output anyway. 

Reproducible: Always

Steps to Reproduce:
1. emerge =audacious-plugins-2.4.4-r1 or ebuild audacious-plugins-2.4.4-r1.ebuild configure
2.
3.
Actual Results:  
* USE: aac amd64 cdda cue elibc_glibc ffmpeg flac ipv6 kernel_linux lame libnotify mp3 multilib nls oss sdl sse2 userland_GNU vorbis wavpack
* FEATURES: sandbox
>>> Unpacking source...
>>> Unpacking audacious-plugins-2.4.4.tgz to /var/tmp/portage/media-plugins/audacious-plugins-2.4.4-r1/work
>>> Source unpacked in /var/tmp/portage/media-plugins/audacious-plugins-2.4.4-r1/work
>>> Preparing source in /var/tmp/portage/media-plugins/audacious-plugins-2.4.4-r1/work/audacious-plugins-2.4.4 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-plugins/audacious-plugins-2.4.4-r1/work/audacious-plugins-2.4.4 ...
* econf: updating audacious-plugins-2.4.4/config.sub with /usr/share/gnuconfig/config.sub
* econf: updating audacious-plugins-2.4.4/config.guess with /usr/share/gnuconfig/config.guess
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --enable-chardet --enable-dbus --enable-modplug --enable-neon --disable-projectm --disable-projectm-1.0 --disable-adplug --enable-aac --disable-alsa --disable-bluetooth --disable-amidiplug-alsa --disable-coreaudio --disable-dockalbumart --disable-bs2b --enable-cdaudio --enable-cue --enable-ffaudio --enable-flacng --disable-amidiplug-flsyn --enable-filewriter_flac --enable-ipv6 --disable-jack --disable-gnomeshortcuts --enable-filewriter_mp3 --enable-notify --disable-resample --disable-lirc --disable-mms --enable-mp3 --disable-amidiplug --disable-mtp_up --enable-nls --enable-oss --disable-pulse --disable-scrobbler --enable-paranormal --disable-sid --disable-sndfile --enable-sse2 --enable-vorbis --enable-filewriter_vorbis --enable-wavpack
...
*** libsndfile extensions disabled per user request ***
checking for NEED_AVCORE... yes
checking for FFMPEG... no
...
Input Plugins
------------- 
FFaudio (ffaudio): no 

Expected Results:  
checking for FFMPEG... yes
FFaudio (ffaudio): yes

his is the audacious-plugins version check for ffmpeg in configure.ac:

if test $enable_ffaudio = yes ; then
PKG_CHECK_MODULES([NEED_AVCORE], [libavcodec >= 52.94.3],
[have_new_ffmpeg=yes], [have_new_ffmpeg=no])

if test $have_new_ffmpeg = yes ; then
PKG_CHECK_MODULES([FFMPEG],
[libavcodec >= 52.20.0 libavcore >= 0.12.0 libavformat >= 52.31.0 libavutil >= 49.15.0],
[have_ffaudio=yes], [have_ffaudio=no])
else
PKG_CHECK_MODULES([FFMPEG],
[libavcodec >= 52.20.0 libavformat >= 52.31.0 libavutil >= 49.15.0],
[have_ffaudio=yes], [have_ffaudio=no])
fi
fi

if test "x$have_ffaudio" = "xyes"; then
INPUT_PLUGINS="$INPUT_PLUGINS ffaudio"
fi

Here is the contains of some useful pkg-config of ffmpeg-0.6_p28715:

# grep -i version /usr/lib/pkgconfig/libavcodec.pc
Version: 52.116.0
# grep -i version /usr/lib/pkgconfig/libavformat.pc
Version: 52.104.0
# grep -i version /usr/lib/pkgconfig/libavutil.pc
Version: 50.40.0

And here is the contains of emerge --info:

Portage 2.1.9.45 (default/linux/amd64/10.0/desktop, gcc-4.5.2, glibc-2.13-r2, 2.6.38-pf2 x86_64)
=================================================================
System uname: Linux-2.6.38-pf2-x86_64-Intel-R-_Core-TM-2_CPU_4300_@_1.80GHz-with-gentoo-2.0.2
Timestamp of tree: Sat, 02 Apr 2011 13:15:01 +0000
app-shells/bash: 4.2_p8
dev-java/java-config: 2.1.11-r3
dev-lang/python: 2.6.6-r2, 2.7.1-r1, 3.1.3-r1
dev-util/cmake: 2.8.4
sys-apps/baselayout: 2.0.2
sys-apps/openrc: 0.8.0
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.13, 2.68
sys-devel/automake: 1.10.3, 1.11.1
sys-devel/binutils: 2.21
sys-devel/gcc: 4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82
virtual/os-headers: 2.6.38 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config/kdm /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/skel /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/mnt/lkp-d/dstf"
FEATURES="assume-digests binpkg-logs buildpkg distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://ftp.heanet.ie/pub/gentoo/ http://mirror.netcologne.de/gentoo/ http://ftp.cc.uoc.gr/mirrors/linux/gentoo/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://ftp.klid.dk/gentoo/ ftp://mirror.qubenet.net/mirror/gentoo/ ftp://mirror.cambrium.nl/pub/os/linux/gentoo/"
LANG="C"
LDFLAGS="-Wl,-O1,--as-needed"
LINGUAS="en fr"
MAKEOPTS="-j3"
PKGDIR="/mnt/lkp-d/pkg"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /var/lib/layman/multimedia /var/lib/layman/oss-overlay"
SYNC="rsync://rsync2.at.gentoo.org/gentoo-portage"
USE="/usr/bin/vim X a52 aac aalib acl acpi aiglx amd64 audiofile aufs aufs2 avahi berkdb bidi bluetooth bzip2 cairo cdb cdda cddb cdparanoia cdr cjk cli consolekit cracklib crypt css cue cups cxx dbus dga directfb dri dts dv dvd dvdr dvi emboss encode exif fam fame fat fbcon ffmpeg firefox flac fonconfig fortran freetype gdbm gdu gif gimp gimpprint gmp gnutls gphoto2 gpm gsm gstreamer gtk gtk%* gtk3 gzip hardened hddtemp hfs iconv icu ieee1394 imap inotify ipv6 irc java java6 javascript jfs jpeg jpeg2k kerberos lame laptop lcd lcms ldap libnotify lm_sensors lzma lzo mac mad mail matroska mikmod mjpeg mmx mng modules mp3 mp4 mpeg mplayer mudflap multilib musepack ncurses network networkmanager nls nntp nptl nptlonly ntfs ogg openexr opengl openmp oss oss4 pam pango pcre pda pdf perl png policykit ppds pppd python qt3support qt4 rdesktop readline reiserfs rss samba scanner sdl session smp spell squashfs sse sse2 sse3 ssl ssse3 startup-notification svg sysfs syslog tcpd theora threads tiff truetype udev unicode usb v4l2 vaapi vdpau visualization vorbis vpx wavpack wifi wmf x264 xattr xcb xfs xft xine xinerama xml xorg xpm xprint xulrunner xv xvid zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en fr" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa nvidia nv intel radeon fglrx" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Rafał Mużyło 2011-04-11 22:49:20 UTC
The problem seems to be, that ffmpeg-0.6_p28715 doesn't seem to have/install libavcore.pc - this, combined with high enough libavcodec version, pushes the check into wrong branch.
A comment from the video herd if this affects libav too would be useful.
Comment 2 tokiclover 2011-04-14 19:08:33 UTC
I have the same issue with libav-0.7_pre20110327, I have the same 'FFaudio (ffaudio): no' in the configure phase. 
And here are the versions of some components of the package:

grep -i version /usr/lib/pkgconfig/libavcodec.pc
Version: 52.115.0
grep -i version /usr/lib/pkgconfig/libavformat.pc
Version: 52.103.0
grep -i version /usr/lib/pkgconfig/libavutil.pc
Version: 50.39.0

Notice that libav-0.7_pre20110327 seems to be older than ffmpeg-0.6_p28715 despite the version numbers.
Comment 3 Rafał Mużyło 2011-04-22 01:16:45 UTC
Problem is fixed in audacious-plugins 2.5.0 - the check was modified.
Comment 4 Tony Vroon (RETIRED) gentoo-dev 2011-04-22 10:26:42 UTC
(In reply to comment #3)
> Problem is fixed in audacious-plugins 2.5.0 - the check was modified.

That is good news. Has the problematic version of ffmpeg been stabled? If it has, perhaps an early stable of 2.5.0 is in order. If not, then I would like to resolve this bug as fixed.
Comment 5 Tony Vroon (RETIRED) gentoo-dev 2011-07-15 13:25:22 UTC
Assuming this is fixed; no response from reporter.