Bug#1004811: survex: FTBFS with ffmpeg 5.0

2022-02-20 Thread Olly Betts
Control: tags -1 + fixed-upstream

On Tue, Feb 01, 2022 at 11:19:04PM +0100, Sebastian Ramacher wrote:
> survex FTBFS with ffmpeg 5.0 in experimental:

I've pushed a fix for this upstream (commit
44c4b7054885c2a5f25692547bf45fa33bcba1e8).

It looks like there are a huge number of packages still blocking the
transition so my plan is to just pick up this fix with the next upstream
release in the interests of avoiding creating more things to do for
myself.

Cheers,
Olly



Bug#1004811: survex: FTBFS with ffmpeg 5.0

2022-02-01 Thread Sebastian Ramacher
Source: survex
Version: 1.4.1-1
Severity: important
X-Debbugs-Cc: sramac...@debian.org
Tags: sid bookworm ftbfs
Usertags: ffmpeg5.0

survex FTBFS with ffmpeg 5.0 in experimental:

g++ -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -W 
-Wunused -Wshadow -Wpointer-arith  -Wwrite-strings -Wcast-align  
-I/usr/include/x86_64-linux-gnu 
-I/usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0 
-D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -g -O2 
-ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat 
-Werror=format-security -c -o aven-hpgl.o `test -f 'hpgl.cc' || echo 
'./'`hpgl.cc
moviemaker.cc: In member function ‘bool MovieMaker::Open(FILE*, const char*, 
int, int)’:
moviemaker.cc:135:32: error: invalid conversion from ‘const AVOutputFormat*’ to 
‘AVOutputFormat*’ [-fpermissive]
  135 | AVOutputFormat * fmt = oc->oformat;
  |^~~
  ||
  |const AVOutputFormat*
moviemaker.cc:142:42: error: invalid conversion from ‘const AVCodec*’ to 
‘AVCodec*’ [-fpermissive]
  142 | AVCodec *codec = avcodec_find_encoder(fmt->video_codec);
  |  ^~
  |  |
  |  const AVCodec*
moviemaker.cc:156:15: error: ‘avcodec_alloc_context3’ was not declared in this 
scope; did you mean ‘avio_alloc_context’?
  156 | context = avcodec_alloc_context3(codec);
  |   ^~
  |   avio_alloc_context
moviemaker.cc:157:12: error: invalid use of incomplete type ‘struct 
AVCodecContext’
  157 | context->codec_id = fmt->video_codec;
  |^~
In file included from moviemaker.cc:59:
moviemaker.h:32:8: note: forward declaration of ‘struct AVCodecContext’
   32 | struct AVCodecContext;
  |^~
moviemaker.cc:158:12: error: invalid use of incomplete type ‘struct 
AVCodecContext’
  158 | context->width = width;
  |^~
In file included from moviemaker.cc:59:
moviemaker.h:32:8: note: forward declaration of ‘struct AVCodecContext’
   32 | struct AVCodecContext;
  |^~
moviemaker.cc:159:12: error: invalid use of incomplete type ‘struct 
AVCodecContext’
  159 | context->height = height;
  |^~
In file included from moviemaker.cc:59:
moviemaker.h:32:8: note: forward declaration of ‘struct AVCodecContext’
   32 | struct AVCodecContext;
  |^~
moviemaker.cc:162:12: error: invalid use of incomplete type ‘struct 
AVCodecContext’
  162 | context->time_base = video_st->time_base;
  |^~
In file included from moviemaker.cc:59:
moviemaker.h:32:8: note: forward declaration of ‘struct AVCodecContext’
   32 | struct AVCodecContext;
  |^~
moviemaker.cc:163:12: error: invalid use of incomplete type ‘struct 
AVCodecContext’
  163 | context->bit_rate = width * height * (4 * 0.07) * 
context->time_base.den / context->time_base.num;
  |^~
In file included from moviemaker.cc:59:
moviemaker.h:32:8: note: forward declaration of ‘struct AVCodecContext’
   32 | struct AVCodecContext;
  |^~
moviemaker.cc:163:62: error: invalid use of incomplete type ‘struct 
AVCodecContext’
  163 | context->bit_rate = width * height * (4 * 0.07) * 
context->time_base.den / context->time_base.num;
  |  ^~
In file included from moviemaker.cc:59:
moviemaker.h:32:8: note: forward declaration of ‘struct AVCodecContext’
   32 | struct AVCodecContext;
  |^~
moviemaker.cc:163:87: error: invalid use of incomplete type ‘struct 
AVCodecContext’
  163 | context->bit_rate = width * height * (4 * 0.07) * 
context->time_base.den / context->time_base.num;
  | 
  ^~
In file included from moviemaker.cc:59:
moviemaker.h:32:8: note: forward declaration of ‘struct AVCodecContext’
   32 | struct AVCodecContext;
  |^~
moviemaker.cc:164:12: error: invalid use of incomplete type ‘struct 
AVCodecContext’
  164 | context->bit_rate_tolerance = context->bit_rate;
  |^~
In file included from moviemaker.cc:59:
moviemaker.h:32:8: note: forward declaration of ‘struct AVCodecContext’
   32 | struct AVCodecContext;
  |^~
moviemaker.cc:164:42: error: invalid use of incomplete type ‘struct 
AVCodecContext’
  164 | context->bit_rate_tolerance = context->bit_rate;
  |  ^~
In file included from moviemaker.cc:59:
moviemaker.h:32:8: note: forward declaration of ‘struct AVCodecContext’
   32 | struct AVCodecContext;
  |^~
moviemaker.cc:165:12: error: