On Sun, Aug 25, 2013 at 01:50:21PM +0200, David Suárez wrote:
> Source: dvbcut
> Version: 0.5.4+svn178-2
> Severity: serious
> Tags: jessie sid
> User: [email protected]
> Usertags: qa-ftbfs-20130825 qa-ftbfs
> Justification: FTBFS on amd64
>
> Hi,
>
> During a rebuild of all packages in sid, your package failed to build on
> amd64.
>
> Related to current libav9 transition (see #706798).
>
> Relevant part (hopefully):
> > g++ -g -O2 -Wall -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
> > -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
> > -DPACKAGE_URL=\"\" -DHAVE_LIB_SWSCALE=1 -DHAVE_LIB_MAD=1 -DHAVE_LIB_A52=1
> > -DHAVE_LIB_AO=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
> > -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
> > -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_AO_AO_H=1
> > -DHAVE_MAD_H=1 -DHAVE_STDINT_H=1 -DHAVE_A52DEC_A52_H=1 -DHAVE_STDLIB_H=1
> > -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1
> > -D__STDC_LIMIT_MACROS=1 -D__STDC_CONSTANT_MACROS=1 -D_FILE_OFFSET_BITS=64
> > -I/usr/include -I/usr/include/libavcodec -I/usr/include/libavformat
> > -I/usr/include/libswscale -I/include -DQT_SHARED -DQT3_SUPPORT
> > -I/usr/include/qt4 -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtCore
> > -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtNetwork
> > -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtXml -I. -I/usr/include
> > -I/usr/include/libavcodec -I/usr/include/libavformat
> > -I/usr/include/libswscale -I/include -DQT_SHARED -DQT3_SUPPORT
> > -I/usr/include/qt4 -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtCore
> > -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtNetwork
> > -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtXml -I. -c -o avframe.o
> > avframe.cpp
> > avframe.cpp: In destructor 'avframe::~avframe()':
> > avframe.cpp:78:14: error: 'av_free' was not declared in this scope
> > av_free(f);
> > ^
> > avframe.cpp: In member function 'QImage avframe::getqimage(bool, double)':
> > avframe.cpp:126:21: error: 'av_free' was not declared in this scope
> > av_free(avframergb);
Patch attached.
Cheers,
Moritz
diff -aur dvbcut-0.5.4+svn178.orig/src/avframe.cpp dvbcut-0.5.4+svn178/src/avframe.cpp
--- dvbcut-0.5.4+svn178.orig/src/avframe.cpp 2013-07-22 18:25:56.000000000 +0200
+++ dvbcut-0.5.4+svn178/src/avframe.cpp 2013-07-22 18:34:07.532000000 +0200
@@ -22,6 +22,7 @@
#include <cstdlib>
#include <cstdio>
#include "avframe.h"
+#include <libavutil/mem.h>
#ifdef HAVE_LIB_SWSCALE
avframe::avframe() : tobefreed(0),w(0),h(0),dw(0),pix_fmt(),img_convert_ctx(0)
Move the AV_OPT_TYPE_INT macro before the includes, it's referenced by
the included headers in libav 9
Debian Bug #720805
diff -aur lives-2.0.5~ds0.orig/lives-plugins/plugins/decoders/mpegts_decoder.c lives-2.0.5~ds0/lives-plugins/plugins/decoders/mpegts_decoder.c
--- lives-2.0.5~ds0.orig/lives-plugins/plugins/decoders/mpegts_decoder.c 2013-03-13 04:33:33.000000000 +0100
+++ lives-2.0.5~ds0/lives-plugins/plugins/decoders/mpegts_decoder.c 2013-07-22 20:31:37.604000000 +0200
@@ -52,6 +52,9 @@
#include "../../../libweed/weed-compat.h"
#endif
+#ifndef AV_OPT_TYPE_INT
+#define AV_OPT_TYPE_INT FF_OPT_TYPE_INT
+#endif
#include "decplugin.h"
@@ -69,9 +72,6 @@
# define offsetof(T, F) ((unsigned int)((char *)&((T *)0)->F))
#endif
-#ifndef AV_OPT_TYPE_INT
-#define AV_OPT_TYPE_INT FF_OPT_TYPE_INT
-#endif