1 |
commit: d8579cdf3ab340aeb8aecb4c3af8b411ce7799ed |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 29 12:50:28 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 29 13:31:43 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8579cdf |
7 |
|
8 |
media-libs/gexiv2: Really fix build with exiv2-0.27 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/673722 |
11 |
Package-Manager: Portage-2.3.52, Repoman-2.3.12 |
12 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
13 |
|
14 |
.../gexiv2/files/gexiv2-0.10.9-exiv2-0.27.patch | 178 +++++++++++++++++++++ |
15 |
media-libs/gexiv2/gexiv2-0.10.9.ebuild | 2 + |
16 |
2 files changed, 180 insertions(+) |
17 |
|
18 |
diff --git a/media-libs/gexiv2/files/gexiv2-0.10.9-exiv2-0.27.patch b/media-libs/gexiv2/files/gexiv2-0.10.9-exiv2-0.27.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..ca68a8475a1 |
21 |
--- /dev/null |
22 |
+++ b/media-libs/gexiv2/files/gexiv2-0.10.9-exiv2-0.27.patch |
23 |
@@ -0,0 +1,178 @@ |
24 |
+From d8f96634e1df693eb0393cf82893a86dd2a92d2b Mon Sep 17 00:00:00 2001 |
25 |
+From: Jens Georg <mail@××××××.org> |
26 |
+Date: Tue, 20 Nov 2018 12:43:21 +0100 |
27 |
+Subject: [PATCH] Replace single-file includes |
28 |
+ |
29 |
+To improve compatibility with exiv2 0.27 as recommended in |
30 |
+ |
31 |
+Fixes #34 |
32 |
+ |
33 |
+https://github.com/Exiv2/exiv2/issues/555#issuecomment-440023260 |
34 |
+--- |
35 |
+ gexiv2/gexiv2-metadata-exif.cpp | 2 +- |
36 |
+ gexiv2/gexiv2-metadata-gps.cpp | 2 +- |
37 |
+ gexiv2/gexiv2-metadata-iptc.cpp | 2 +- |
38 |
+ gexiv2/gexiv2-metadata-private.h | 6 +----- |
39 |
+ gexiv2/gexiv2-metadata-xmp.cpp | 2 +- |
40 |
+ gexiv2/gexiv2-metadata.cpp | 9 ++------- |
41 |
+ gexiv2/gexiv2-preview-image-private.h | 2 +- |
42 |
+ gexiv2/gexiv2-preview-properties-private.h | 2 +- |
43 |
+ gexiv2/gexiv2-startup.cpp | 2 +- |
44 |
+ gexiv2/gexiv2-stream-io.cpp | 2 +- |
45 |
+ gexiv2/gexiv2-stream-io.h | 2 +- |
46 |
+ 11 files changed, 12 insertions(+), 21 deletions(-) |
47 |
+ |
48 |
+diff --git a/gexiv2/gexiv2-metadata-exif.cpp b/gexiv2/gexiv2-metadata-exif.cpp |
49 |
+index c87a460..f931b95 100644 |
50 |
+--- a/gexiv2/gexiv2-metadata-exif.cpp |
51 |
++++ b/gexiv2/gexiv2-metadata-exif.cpp |
52 |
+@@ -12,7 +12,7 @@ |
53 |
+ #include "gexiv2-metadata-private.h" |
54 |
+ #include <string> |
55 |
+ #include <glib-object.h> |
56 |
+-#include <exiv2/exif.hpp> |
57 |
++#include <exiv2/exiv2.hpp> |
58 |
+ |
59 |
+ G_BEGIN_DECLS |
60 |
+ |
61 |
+diff --git a/gexiv2/gexiv2-metadata-gps.cpp b/gexiv2/gexiv2-metadata-gps.cpp |
62 |
+index d49d97c..47592ec 100644 |
63 |
+--- a/gexiv2/gexiv2-metadata-gps.cpp |
64 |
++++ b/gexiv2/gexiv2-metadata-gps.cpp |
65 |
+@@ -15,7 +15,7 @@ |
66 |
+ #include <stdexcept> |
67 |
+ #include <stdio.h> |
68 |
+ #include <glib-object.h> |
69 |
+-#include <exiv2/exif.hpp> |
70 |
++#include <exiv2/exiv2.hpp> |
71 |
+ |
72 |
+ #include <limits> |
73 |
+ |
74 |
+diff --git a/gexiv2/gexiv2-metadata-iptc.cpp b/gexiv2/gexiv2-metadata-iptc.cpp |
75 |
+index 2371708..aeac1c7 100644 |
76 |
+--- a/gexiv2/gexiv2-metadata-iptc.cpp |
77 |
++++ b/gexiv2/gexiv2-metadata-iptc.cpp |
78 |
+@@ -12,7 +12,7 @@ |
79 |
+ #include "gexiv2-metadata-private.h" |
80 |
+ #include <string> |
81 |
+ #include <glib-object.h> |
82 |
+-#include <exiv2/iptc.hpp> |
83 |
++#include <exiv2/exiv2.hpp> |
84 |
+ |
85 |
+ G_BEGIN_DECLS |
86 |
+ |
87 |
+diff --git a/gexiv2/gexiv2-metadata-private.h b/gexiv2/gexiv2-metadata-private.h |
88 |
+index d85453c..8818c22 100644 |
89 |
+--- a/gexiv2/gexiv2-metadata-private.h |
90 |
++++ b/gexiv2/gexiv2-metadata-private.h |
91 |
+@@ -11,11 +11,7 @@ |
92 |
+ #define GEXIV2_METADATA_PRIVATE_H |
93 |
+ |
94 |
+ #include <gexiv2/gexiv2-metadata.h> |
95 |
+-#include <exiv2/image.hpp> |
96 |
+-#include <exiv2/exif.hpp> |
97 |
+-#include <exiv2/iptc.hpp> |
98 |
+-#include <exiv2/xmp.hpp> |
99 |
+-#include <exiv2/preview.hpp> |
100 |
++#include <exiv2/exiv2.hpp> |
101 |
+ |
102 |
+ G_BEGIN_DECLS |
103 |
+ |
104 |
+diff --git a/gexiv2/gexiv2-metadata-xmp.cpp b/gexiv2/gexiv2-metadata-xmp.cpp |
105 |
+index e4900f2..6f60cd0 100644 |
106 |
+--- a/gexiv2/gexiv2-metadata-xmp.cpp |
107 |
++++ b/gexiv2/gexiv2-metadata-xmp.cpp |
108 |
+@@ -12,7 +12,7 @@ |
109 |
+ #include "gexiv2-metadata-private.h" |
110 |
+ #include <string> |
111 |
+ #include <glib-object.h> |
112 |
+-#include <exiv2/xmp.hpp> |
113 |
++#include <exiv2/exiv2.hpp> |
114 |
+ |
115 |
+ G_BEGIN_DECLS |
116 |
+ |
117 |
+diff --git a/gexiv2/gexiv2-metadata.cpp b/gexiv2/gexiv2-metadata.cpp |
118 |
+index 98ded9d..9c791ef 100644 |
119 |
+--- a/gexiv2/gexiv2-metadata.cpp |
120 |
++++ b/gexiv2/gexiv2-metadata.cpp |
121 |
+@@ -22,13 +22,8 @@ |
122 |
+ #include <cmath> |
123 |
+ #include <glib-object.h> |
124 |
+ #include <gio/gio.h> |
125 |
+-#include <exiv2/image.hpp> |
126 |
+-#include <exiv2/xmpsidecar.hpp> |
127 |
+-#include <exiv2/exif.hpp> |
128 |
+-#include <exiv2/iptc.hpp> |
129 |
+-#include <exiv2/xmp.hpp> |
130 |
+-#include <exiv2/preview.hpp> |
131 |
+-#include <exiv2/jpgimage.hpp> |
132 |
++ |
133 |
++#include <exiv2/exiv2.hpp> |
134 |
+ |
135 |
+ |
136 |
+ G_BEGIN_DECLS |
137 |
+diff --git a/gexiv2/gexiv2-preview-image-private.h b/gexiv2/gexiv2-preview-image-private.h |
138 |
+index 810304c..b52a84f 100644 |
139 |
+--- a/gexiv2/gexiv2-preview-image-private.h |
140 |
++++ b/gexiv2/gexiv2-preview-image-private.h |
141 |
+@@ -11,7 +11,7 @@ |
142 |
+ #define GEXIV2_PREVIEW_IMAGE_PRIVATE_H |
143 |
+ |
144 |
+ #include <gexiv2/gexiv2-preview-image.h> |
145 |
+-#include <exiv2/preview.hpp> |
146 |
++#include <exiv2/exiv2.hpp> |
147 |
+ |
148 |
+ G_BEGIN_DECLS |
149 |
+ |
150 |
+diff --git a/gexiv2/gexiv2-preview-properties-private.h b/gexiv2/gexiv2-preview-properties-private.h |
151 |
+index bacb392..b057604 100644 |
152 |
+--- a/gexiv2/gexiv2-preview-properties-private.h |
153 |
++++ b/gexiv2/gexiv2-preview-properties-private.h |
154 |
+@@ -11,7 +11,7 @@ |
155 |
+ #define GEXIV2_PREVIEW_PROPERTIES_PRIVATE_H |
156 |
+ |
157 |
+ #include <gexiv2/gexiv2-preview-properties.h> |
158 |
+-#include <exiv2/preview.hpp> |
159 |
++#include <exiv2/exiv2.hpp> |
160 |
+ |
161 |
+ G_BEGIN_DECLS |
162 |
+ |
163 |
+diff --git a/gexiv2/gexiv2-startup.cpp b/gexiv2/gexiv2-startup.cpp |
164 |
+index 179b6c7..de438de 100644 |
165 |
+--- a/gexiv2/gexiv2-startup.cpp |
166 |
++++ b/gexiv2/gexiv2-startup.cpp |
167 |
+@@ -7,7 +7,7 @@ |
168 |
+ * This is free software. See COPYING for details. |
169 |
+ */ |
170 |
+ |
171 |
+-#include <exiv2/xmp.hpp> |
172 |
++#include <exiv2/exiv2.hpp> |
173 |
+ #include "gexiv2-startup.h" |
174 |
+ #include "gexiv2-version.h" |
175 |
+ |
176 |
+diff --git a/gexiv2/gexiv2-stream-io.cpp b/gexiv2/gexiv2-stream-io.cpp |
177 |
+index b772b74..454305d 100644 |
178 |
+--- a/gexiv2/gexiv2-stream-io.cpp |
179 |
++++ b/gexiv2/gexiv2-stream-io.cpp |
180 |
+@@ -13,7 +13,7 @@ |
181 |
+ #include "gexiv2-stream-io.h" |
182 |
+ #include "gexiv2-managed-stream.h" |
183 |
+ |
184 |
+-#include <exiv2/basicio.hpp> |
185 |
++#include <exiv2/exiv2.hpp> |
186 |
+ #include <gio/gio.h> |
187 |
+ #include <glib.h> |
188 |
+ #include <stdio.h> |
189 |
+diff --git a/gexiv2/gexiv2-stream-io.h b/gexiv2/gexiv2-stream-io.h |
190 |
+index 430ac01..8d1fe76 100644 |
191 |
+--- a/gexiv2/gexiv2-stream-io.h |
192 |
++++ b/gexiv2/gexiv2-stream-io.h |
193 |
+@@ -16,7 +16,7 @@ |
194 |
+ #define GEXIV2_STREAM_IO_H |
195 |
+ |
196 |
+ #include <gexiv2/gexiv2-managed-stream.h> |
197 |
+-#include <exiv2/basicio.hpp> |
198 |
++#include <exiv2/exiv2.hpp> |
199 |
+ #include <gio/gio.h> |
200 |
+ |
201 |
+ |
202 |
|
203 |
diff --git a/media-libs/gexiv2/gexiv2-0.10.9.ebuild b/media-libs/gexiv2/gexiv2-0.10.9.ebuild |
204 |
index 02c3359c1ca..eea5a85a5cc 100644 |
205 |
--- a/media-libs/gexiv2/gexiv2-0.10.9.ebuild |
206 |
+++ b/media-libs/gexiv2/gexiv2-0.10.9.ebuild |
207 |
@@ -39,6 +39,8 @@ BDEPEND=" |
208 |
) |
209 |
" |
210 |
|
211 |
+PATCHES=( "${FILESDIR}/${P}-exiv2-0.27.patch" ) |
212 |
+ |
213 |
src_prepare() { |
214 |
xdg_environment_reset |
215 |
tc-export CXX |