1 |
commit: a430106ef87cdbffc6cefbc1ac1a8e5bb3ea6242 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 9 21:07:52 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 11 11:57:33 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a430106e |
7 |
|
8 |
media-gfx/gthumb: Fix build with exiv2-0.27 |
9 |
|
10 |
Using exiv2.hpp instead of individual includes is exiv2 recommendation for some |
11 |
time already while the headers are subject to refactoring. |
12 |
|
13 |
Standard fix as seen in other affected packages. |
14 |
|
15 |
Closes: https://bugs.gentoo.org/674092 |
16 |
Package-Manager: Portage-2.3.54, Repoman-2.3.12 |
17 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
18 |
|
19 |
.../gthumb/files/gthumb-3.6.2-exiv2-0.27.patch | 31 ++++++++++++++++++++++ |
20 |
media-gfx/gthumb/gthumb-3.6.2.ebuild | 4 ++- |
21 |
2 files changed, 34 insertions(+), 1 deletion(-) |
22 |
|
23 |
diff --git a/media-gfx/gthumb/files/gthumb-3.6.2-exiv2-0.27.patch b/media-gfx/gthumb/files/gthumb-3.6.2-exiv2-0.27.patch |
24 |
new file mode 100644 |
25 |
index 00000000000..2bd8b94c3c1 |
26 |
--- /dev/null |
27 |
+++ b/media-gfx/gthumb/files/gthumb-3.6.2-exiv2-0.27.patch |
28 |
@@ -0,0 +1,31 @@ |
29 |
+Patch kindly borrowed from Mageia. |
30 |
+ |
31 |
+* asturm@g.o: Dropped unnecessary and backwards incompatible |
32 |
+xmp_exiv2.hpp include. |
33 |
+ |
34 |
+https://gitlab.gnome.org/GNOME/gthumb/issues/30 |
35 |
+ |
36 |
+diff -Nru a/extensions/exiv2_tools/exiv2-utils.cpp b/extensions/exiv2_tools/exiv2-utils.cpp |
37 |
+--- a/extensions/exiv2_tools/exiv2-utils.cpp 2018-06-17 08:24:44.000000000 +0200 |
38 |
++++ b/extensions/exiv2_tools/exiv2-utils.cpp 2018-12-31 15:51:50.912329232 +0100 |
39 |
+@@ -32,7 +32,7 @@ |
40 |
+ #include <sstream> |
41 |
+ #include <vector> |
42 |
+ #include <iomanip> |
43 |
+-#include <exiv2/xmp.hpp> |
44 |
++#include <exiv2/exiv2.hpp> |
45 |
+ #include <gthumb.h> |
46 |
+ #include "exiv2-utils.h" |
47 |
+ |
48 |
+@@ -1073,7 +1073,11 @@ |
49 |
+ |
50 |
+ try { |
51 |
+ if (exifData.empty()) { |
52 |
++#if EXIV2_TEST_VERSION(0,27,0) |
53 |
++ throw Exiv2::Error(Exiv2::kerErrorMessage, " No Exif data found in the file"); |
54 |
++#else |
55 |
+ throw Exiv2::Error(1, " No Exif data found in the file"); |
56 |
++#endif |
57 |
+ } |
58 |
+ Exiv2::ExifData::const_iterator end = exifData.end(); |
59 |
+ for (Exiv2::ExifData::const_iterator i = exifData.begin(); i != end; ++i) { |
60 |
|
61 |
diff --git a/media-gfx/gthumb/gthumb-3.6.2.ebuild b/media-gfx/gthumb/gthumb-3.6.2.ebuild |
62 |
index 1eab1eda6c7..fa3de15b5f1 100644 |
63 |
--- a/media-gfx/gthumb/gthumb-3.6.2.ebuild |
64 |
+++ b/media-gfx/gthumb/gthumb-3.6.2.ebuild |
65 |
@@ -1,4 +1,4 @@ |
66 |
-# Copyright 1999-2018 Gentoo Authors |
67 |
+# Copyright 1999-2019 Gentoo Authors |
68 |
# Distributed under the terms of the GNU General Public License v2 |
69 |
|
70 |
EAPI=6 |
71 |
@@ -54,6 +54,8 @@ DEPEND="${RDEPEND} |
72 |
# eautoreconf needs: |
73 |
# gnome-base/gnome-common |
74 |
|
75 |
+PATCHES=( "${FILESDIR}/${P}-exiv2-0.27.patch" ) # bug 674092 |
76 |
+ |
77 |
src_prepare() { |
78 |
# Remove unwanted CFLAGS added with USE=debug |
79 |
sed -e 's/CFLAGS="$CFLAGS -g -O0 -DDEBUG"//' \ |