Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-tv/mythtv/files/, media-tv/mythtv/
Date: Wed, 14 Aug 2019 11:15:29
Message-Id: 1565781282.c6efb1db19f9073bfd64c4a00e99fde85b05e9e0.asturm@gentoo
1 commit: c6efb1db19f9073bfd64c4a00e99fde85b05e9e0
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 14 11:12:05 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 14 11:14:42 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6efb1db
7
8 media-tv/mythtv: Fix build with >=media-libs/exiv2-0.27.1
9
10 Thanks-to: Amel Hodzic <ilmostro7 <AT> gmail.com>
11 Closes: https://bugs.gentoo.org/691904
12 Package-Manager: Portage-2.3.71, Repoman-2.3.17
13 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
14
15 .../mythtv/files/mythtv-29.1-exiv2-0.27.1.patch | 21 +++++++++++++++++++++
16 media-tv/mythtv/mythtv-29.1-r1.ebuild | 2 ++
17 2 files changed, 23 insertions(+)
18
19 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
20 new file mode 100644
21 index 00000000000..afdf423355e
22 --- /dev/null
23 +++ b/media-tv/mythtv/files/mythtv-29.1-exiv2-0.27.1.patch
24 @@ -0,0 +1,21 @@
25 +Fix build with exiv2-0.27.1
26 +Thanks-to: Amel Hodzic <ilmostro7@×××××.com>
27 +
28 +--- a/libs/libmythmetadata/imagemetadata.cpp
29 ++++ b/libs/libmythmetadata/imagemetadata.cpp
30 +@@ -7,14 +7,7 @@
31 + #include "exitcodes.h" // for ffprobe
32 +
33 + // libexiv2 for Exif metadata
34 +-//#include <exiv2/exiv2.hpp>
35 +-// Note: Older versions of Exiv2 don't have the exiv2.hpp include
36 +-// file. Using image.hpp instead seems to work.
37 +-#ifdef _MSC_VER
38 +-#include <exiv2/src/image.hpp>
39 +-#else
40 +-#include <exiv2/image.hpp>
41 +-#endif
42 ++#include <exiv2/exiv2.hpp>
43 +
44 + // To read FFMPEG Metadata
45 + extern "C" {
46
47 diff --git a/media-tv/mythtv/mythtv-29.1-r1.ebuild b/media-tv/mythtv/mythtv-29.1-r1.ebuild
48 index 85c778c6135..05fc9479744 100644
49 --- a/media-tv/mythtv/mythtv-29.1-r1.ebuild
50 +++ b/media-tv/mythtv/mythtv-29.1-r1.ebuild
51 @@ -156,6 +156,8 @@ to journald via the console at the notice verbosity.
52
53 MYTHTV_GROUPS="video,audio,tty,uucp"
54
55 +PATCHES=( "${FILESDIR}/${P}-exiv2-0.27.1.patch" ) # bug 691904
56 +
57 pkg_setup() {
58 python-single-r1_pkg_setup
59 enewuser mythtv -1 /bin/bash /home/mythtv ${MYTHTV_GROUPS}