Control: tags 896824 + pending

Dear maintainer,

I've prepared an NMU for ignition-common (versioned as 1.0.1-1.1) and
uploaded it to DELAYED/2. Please feel free to tell me if I
should delay it longer.

Cheers
-- 
Sebastian Ramacher
diff -Nru ignition-common-1.0.1/debian/changelog ignition-common-1.0.1/debian/changelog
--- ignition-common-1.0.1/debian/changelog	2018-02-05 17:10:10.000000000 +0100
+++ ignition-common-1.0.1/debian/changelog	2018-07-11 20:59:01.000000000 +0200
@@ -1,3 +1,11 @@
+ignition-common (1.0.1-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * debian/patches: Fix build with ffmpeg 4.0. Thanks to James Cowgill for the
+    patch. (Closes: #896824)
+
+ -- Sebastian Ramacher <sramac...@debian.org>  Wed, 11 Jul 2018 20:59:01 +0200
+
 ignition-common (1.0.1-1) unstable; urgency=medium
 
   * Imported Upstream version 0.1.0
diff -Nru ignition-common-1.0.1/debian/patches/0005_ffmpeg4.0.patch ignition-common-1.0.1/debian/patches/0005_ffmpeg4.0.patch
--- ignition-common-1.0.1/debian/patches/0005_ffmpeg4.0.patch	1970-01-01 01:00:00.000000000 +0100
+++ ignition-common-1.0.1/debian/patches/0005_ffmpeg4.0.patch	2018-07-11 20:58:29.000000000 +0200
@@ -0,0 +1,51 @@
+Description: Fix FTBFS with FFmpeg 4.0
+Origin: upstream, https://bitbucket.org/ignitionrobotics/ign-common/commits/89d45a69d76e
+Bug: https://bitbucket.org/ignitionrobotics/ign-common/pull-requests/120
+Bug-Debian: https://bugs.debian.org/896824
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/src/AudioDecoder.cc
++++ b/src/AudioDecoder.cc
+@@ -257,8 +257,13 @@ bool AudioDecoder::SetFile(const std::st
+     return false;
+   }
+ 
++#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(56, 60, 100)
++  if (this->data->codec->capabilities & AV_CODEC_CAP_TRUNCATED)
++    this->data->codecCtx->flags |= AV_CODEC_FLAG_TRUNCATED;
++#else
+   if (this->data->codec->capabilities & CODEC_CAP_TRUNCATED)
+     this->data->codecCtx->flags |= CODEC_FLAG_TRUNCATED;
++#endif
+ 
+   // Open codec
+   if (avcodec_open2(this->data->codecCtx, this->data->codec, nullptr) < 0)
+--- a/src/Util.cc
++++ b/src/Util.cc
+@@ -291,8 +291,10 @@ void ignition::common::load()
+   if (first)
+   {
+     first = false;
++#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 9, 100)
+     avcodec_register_all();
+     av_register_all();
++#endif
+ 
+ #if defined(__linux__) && defined(HAVE_AVDEVICE)
+     avdevice_register_all();
+--- a/src/Video.cc
++++ b/src/Video.cc
+@@ -164,8 +164,13 @@ bool Video::Load(const std::string &_fil
+ 
+   // Inform the codec that we can handle truncated bitstreams -- i.e.,
+   // bitstreams where frame boundaries can fall in the middle of packets
++#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(56, 60, 100)
++  if (codec->capabilities & AV_CODEC_CAP_TRUNCATED)
++    this->dataPtr->codecCtx->flags |= AV_CODEC_FLAG_TRUNCATED;
++#else
+   if (codec->capabilities & CODEC_CAP_TRUNCATED)
+     this->dataPtr->codecCtx->flags |= CODEC_FLAG_TRUNCATED;
++#endif
+ 
+   // Open codec
+   if (avcodec_open2(this->dataPtr->codecCtx, codec, nullptr) < 0)
diff -Nru ignition-common-1.0.1/debian/patches/series ignition-common-1.0.1/debian/patches/series
--- ignition-common-1.0.1/debian/patches/series	2018-02-05 17:10:10.000000000 +0100
+++ ignition-common-1.0.1/debian/patches/series	2018-07-11 20:58:37.000000000 +0200
@@ -2,3 +2,4 @@
 0003_use_c++11_in_gtest.patch
 0002_disable_gui_test.patch
 0004_disable_workerpool_test.patch
+0005_ffmpeg4.0.patch

Attachment: signature.asc
Description: PGP signature

-- 
debian-science-maintainers mailing list
debian-science-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to