Package: xine-lib
Version: 1.1.21-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: origin-ubuntu raring ubuntu-patch

Dear Maintainer,

xine-lib FTBFS with libav 0.9 from experimental, with the following error:
....
libtool: compile:  i686-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../.. 
-I../../../include -I../../../include -I../../../src -I../../../src/xine-engine 
-I../../../src/xine-engine -I../../../src/xine-utils -I../../../src/input 
-I../../../src/input -I../../../lib -I../../../lib -I../../../src/dxr3 
-D_FORTIFY_SOURCE=2 -fvisibility=hidden -D_REENTRANT -D_FILE_OFFSET_BITS=64 
-DXINE_COMPILE -mtune=pentiumpro -O3 -pipe -fomit-frame-pointer 
-falign-functions=4 -falign-loops=4 -falign-jumps=4 -fexpensive-optimizations 
-fschedule-insns2 -ffast-math -finline-functions -Wpointer-arith -g -O2 
-fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security 
-Wall -Wchar-subscripts -Wnested-externs -Wcast-align -Wmissing-declarations 
-Wmissing-prototypes -Wmissing-format-attribute -Wno-pointer-sign -Wformat=2 
-Wno-format-zero-length -Wformat-security -Wstrict-aliasing=2 
-Werror=implicit-function-declaration -DNDEBUG -MT 
xineplug_decode_ff_la-ff_audio_decoder.lo -MD -MP -MF .deps/xi
 neplug_decode_ff_la-ff_audio_decoder.Tpo -c ff_audio_decoder.c  -fPIC -DPIC -o 
.libs/xineplug_decode_ff_la-ff_audio_decoder.o
ff_audio_decoder.c: In function 'ff_audio_decode':
ff_audio_decoder.c:389:3: warning: 'avcodec_decode_audio3' is deprecated 
(declared at /usr/include/libavcodec/avcodec.h:3568) [-Wdeprecated-declarations]
ff_audio_decoder.c: In function 'ff_audio_dispose':
ff_audio_decoder.c:619:5: error: implicit declaration of function 'av_free' 
[-Werror=implicit-function-declaration]
ff_audio_decoder.c:619:5: warning: nested extern declaration of 'av_free' 
[-Wnested-externs]
cc1: some warnings being treated as errors
make[5]: *** [xineplug_decode_ff_la-ff_audio_decoder.lo] Error 1
make[5]: se sale del directorio «/tmp/xine-lib-1.1.21/src/combined/ffmpeg»
make[4]: *** [all] Error 2


*** /tmp/tmpIj6V0l/bug_body

In Ubuntu, the attached patch was applied to achieve the following:
  * fix-libav9-ftbfs: fix FTBFS with libav9, by adding missing headers.

Thanks for considering the patch.


-- System Information:
Debian Release: wheezy/sid
  APT prefers quantal-updates
  APT policy: (500, 'quantal-updates'), (500, 'quantal-security'), (500, 
'quantal')
Architecture: i386 (i686)

Kernel: Linux 3.5.0-18-generic (SMP w/1 CPU core)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru xine-lib-1.1.21/debian/patches/fix-libav9-ftbfs xine-lib-1.1.21/debian/patches/fix-libav9-ftbfs
--- xine-lib-1.1.21/debian/patches/fix-libav9-ftbfs	1970-01-01 01:00:00.000000000 +0100
+++ xine-lib-1.1.21/debian/patches/fix-libav9-ftbfs	2012-11-13 06:36:55.000000000 +0100
@@ -0,0 +1,38 @@
+Description: Fix FTBFS with libav 0.9 because of missing headers and dropped
+ attribute. This patch is also compatible with libav 0.8.
+Author: Fabrice Coutadeur <[email protected]>
+
+--- a/src/combined/ffmpeg/ff_audio_decoder.c
++++ b/src/combined/ffmpeg/ff_audio_decoder.c
+@@ -44,6 +44,7 @@
+ #include "bswap.h"
+ #include "ffmpeg_decoder.h"
+ #include "ffmpeg_compat.h"
++#include <libavutil/mem.h>
+ 
+ #define AUDIOBUFSIZE (64 * 1024)
+ 
+--- a/src/combined/ffmpeg/ff_video_decoder.c
++++ b/src/combined/ffmpeg/ff_video_decoder.c
+@@ -44,6 +44,7 @@
+ #include "xineutils.h"
+ #include "ffmpeg_decoder.h"
+ #include "ff_mpeg_parser.h"
++#include <libavutil/mem.h>
+ 
+ #ifdef HAVE_FFMPEG_AVUTIL_H
+ #  include <postprocess.h>
+@@ -258,13 +259,6 @@
+   av_frame->linesize[1] = img->pitches[1];
+   av_frame->linesize[2] = img->pitches[2];
+ 
+-  /* We should really keep track of the ages of xine frames (see
+-   * avcodec_default_get_buffer in libavcodec/utils.c)
+-   * For the moment tell ffmpeg that every frame is new (age = bignumber) */
+-#ifdef AVFRAMEAGE
+-  av_frame->age = 256*256*256*64;
+-#endif
+-
+   av_frame->type= FF_BUFFER_TYPE_USER;
+ 
+ #ifdef AVCODEC_HAS_REORDERED_OPAQUE
diff -Nru xine-lib-1.1.21/debian/patches/series xine-lib-1.1.21/debian/patches/series
--- xine-lib-1.1.21/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ xine-lib-1.1.21/debian/patches/series	2012-11-13 06:41:07.000000000 +0100
@@ -0,0 +1 @@
+fix-libav9-ftbfs

Reply via email to