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

Bug 509298

Summary: media-video/mplayer2 fails to build with media-video/libav-10
Product: Gentoo Linux Reporter: Nikoli <nikoli>
Component: Current packagesAssignee: Nikoli <nikoli>
Status: RESOLVED FIXED    
Severity: normal CC: Martin.Jansa, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 509294    
Attachments: patch from debian

Description Nikoli 2014-05-01 20:50:05 UTC
screenshot.c: In function 'destroy_ctx':
screenshot.c:60:5: warning: 'avcodec_free_frame' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3139) [-Wdeprecated-declarations]
screenshot.c: In function 'screenshot_get_ctx':
screenshot.c:72:9: warning: 'avcodec_alloc_frame' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3114) [-Wdeprecated-declarations]
screenshot.c: In function 'write_png':
screenshot.c:113:5: warning: 'avcodec_get_frame_defaults' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3124) [-Wdeprecated-declarations]
screenshot.c:118:5: error: implicit declaration of function 'avcodec_encode_video' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make: *** [screenshot.o] Error 1
make: *** Waiting for unfinished jobs....
mplayer.c: In function 'main':
mplayer.c:4421:1: warning: label 'goto_enable_cache' defined but not used [-Wunused-label]
mplayer.c: In function 'parse_cfgfiles':
mplayer.c:848:22: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
mplayer.c: In function 'run_playloop':
mplayer.c:3470:23: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result]
Comment 1 Nikoli 2014-07-12 15:03:27 UTC
Created attachment 380612 [details, diff]
patch from debian

http://sources.debian.net/src/mplayer2/2.0-728-g2c378c7-2/debian/patches/ftbfs-libav10.patch

mplayer2 (2.0-728-g2c378c7-1) experimental; urgency=low

  * New upstream version
  * Add patch to fix FTBFS against libav10 (Closes: #739337)
  * Compile against libav10

 -- Reinhard Tartler <siretart@tauware.de>  Sat, 08 Mar 2014 19:20:06 -0500
Comment 2 Nikoli 2014-07-12 15:04:14 UTC
mplayer2-2.0_p20131009 builds and works fine for me with attached patch, please commit.
Comment 3 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2014-07-13 19:56:06 UTC
+  13 Jul 2014; Tom Wijsman <TomWij@gentoo.org>
+  +files/mplayer2-2.0_p20131009_support_libav10.patch,
+  mplayer2-2.0_p20131009.ebuild:
+  Added patch from Debian by Reinhard Tartler (siretart) to support Libav 10;
+  fixes bug #509298, proxied commit for Nikoli.

Thank you very much for your contribution.