#1013419 vcmi FTBFS with ffmpeg 5.0.1

Package:
src:vcmi
Source:
vcmi
Submitter:
Adrian Bunk
Date:
2022-07-04 13:39:04 UTC
Severity:
serious
Tags:
#1013419#5
Date:
2022-06-23 10:50:17 UTC
From:
To:
https://buildd.debian.org/status/logs.php?pkg=vcmi&ver=0.99%2Bdfsg%2Bgit20190113.f06c8a87-2%2Bb2

...
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp: In constructor ‘CVideoPlayer::CVideoPlayer()’:
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:79:9: error: ‘av_register_all’ was not declared in this scope
   79 |         av_register_all();
      |         ^~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp: In member function ‘bool CVideoPlayer::open(std::string, bool, bool, bool)’:
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:130:41: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
  130 |                 if (format->streams[i]->codec->codec_type==AVMEDIA_TYPE_VIDEO)
      |                                         ^~~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:142:49: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
  142 |         codecContext = format->streams[stream]->codec;
      |                                                 ^~~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:145:50: error: invalid use of incomplete type ‘struct AVCodecContext’
  145 |         codec = avcodec_find_decoder(codecContext->codec_id);
      |                                                  ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.h:61,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.cpp:12:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:154:14: error: ‘avcodec_open2’ was not declared in this scope; did you mean ‘avio_open2’?
  154 |         if ( avcodec_open2(codecContext, codec, nullptr) < 0 )
      |              ^~~~~~~~~~~~~
      |              avio_open2
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:171:38: error: invalid use of incomplete type ‘struct AVCodecContext’
  171 |                 pos.w  = codecContext->width;
      |                                      ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.h:61,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.cpp:12:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:172:37: error: invalid use of incomplete type ‘struct AVCodecContext’
  172 |                 pos.h = codecContext->height;
      |                                     ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.h:61,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.cpp:12:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:193:50: error: invalid use of incomplete type ‘struct AVCodecContext’
  193 |                 sws = sws_getContext(codecContext->width, codecContext->height, codecContext->pix_fmt,
      |                                                  ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.h:61,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.cpp:12:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:193:71: error: invalid use of incomplete type ‘struct AVCodecContext’
  193 |                 sws = sws_getContext(codecContext->width, codecContext->height, codecContext->pix_fmt,
      |                                                                       ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.h:61,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.cpp:12:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:193:93: error: invalid use of incomplete type ‘struct AVCodecContext’
  193 |                 sws = sws_getContext(codecContext->width, codecContext->height, codecContext->pix_fmt,
      |                                                                                             ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.h:61,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.cpp:12:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:224:50: error: invalid use of incomplete type ‘struct AVCodecContext’
  224 |                 sws = sws_getContext(codecContext->width, codecContext->height, codecContext->pix_fmt,
      |                                                  ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.h:61,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.cpp:12:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:224:71: error: invalid use of incomplete type ‘struct AVCodecContext’
  224 |                 sws = sws_getContext(codecContext->width, codecContext->height, codecContext->pix_fmt,
      |                                                                       ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.h:61,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.cpp:12:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:224:93: error: invalid use of incomplete type ‘struct AVCodecContext’
  224 |                 sws = sws_getContext(codecContext->width, codecContext->height, codecContext->pix_fmt,
      |                                                                                             ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.h:61,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.cpp:12:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp: In member function ‘virtual bool CVideoPlayer::nextFrame()’:
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:270:33: error: ‘avcodec_decode_video2’ was not declared in this scope
  270 |                                 avcodec_decode_video2(codecContext, frame, &frameFinished, &packet);
      |                                 ^~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:275:41: error: ‘AVPicture’ was not declared in this scope; did you mean ‘CPicture’?
  275 |                                         AVPicture pict;
      |                                         ^~~~~~~~~
      |                                         CPicture
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:278:66: error: ‘pict’ was not declared in this scope
  278 |                                                 avpicture_alloc(&pict, AV_PIX_FMT_YUV420P, pos.w, pos.h);
      |                                                                  ^~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:278:49: error: ‘avpicture_alloc’ was not declared in this scope
  278 |                                                 avpicture_alloc(&pict, AV_PIX_FMT_YUV420P, pos.w, pos.h);
      |                                                 ^~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:281:82: error: invalid use of incomplete type ‘struct AVCodecContext’
  281 |                                                                   0, codecContext->height, pict.data, pict.linesize);
      |                                                                                  ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.h:61,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.cpp:12:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:286:49: error: ‘avpicture_free’ was not declared in this scope; did you mean ‘av_dict_free’?
  286 |                                                 avpicture_free(&pict);
      |                                                 ^~~~~~~~~~~~~~
      |                                                 av_dict_free
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:290:49: error: ‘pict’ was not declared in this scope
  290 |                                                 pict.data[0] = (ui8 *)dest->pixels;
      |                                                 ^~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:294:82: error: invalid use of incomplete type ‘struct AVCodecContext’
  294 |                                                                   0, codecContext->height, pict.data, pict.linesize);
      |                                                                                  ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.h:61,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.cpp:12:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:299:25: error: ‘av_free_packet’ was not declared in this scope; did you mean ‘av_new_packet’?
  299 |                         av_free_packet(&packet);
      |                         ^~~~~~~~~~~~~~
      |                         av_new_packet
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp: In member function ‘virtual void CVideoPlayer::close()’:
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:381:17: error: ‘avcodec_close’ was not declared in this scope; did you mean ‘avio_close’?
  381 |                 avcodec_close(codecContext);
      |                 ^~~~~~~~~~~~~
      |                 avio_close
make[4]: *** [client/CMakeFiles/vcmiclient.dir/build.make:919: client/CMakeFiles/vcmiclient.dir/CVideoHandler.cpp.o] Error 1

#1013419#10
Date:
2022-06-24 10:38:02 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
vcmi, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1013419@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Johannes Schauer Marin Rodrigues <josch@debian.org> (supplier of updated vcmi package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Fri, 24 Jun 2022 12:06:26 +0200
Source: vcmi
Architecture: source
Version: 0.99+dfsg+git20220621.54fab9f0-1
Distribution: experimental
Urgency: medium
Maintainer: Debian Games Team <pkg-games-devel@lists.alioth.debian.org>
Changed-By: Johannes Schauer Marin Rodrigues <josch@debian.org>
Closes: 991460 1013419
Changes:
 vcmi (0.99+dfsg+git20220621.54fab9f0-1) experimental; urgency=medium
 .
   [ Johannes Schauer Marin Rodrigues ]
   * Still no release, so we package the latest git commit.
      - link with tbb (closes: #991460)
      - compatibility with ffmpeg 5.0.1 (closes: #1013419)
   * refresh patches
   * fix my name
   * run wrap-and-sort -astb
   * debian/control: add B-D on libtbb-dev, libluajit-5.1-dev, googletest, libgmock-dev
   * debian/rules: disable tests to prevent compilation errors
Checksums-Sha1:
 beb2979b3ccfbfc9ac335f06075dcec91db511aa 2672 vcmi_0.99+dfsg+git20220621.54fab9f0-1.dsc
 77c27afe53f1b4a6f9ba72ae07633a7379fa8384 3173518 vcmi_0.99+dfsg+git20220621.54fab9f0.orig.tar.gz
 a4c61f95aa12138b8c2eead59f511f758c7e074f 8632 vcmi_0.99+dfsg+git20220621.54fab9f0-1.debian.tar.xz
Checksums-Sha256:
 860116e3a1fbe43456cf311484dc8d74aaf89778727f38fbbed7e4caca0a98ac 2672 vcmi_0.99+dfsg+git20220621.54fab9f0-1.dsc
 85d270c5a35afe478dddb37fef3670ffd077f3c604ef7d00f7b360f9bfb75a4a 3173518 vcmi_0.99+dfsg+git20220621.54fab9f0.orig.tar.gz
 8e28856209d6c11cff6ff14d33ff91068303039d707ac4a661155643908e13f0 8632 vcmi_0.99+dfsg+git20220621.54fab9f0-1.debian.tar.xz
Files:
 8bee4d7e6f01a55f77448c6f9b185db9 2672 contrib/games optional vcmi_0.99+dfsg+git20220621.54fab9f0-1.dsc
 0a32ec4e859bb69d23e35a7683bf7215 3173518 contrib/games optional vcmi_0.99+dfsg+git20220621.54fab9f0.orig.tar.gz
 eb21d1944d9a03d9de9931b2b58aff1e 8632 contrib/games optional vcmi_0.99+dfsg+git20220621.54fab9f0-1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEElFhU6KL81LF4wVq58sulx4+9g+EFAmK1jqcRHGpvc2NoQGRl
Ymlhbi5vcmcACgkQ8sulx4+9g+E+0BAApbIBDEu6xL8IzI7zaJFr5Y4IoYkI9u6U
ANseINtY/hi6OyC6dKNLp6lcXO+dgF65LrgWwtFxoM8GTvh9In/niffPIHrnMMhL
RnkLTp+eTRPKQHy1CYMjiJzVxkvtBr01cnFToN5MuymJl31nH+Gkb2U4EWPbfjny
cjq+Ou4fPee4U+QucM2XL57MqEqqr15vKHsWBCSelB9cR55TNTxSCSqtdgelEE1S
2WZkN0XUCKmENd5/wnxbvhL0otG5h16iy1ulrhM4wnw1rqYzEywdbg1DtVCZzlqA
/1ZLGHiaE5KuFduUdaxATYK7d0kci5c6eSuLfpPvvyAFj8p3vvLENJVXAUtTALye
cKkZogWUVTVgl1dB1+BNFshm3mluG/3hN6Ld+ku9yFfeojZ3qCk+CNibEH93LuGY
TPE4oDTzWk60926B4FqRNPRzTkEpLFBc0UNLQjpj7bk2bq2sL79EYJxj/THwV8z6
Vw1PGV6MaG7WAfxS417g3ytFXKMitw1xZ5qegm5SDkUvV5gGKrz3rrHUqDHTUIwS
QvMPIGRYtxnHliGV0h7W2Jn3LOY1HViXJYDRCHheHFC+Eac2OpkWaMiIHbukraGY
0c2a0KP1U5wLxJQ2Wd0a+4GzF/47bgBN/wSTNaInsQ4ERwaQDgOMkJI7r8wBkPwd
mE4eTFJ2E8w=
=WjZ4
-----END PGP SIGNATURE-----

#1013419#15
Date:
2022-07-04 13:34:43 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
vcmi, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1013419@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Johannes Schauer Marin Rodrigues <josch@debian.org> (supplier of updated vcmi package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 04 Jul 2022 15:12:18 +0200
Source: vcmi
Architecture: source
Version: 0.99+dfsg+git20220621.54fab9f0-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Games Team <pkg-games-devel@lists.alioth.debian.org>
Changed-By: Johannes Schauer Marin Rodrigues <josch@debian.org>
Closes: 836527 991460 1013419
Changes:
 vcmi (0.99+dfsg+git20220621.54fab9f0-2) unstable; urgency=medium
 .
   * move from experimental to unstable
   * the latest upstream git commit also fixes vcmibuilder --gog (closes:
     #836527)
 .
 vcmi (0.99+dfsg+git20220621.54fab9f0-1) experimental; urgency=medium
 .
   * Still no release, so we package the latest git commit.
      - link with tbb (closes: #991460)
      - compatibility with ffmpeg 5.0.1 (closes: #1013419)
   * refresh patches
   * fix my name
   * run wrap-and-sort -astb
   * debian/control: add B-D on libtbb-dev, libluajit-5.1-dev, googletest, libgmock-dev
   * debian/rules: disable tests to prevent compilation errors
Checksums-Sha1:
 ff94d7ebed3102f3568eba4c7f49b04ca4319ec1 2647 vcmi_0.99+dfsg+git20220621.54fab9f0-2.dsc
 8960f3f44f773f657cc9db6e364ae28160dd7ba2 8672 vcmi_0.99+dfsg+git20220621.54fab9f0-2.debian.tar.xz
Checksums-Sha256:
 4d69f06145466bddfaa07ca8eabe0df79a7818c6ea3907b44e5302d11d45f2d7 2647 vcmi_0.99+dfsg+git20220621.54fab9f0-2.dsc
 f3efa30a2e75aa8a6fc625a99cd09d21b433d68be0a35b44c3e1b49283dc8fc2 8672 vcmi_0.99+dfsg+git20220621.54fab9f0-2.debian.tar.xz
Files:
 b0a954dd1abc6f41c67416dd0111ff22 2647 contrib/games optional vcmi_0.99+dfsg+git20220621.54fab9f0-2.dsc
 e7b9921a73e45dc9693f816dbffe7651 8672 contrib/games optional vcmi_0.99+dfsg+git20220621.54fab9f0-2.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEElFhU6KL81LF4wVq58sulx4+9g+EFAmLC53wACgkQ8sulx4+9
g+GYZhAAsmhNQogkhPMIeEUC1pr/4FhjiN8eEzGATiOB2D3xS0izNqnkX4WvJU1o
h71hS22LRor0Ust67xgVKNregbkkxNoccVr9x4gKj+V8QNQF2hK5AtXv/jaii2vg
TG5r/XrDZCL1Cx5tCFaGWgjAxWfcqHHxvf9dkuaSiCRv9re0w/+ZYycsAd0+NGKt
J2W/H9o/wP4nkwtK8leY8LdufIxVBU0EW2IXZ3c+yJToMJYftoHK7+gTie0Vpoaq
qERJDtP0G4OVYxjNDMr12ORmBQloeXgzMRaps3lrIbxkcjr0VwEVlcLNK0aeioTp
M8M6hDsB1tNVxQfFyJ4DnCrZ28dPMw2yGGnS1jiThQZmzIwxNjaSwSChm68aDdBH
iJgpMA4N/pe+MnioGgvL+ZW0SNKloC33W0Xzb9lsCutDg61Ib7McHztycoTRJfTA
Wl/iUS1FXCmNiYBt8KzC8kEhoZNgLOgdQ7gY2o5CdE1jJLExqT0QXJ6NhW9SlzJf
23xOtpGznxsYyl+KLZM9C0Ww/fupOTjGqvSXqNqyJQ4RlRYX6qxtFquABjcD1VE7
Lr6yUNIajbLiamDClIw8VycLoPj3d7M/KR5FBBj4Sq1+rnge6molvRTUUpj0JFId
6NC6jIKszlrbjg5mmz2Mx2bQgV+yt6dzKdHJRKzNpZmyUhRLmoc=
=issW
-----END PGP SIGNATURE-----