1 |
commit: 1b1df02aeee22cd215bf54ab45ba6b9947288641 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 6 23:49:13 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 6 23:49:13 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=1b1df02a |
7 |
|
8 |
kde-apps/gwenview: Sync with Gentoo ebuild repo |
9 |
|
10 |
Package-Manager: Portage-2.3.59, Repoman-2.3.12 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
.../files/gwenview-18.12.1-exiv2-0.27.patch | 142 ++++++++++++++++++--- |
14 |
1 file changed, 125 insertions(+), 17 deletions(-) |
15 |
|
16 |
diff --git a/kde-apps/gwenview/files/gwenview-18.12.1-exiv2-0.27.patch b/kde-apps/gwenview/files/gwenview-18.12.1-exiv2-0.27.patch |
17 |
index 66ed9ed834..3e528e4928 100644 |
18 |
--- a/kde-apps/gwenview/files/gwenview-18.12.1-exiv2-0.27.patch |
19 |
+++ b/kde-apps/gwenview/files/gwenview-18.12.1-exiv2-0.27.patch |
20 |
@@ -1,7 +1,7 @@ |
21 |
-From 61543b42289fc986e580f2e3443719f3334f17b5 Mon Sep 17 00:00:00 2001 |
22 |
+From 3637438dd1a772ee65e6b3091087bde89dc91db0 Mon Sep 17 00:00:00 2001 |
23 |
From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@×××××××××××.de> |
24 |
Date: Sun, 30 Dec 2018 02:46:28 +0100 |
25 |
-Subject: [PATCH 1/2] Use forward declaration for Exiv2::Image, port to |
26 |
+Subject: [PATCH 1/4] Use forward declaration for Exiv2::Image, port to |
27 |
std::unique_ptr |
28 |
|
29 |
Summary: |
30 |
@@ -104,7 +104,7 @@ index d841ae5f..d3d0002c 100644 |
31 |
|
32 |
void AbstractDocumentImpl::setDocumentDownSampledImage(const QImage& image, int invertedZoom) |
33 |
diff --git a/lib/document/abstractdocumentimpl.h b/lib/document/abstractdocumentimpl.h |
34 |
-index 1f427e60..86e6bfd2 100644 |
35 |
+index 5d6862b8..6c6be825 100644 |
36 |
--- a/lib/document/abstractdocumentimpl.h |
37 |
+++ b/lib/document/abstractdocumentimpl.h |
38 |
@@ -34,6 +34,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
39 |
@@ -129,7 +129,7 @@ index 1f427e60..86e6bfd2 100644 |
40 |
void setDocumentCmsProfile(Cms::Profile::Ptr profile); |
41 |
void setDocumentErrorString(const QString&); |
42 |
diff --git a/lib/document/document.cpp b/lib/document/document.cpp |
43 |
-index 18756700..afa9ed03 100644 |
44 |
+index c760be96..27003b3e 100644 |
45 |
--- a/lib/document/document.cpp |
46 |
+++ b/lib/document/document.cpp |
47 |
@@ -31,6 +31,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
48 |
@@ -155,7 +155,7 @@ index 18756700..afa9ed03 100644 |
49 |
emit metaInfoUpdated(); |
50 |
} |
51 |
diff --git a/lib/document/document.h b/lib/document/document.h |
52 |
-index c0bb454b..4b40a6e1 100644 |
53 |
+index 782111d9..4b2b3d48 100644 |
54 |
--- a/lib/document/document.h |
55 |
+++ b/lib/document/document.h |
56 |
@@ -22,8 +22,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
57 |
@@ -191,7 +191,7 @@ index c0bb454b..4b40a6e1 100644 |
58 |
void switchToImpl(AbstractDocumentImpl* impl); |
59 |
void setErrorString(const QString&); |
60 |
diff --git a/lib/document/document_p.h b/lib/document/document_p.h |
61 |
-index 78e0ac6e..4de25f15 100644 |
62 |
+index 00c6f7ff..2701440f 100644 |
63 |
--- a/lib/document/document_p.h |
64 |
+++ b/lib/document/document_p.h |
65 |
@@ -21,6 +21,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Cambridge, MA 02110-1301, USA |
66 |
@@ -226,7 +226,7 @@ index 78e0ac6e..4de25f15 100644 |
67 |
QByteArray mFormat; |
68 |
ImageMetaInfoModel mImageMetaInfoModel; |
69 |
diff --git a/lib/document/loadingdocumentimpl.cpp b/lib/document/loadingdocumentimpl.cpp |
70 |
-index 07675783..766a1831 100644 |
71 |
+index 713ef32c..3bcf613a 100644 |
72 |
--- a/lib/document/loadingdocumentimpl.cpp |
73 |
+++ b/lib/document/loadingdocumentimpl.cpp |
74 |
@@ -24,6 +24,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
75 |
@@ -248,7 +248,7 @@ index 07675783..766a1831 100644 |
76 |
std::unique_ptr<JpegContent> mJpegContent; |
77 |
QImage mImage; |
78 |
Cms::Profile::Ptr mCmsProfile; |
79 |
-@@ -486,7 +489,7 @@ void LoadingDocumentImpl::slotMetaInfoLoaded() |
80 |
+@@ -488,7 +491,7 @@ void LoadingDocumentImpl::slotMetaInfoLoaded() |
81 |
|
82 |
setDocumentFormat(d->mFormat); |
83 |
setDocumentImageSize(d->mImageSize); |
84 |
@@ -258,7 +258,7 @@ index 07675783..766a1831 100644 |
85 |
|
86 |
d->mMetaInfoLoaded = true; |
87 |
diff --git a/lib/exiv2imageloader.cpp b/lib/exiv2imageloader.cpp |
88 |
-index f2830f81..f13dff7a 100644 |
89 |
+index c298c9c3..49bdf2c8 100644 |
90 |
--- a/lib/exiv2imageloader.cpp |
91 |
+++ b/lib/exiv2imageloader.cpp |
92 |
@@ -29,8 +29,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
93 |
@@ -288,7 +288,7 @@ index f2830f81..f13dff7a 100644 |
94 |
+ d->mImage.reset(Exiv2::ImageFactory::open(filePathByteArray.constData()).release()); |
95 |
d->mImage->readMetadata(); |
96 |
} catch (const Exiv2::Error& error) { |
97 |
- d->mErrorMessage = QString::fromUtf8(error.what()); |
98 |
+ d->mErrorMessage = error.what(); |
99 |
@@ -69,7 +68,7 @@ bool Exiv2ImageLoader::load(const QString& filePath) |
100 |
bool Exiv2ImageLoader::load(const QByteArray& data) |
101 |
{ |
102 |
@@ -297,7 +297,7 @@ index f2830f81..f13dff7a 100644 |
103 |
+ d->mImage.reset(Exiv2::ImageFactory::open((unsigned char*)data.constData(), data.size()).release()); |
104 |
d->mImage->readMetadata(); |
105 |
} catch (const Exiv2::Error& error) { |
106 |
- d->mErrorMessage = QString::fromUtf8(error.what()); |
107 |
+ d->mErrorMessage = error.what(); |
108 |
@@ -83,9 +82,9 @@ QString Exiv2ImageLoader::errorMessage() const |
109 |
return d->mErrorMessage; |
110 |
} |
111 |
@@ -345,7 +345,7 @@ index 57ef24d2..12a45b68 100644 |
112 |
private: |
113 |
Exiv2ImageLoaderPrivate* const d; |
114 |
diff --git a/lib/jpegcontent.cpp b/lib/jpegcontent.cpp |
115 |
-index bb810dd4..a8cf909f 100644 |
116 |
+index d203da5a..989a1a54 100644 |
117 |
--- a/lib/jpegcontent.cpp |
118 |
+++ b/lib/jpegcontent.cpp |
119 |
@@ -42,8 +42,7 @@ extern "C" { |
120 |
@@ -384,7 +384,7 @@ index bb810dd4..a8cf909f 100644 |
121 |
// Store Exif info |
122 |
image->setExifData(d->mExifData); |
123 |
diff --git a/lib/timeutils.cpp b/lib/timeutils.cpp |
124 |
-index 9e8836a9..3c519098 100644 |
125 |
+index 1fcecc98..ecce3891 100644 |
126 |
--- a/lib/timeutils.cpp |
127 |
+++ b/lib/timeutils.cpp |
128 |
@@ -21,6 +21,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Cambridge, MA 02110-1301, USA |
129 |
@@ -476,10 +476,10 @@ index e3ec8d30..5a286b00 100644 |
130 |
2.20.1 |
131 |
|
132 |
|
133 |
-From b81eed1dc4d879f06d651ea0954bee1b46c7947e Mon Sep 17 00:00:00 2001 |
134 |
+From fa287bfbd0bc95856c6a98bab2d81199a1618526 Mon Sep 17 00:00:00 2001 |
135 |
From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@×××××××××××.de> |
136 |
Date: Sat, 29 Dec 2018 23:39:30 +0100 |
137 |
-Subject: [PATCH 2/2] Compile more files with enabled exceptions, required for |
138 |
+Subject: [PATCH 2/4] Compile more files with enabled exceptions, required for |
139 |
exiv2 0.27 |
140 |
|
141 |
Summary: |
142 |
@@ -504,10 +504,10 @@ Differential Revision: https://phabricator.kde.org/D17873 |
143 |
1 file changed, 5 insertions(+) |
144 |
|
145 |
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt |
146 |
-index d60ae47f..229eac2a 100644 |
147 |
+index 5f135a4d..365bcb86 100644 |
148 |
--- a/lib/CMakeLists.txt |
149 |
+++ b/lib/CMakeLists.txt |
150 |
-@@ -224,6 +224,11 @@ kde_source_files_enable_exceptions( |
151 |
+@@ -227,6 +227,11 @@ kde_source_files_enable_exceptions( |
152 |
exiv2imageloader.cpp |
153 |
imagemetainfomodel.cpp |
154 |
timeutils.cpp |
155 |
@@ -521,3 +521,111 @@ index d60ae47f..229eac2a 100644 |
156 |
ki18n_wrap_ui(gwenviewlib_SRCS |
157 |
-- |
158 |
2.20.1 |
159 |
+ |
160 |
+ |
161 |
+From 6b3407024e1d297ed8466d1e7710a9f7804dc265 Mon Sep 17 00:00:00 2001 |
162 |
+From: Andreas Sturmlechner <asturm@g.o> |
163 |
+Date: Wed, 6 Feb 2019 22:38:55 +0100 |
164 |
+Subject: [PATCH 4/4] Switch to FindLibExiv2 in ECM 5.54 |
165 |
+ |
166 |
+--- |
167 |
+ CMakeLists.txt | 3 +- |
168 |
+ app/CMakeLists.txt | 2 +- |
169 |
+ cmake/FindExiv2.cmake | 117 -------------------------------------- |
170 |
+ importer/CMakeLists.txt | 2 +- |
171 |
+ lib/CMakeLists.txt | 4 +- |
172 |
+ part/CMakeLists.txt | 2 +- |
173 |
+ tests/auto/CMakeLists.txt | 2 +- |
174 |
+ 7 files changed, 7 insertions(+), 125 deletions(-) |
175 |
+ delete mode 100644 cmake/FindExiv2.cmake |
176 |
+ |
177 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
178 |
+index f8bb85e7..7181f6c9 100644 |
179 |
+--- a/CMakeLists.txt |
180 |
++++ b/CMakeLists.txt |
181 |
+@@ -97,8 +97,7 @@ set_package_properties(JPEG PROPERTIES URL "http://libjpeg.sourceforge.net/" DES |
182 |
+ find_package(PNG) |
183 |
+ set_package_properties(PNG PROPERTIES URL "http://www.libpng.org" DESCRIPTION "PNG image manipulation support" TYPE REQUIRED) |
184 |
+ |
185 |
+-find_package(Exiv2) |
186 |
+-set_package_properties(Exiv2 PROPERTIES URL "http://www.exiv2.org" DESCRIPTION "image metadata support" TYPE REQUIRED) |
187 |
++find_package(LibExiv2) |
188 |
+ |
189 |
+ find_package(CFitsio) |
190 |
+ set_package_properties(CFitsio PROPERTIES URL "http://heasarc.gsfc.nasa.gov/fitsio/fitsio.html" DESCRIPTION "FITS format support" TYPE OPTIONAL) |
191 |
+diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt |
192 |
+index 5fe34d69..eabd494d 100644 |
193 |
+--- a/app/CMakeLists.txt |
194 |
++++ b/app/CMakeLists.txt |
195 |
+@@ -1,6 +1,6 @@ |
196 |
+ include_directories( |
197 |
+ ${CMAKE_CURRENT_SOURCE_DIR}/.. |
198 |
+- ${EXIV2_INCLUDE_DIR} |
199 |
++ ${LibExiv2_INCLUDE_DIRS} |
200 |
+ ) |
201 |
+ |
202 |
+ # For lib/gwenviewconfig.h and config-gwenview.h |
203 |
+diff --git a/importer/CMakeLists.txt b/importer/CMakeLists.txt |
204 |
+index 81e585c1..39e219b7 100644 |
205 |
+--- a/importer/CMakeLists.txt |
206 |
++++ b/importer/CMakeLists.txt |
207 |
+@@ -3,7 +3,7 @@ project(importer) |
208 |
+ include_directories( |
209 |
+ ${CMAKE_CURRENT_SOURCE_DIR}/.. |
210 |
+ ${CMAKE_CURRENT_BINARY_DIR}/.. |
211 |
+- ${EXIV2_INCLUDE_DIR} |
212 |
++ ${LibExiv2_INCLUDE_DIRS} |
213 |
+ ) |
214 |
+ |
215 |
+ set(importer_SRCS |
216 |
+diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt |
217 |
+index 365bcb86..dcf9757c 100644 |
218 |
+--- a/lib/CMakeLists.txt |
219 |
++++ b/lib/CMakeLists.txt |
220 |
+@@ -53,7 +53,7 @@ include_directories( |
221 |
+ ${CMAKE_CURRENT_SOURCE_DIR}/${GV_JPEG_DIR} |
222 |
+ ${CMAKE_CURRENT_SOURCE_DIR}/.. |
223 |
+ ${CMAKE_CURRENT_BINARY_DIR} |
224 |
+- ${EXIV2_INCLUDE_DIR} |
225 |
++ ${LibExiv2_INCLUDE_DIRS} |
226 |
+ ${JPEG_INCLUDE_DIR} |
227 |
+ ${PNG_INCLUDE_DIRS} |
228 |
+ ) |
229 |
+@@ -265,7 +265,7 @@ target_link_libraries(gwenviewlib |
230 |
+ KF5::WindowSystem |
231 |
+ KF5::IconThemes |
232 |
+ ${JPEG_LIBRARY} |
233 |
+- ${EXIV2_LIBRARIES} |
234 |
++ LibExiv2::LibExiv2 |
235 |
+ ${PNG_LIBRARIES} |
236 |
+ ${LCMS2_LIBRARIES} |
237 |
+ ${PHONON_LIBRARY} |
238 |
+diff --git a/part/CMakeLists.txt b/part/CMakeLists.txt |
239 |
+index 9d17eed2..03dcf92f 100644 |
240 |
+--- a/part/CMakeLists.txt |
241 |
++++ b/part/CMakeLists.txt |
242 |
+@@ -2,7 +2,7 @@ add_definitions(-DTRANSLATION_DOMAIN="gwenview") |
243 |
+ |
244 |
+ include_directories( |
245 |
+ ${CMAKE_CURRENT_SOURCE_DIR}/.. |
246 |
+- ${EXIV2_INCLUDE_DIR} |
247 |
++ ${LibExiv2_INCLUDE_DIRS} |
248 |
+ ) |
249 |
+ |
250 |
+ set(gvpart_SRCS |
251 |
+diff --git a/tests/auto/CMakeLists.txt b/tests/auto/CMakeLists.txt |
252 |
+index d5d3f015..9cc0e3b5 100644 |
253 |
+--- a/tests/auto/CMakeLists.txt |
254 |
++++ b/tests/auto/CMakeLists.txt |
255 |
+@@ -14,7 +14,7 @@ endmacro(gv_add_unit_test) |
256 |
+ include_directories( |
257 |
+ ${gwenview_SOURCE_DIR} |
258 |
+ ${importer_SOURCE_DIR} |
259 |
+- ${EXIV2_INCLUDE_DIR} |
260 |
++ ${LibExiv2_INCLUDE_DIRS} |
261 |
+ ) |
262 |
+ |
263 |
+ # For config-gwenview.h |
264 |
+-- |
265 |
+2.20.1 |
266 |
+ |