gnome-extra/gnome-commander: patch for compiling with exiv2-0.27.1
authorUwe Scholz <uwescholz@src.gnome.org>
Sun, 7 Jul 2019 10:10:30 +0000 (12:10 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sun, 7 Jul 2019 21:36:40 +0000 (23:36 +0200)
Closes: https://bugs.gentoo.org/688452

Signed-off-by: Uwe Scholz <uwescholz@src.gnome.org>
Closes: https://github.com/gentoo/gentoo/pull/12400
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
gnome-extra/gnome-commander/files/gnome-commander-1.10.0-exiv2-0.27.1-missing-header.patch [new file with mode: 0644]
gnome-extra/gnome-commander/gnome-commander-1.10.0.ebuild

diff --git a/gnome-extra/gnome-commander/files/gnome-commander-1.10.0-exiv2-0.27.1-missing-header.patch b/gnome-extra/gnome-commander/files/gnome-commander-1.10.0-exiv2-0.27.1-missing-header.patch
new file mode 100644 (file)
index 0000000..0177252
--- /dev/null
@@ -0,0 +1,25 @@
+From 1f98b4a87df3d68b8dd6a2eef24521db7a4d5c75 Mon Sep 17 00:00:00 2001
+From: Mamoru TASAKA <mtasaka@fedoraproject.org>
+Date: Wed, 15 May 2019 18:13:29 +0900
+Subject: [PATCH] Fix compilation error with exiv2 0.27.1
+
+Due to the change in https://github.com/Exiv2/exiv2/commit/71498411c19e6b97a24245b5a1a22063c76a972a ,
+gnome-cmd-tags-exiv2.cc does not compile with exiv2 0.27.1 .
+
+This commit is to fix the error.
+---
+ src/tags/gnome-cmd-tags-exiv2.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/tags/gnome-cmd-tags-exiv2.cc b/src/tags/gnome-cmd-tags-exiv2.cc
+index 807e6f43..e4b269f3 100644
+--- a/src/tags/gnome-cmd-tags-exiv2.cc
++++ b/src/tags/gnome-cmd-tags-exiv2.cc
+@@ -33,6 +33,7 @@
+ #ifdef HAVE_EXIV2
+ #include <exiv2/exif.hpp>
+ #include <exiv2/image.hpp>
++#include <exiv2/error.hpp>
+ #endif
+ using namespace std;
index 87303c532e846f1e4532664d1e396669af7a2587..4845978b3792bbfb4d1cda91b2dbaa61f44da7d6 100644 (file)
@@ -31,6 +31,9 @@ RDEPEND="
        pdf? ( >=app-text/poppler-0.18 )
        taglib? ( >=media-libs/taglib-1.4 )
 "
+
+PATCHES=( "${FILESDIR}/${P}-exiv2-0.27.1-missing-header.patch" )
+
 DEPEND="
        ${RDEPEND}
        dev-util/gtk-doc-am