commit:     47eba01d3895bd74c7fffc56025c32827c817af2
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 29 21:54:38 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Dec 29 22:02:03 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47eba01d

media-gfx/ufraw: Fix build with exiv2-0.27

Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 media-gfx/ufraw/files/ufraw-0.22-exiv2-0.27.patch | 25 +++++++++++++++++++++++
 media-gfx/ufraw/ufraw-0.22-r2.ebuild              |  3 ++-
 2 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/media-gfx/ufraw/files/ufraw-0.22-exiv2-0.27.patch 
b/media-gfx/ufraw/files/ufraw-0.22-exiv2-0.27.patch
new file mode 100644
index 00000000000..b5b4140fff8
--- /dev/null
+++ b/media-gfx/ufraw/files/ufraw-0.22-exiv2-0.27.patch
@@ -0,0 +1,25 @@
+--- a/ufraw_exiv2.cc   2015-06-16 05:58:38.000000000 +0200
++++ b/ufraw_exiv2.cc   2018-12-29 22:51:23.291894430 +0100
+@@ -15,9 +15,7 @@
+ #include "ufraw.h"
+ 
+ #ifdef HAVE_EXIV2
+-#include <exiv2/image.hpp>
+-#include <exiv2/easyaccess.hpp>
+-#include <exiv2/exif.hpp>
++#include <exiv2/exiv2.hpp>
+ #include <sstream>
+ #include <cassert>
+ 
+@@ -67,7 +65,11 @@
+         if (exifData.empty()) {
+             std::string error(uf->filename);
+             error += ": No Exif data found in the file";
++#if EXIV2_TEST_VERSION(0,27,0)
++            throw Exiv2::Error(Exiv2::kerErrorMessage, error);
++#else
+             throw Exiv2::Error(1, error);
++#endif
+         }
+ 
+         /* List of tag names taken from exiv2's printSummary() in actions.cpp 
*/

diff --git a/media-gfx/ufraw/ufraw-0.22-r2.ebuild 
b/media-gfx/ufraw/ufraw-0.22-r2.ebuild
index 53994be42a8..9bbc7e77121 100644
--- a/media-gfx/ufraw/ufraw-0.22-r2.ebuild
+++ b/media-gfx/ufraw/ufraw-0.22-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -44,6 +44,7 @@ PATCHES=(
        "${FILESDIR}"/${P}-drop_superfluous_abs.patch
        "${FILESDIR}"/${P}-fix-unsigned-char.patch
        "${FILESDIR}"/${P}-jpeg9.patch
+       "${FILESDIR}"/${P}-exiv2-0.27.patch
 )
 
 src_prepare() {

Reply via email to