media-tv/mythtv: Fix build with >=media-libs/exiv2-0.27.1
authorAndreas Sturmlechner <asturm@gentoo.org>
Wed, 14 Aug 2019 11:12:05 +0000 (13:12 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Wed, 14 Aug 2019 11:14:42 +0000 (13:14 +0200)
Thanks-to: Amel Hodzic <ilmostro7@gmail.com>
Closes: https://bugs.gentoo.org/691904
Package-Manager: Portage-2.3.71, Repoman-2.3.17
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
media-tv/mythtv/files/mythtv-29.1-exiv2-0.27.1.patch [new file with mode: 0644]
media-tv/mythtv/mythtv-29.1-r1.ebuild

diff --git a/media-tv/mythtv/files/mythtv-29.1-exiv2-0.27.1.patch b/media-tv/mythtv/files/mythtv-29.1-exiv2-0.27.1.patch
new file mode 100644 (file)
index 0000000..afdf423
--- /dev/null
@@ -0,0 +1,21 @@
+Fix build with exiv2-0.27.1
+Thanks-to: Amel Hodzic <ilmostro7@gmail.com>
+
+--- a/libs/libmythmetadata/imagemetadata.cpp
++++ b/libs/libmythmetadata/imagemetadata.cpp
+@@ -7,14 +7,7 @@ 
+ #include "exitcodes.h"        // for ffprobe
+ // libexiv2 for Exif metadata
+-//#include <exiv2/exiv2.hpp>
+-// Note: Older versions of Exiv2 don't have the exiv2.hpp include
+-// file.  Using image.hpp instead seems to work.
+-#ifdef _MSC_VER
+-#include <exiv2/src/image.hpp>
+-#else
+-#include <exiv2/image.hpp>
+-#endif
++#include <exiv2/exiv2.hpp>
+ // To read FFMPEG Metadata
+ extern "C" {
index 85c778c61351ab172bda30a04b9c0bfce968630b..05fc947974485897530ffd841cce6f436eba458a 100644 (file)
@@ -156,6 +156,8 @@ to journald via the console at the notice verbosity.
 
 MYTHTV_GROUPS="video,audio,tty,uucp"
 
+PATCHES=( "${FILESDIR}/${P}-exiv2-0.27.1.patch" ) # bug 691904
+
 pkg_setup() {
        python-single-r1_pkg_setup
        enewuser mythtv -1 /bin/bash /home/mythtv ${MYTHTV_GROUPS}