Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 472966 - media-libs/chromaprint-0.7 with media-video/ffmpeg-9999 - ?
Summary: media-libs/chromaprint-0.7 with media-video/ffmpeg-9999 - ?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: ffmpeg-2.0
  Show dependency tree
 
Reported: 2013-06-11 10:19 UTC by ci3nte
Modified: 2014-01-14 10:06 UTC (History)
1 user (show)

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


Attachments
original patch with new extension (chromaprint-0.7-ffmpeg.patch,2.08 KB, patch)
2013-06-11 10:20 UTC, ci3nte
Details | Diff
build.log from chromaprint-0.7 (chromaprint-build.log,58.41 KB, patch)
2013-06-12 15:38 UTC, ci3nte
Details | Diff
Chromaprint support for ffmpeg2 (chromaprint-1.0-ffmpeg2.patch,546 bytes, patch)
2013-09-08 21:30 UTC, Andrew John Hughes
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ci3nte 2013-06-11 10:19:28 UTC
The current FFMpeg Git-Head includes several API-changes, so the tools and examples of chromaprint does not compile anymore. It is related to chromaprint with the useflag tools only.

Reproducible: Always

Steps to Reproduce:
1. Activate chromaprint tools use-flag.
2. Update to ffmpeg-9999.
3. Try to compile chromaprint.
Actual Results:  
Compilation fails.

Expected Results:  
Compilation without problems.

I've patched it in a very ugly way, but it works for me. The patch is attached. It's an extension of the available ffmpeg-patch.
Comment 1 ci3nte 2013-06-11 10:20:49 UTC
Created attachment 350736 [details, diff]
original patch with new extension
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-11 13:50:00 UTC
1) Please post your `emerge --info' output in a comment.
2) Please attach the entire build log to this bug report.
Comment 3 ci3nte 2013-06-11 14:27:53 UTC
I'm not on the PC, where I have ffmpeg-9999 installed, so I post the requested outputs later.

Here is the ffmpeg-patch, that removes the constant AVCODEC_MAX_AUDIO_FRAME_SIZE:
http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=5d606863c353553488e88dfd89ea5571268d9dca

and here is the sourcecode from chromaprint, that wants to use exactly this constant:
https://bitbucket.org/acoustid/chromaprint/src/dd51f8e571227fc4bb8f09e382e4258ccea46757/src/ext/ffmpeg_decoder.h?at=master
(line 56)

It seems, that Chromaprint-Upstream has fixed the problem in fpcalc by itself:
https://bitbucket.org/acoustid/chromaprint/diff/examples/fpcalc.c?diff2=a6d27bcf15c5&at=master
Comment 4 ci3nte 2013-06-12 15:38:43 UTC
Created attachment 350832 [details, diff]
build.log from chromaprint-0.7
Comment 5 ci3nte 2013-06-12 15:42:34 UTC
Here is my emerge --info (why do you need it? it has nothing to do with the compilation failure):
$ emerge --info
Portage 2.1.12.2 (default/linux/amd64/13.0/desktop/kde, gcc-4.6.3, glibc-2.15-r3, 3.10.0-rc5 x86_64)
=================================================================
System uname: Linux-3.10.0-rc5-x86_64-Intel-R-_Core-TM-_i5_CPU_660_@_3.33GHz-with-gentoo-2.2
KiB Mem:    12166320 total,   7920836 free
KiB Swap:    6142972 total,   6142972 free
Timestamp of tree: Wed, 12 Jun 2013 13:15:01 +0000
ld GNU ld (GNU Binutils) 2.22
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.5, 3.3.2
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo kde multimedia armagetron ladi piczu roslin gamerlay java-overlay stormfront calculate seden qt bleeding-edge aluco sunrise mistafunk proaudio my_local_overlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /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/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirror.netcologne.de/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://gentoo.tiscali.nl/"
LANG="de_DE.UTF8"
LC_ALL="de_DE.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/kde /var/lib/layman/multimedia /var/lib/layman/armagetron /var/lib/layman/ladi /var/lib/layman/piczu /var/lib/layman/roslin /var/lib/layman/gamerlay /var/lib/layman/java-overlay /var/lib/layman/stormfront /var/lib/layman/calculate /var/lib/layman/seden /var/lib/layman/qt /var/lib/layman/bleeding-edge /var/lib/layman/aluco /var/lib/layman/sunrise /var/lib/layman/mistafunk /var/lib/layman/pro-audio /usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 bash-completion berkdb bluray branding bzip2 cairo cdda cdr celt cli consolekit cracklib crypt cups cxx dbus declarative dri dts dv dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran gdbm gif gpm gtk handbook hddtemp iconv icq ipod ipv6 jabber jack java java6 jingle jpeg kde kipi ladspa lame lash latex lcms ldap libnotify lirc lm-sensors mad matroska matrox midi mime mmx mmxext mng modules mozilla mp3 mp4 mpeg mplayer mudflap multilib musepack musicbrainz ncurses nls nptl ogg opengl openmp opus pam pango pcre pdf phonon plasma png policykit portaudio posix ppds qt3-support qt3support qt4 quicktime readline rss sdl semantic-desktop session sound sox speex spell sse sse2 ssl ssse3 startup-notification svg tcpd theora threads tiff timidity truetype udev udisks unicode upower usb v4l2 vaapi vcd vdpau vim-syntax vorbis vpx wavpack win32codecs wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en en_US en_GB" LIRC_DEVICES="udp" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python3_3" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="r600 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 6 Andrew John Hughes 2013-09-08 21:30:29 UTC
Created attachment 358322 [details, diff]
Chromaprint support for ffmpeg2
Comment 7 Andrew John Hughes 2013-09-08 21:32:44 UTC
chromaprint 1.0 has now been released and will build with the existing boost and ffmpeg patches, and the libav9 patch replaced with https://bugs.gentoo.org/attachment.cgi?id=358322

See also https://bitbucket.org/gnu_andrew/fixes-overlay/commits/42f95c0e54eec95dbfd8f9641771086403196e74
Comment 9 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-01-14 10:06:51 UTC
+  14 Jan 2014; Lars Wendler <polynomial-c@gentoo.org> chromaprint-1.1.ebuild,
+  +files/chromaprint-1.1-ffmpeg2.patch:
+  Fixed compilation with ffpmeg-2 when "tools" USE flag is enabled (bug
+  #472966).
+