Gentoo Archives: gentoo-commits

From: Aric Belsito <lluixhi@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: media-gfx/exiv2/files/, media-gfx/exiv2/
Date: Tue, 05 Dec 2017 21:23:40
Message-Id: 1512508978.b12c8f26c18cd4e88be389be4a801df424da51c8.lluixhi@gentoo
1 commit: b12c8f26c18cd4e88be389be4a801df424da51c8
2 Author: Aric Belsito <lluixhi <AT> gmail <DOT> com>
3 AuthorDate: Tue Dec 5 21:22:58 2017 +0000
4 Commit: Aric Belsito <lluixhi <AT> gmail <DOT> com>
5 CommitDate: Tue Dec 5 21:22:58 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=b12c8f26
7
8 media-gfx/exiv2: version bump to 0.26_p20171104-r1
9
10 media-gfx/exiv2/Manifest | 3 +-
11 ...25-r2.ebuild => exiv2-0.26_p20171104-r1.ebuild} | 76 ++++++++---------
12 media-gfx/exiv2/files/exiv2-0.25-fix-docs.patch | 71 ----------------
13 .../exiv2/files/exiv2-0.25-fix-install-dirs.patch | 64 --------------
14 .../exiv2/files/exiv2-0.25-fix-without-zlib.patch | 22 -----
15 .../files/exiv2-0.25-fvisibility-hidden.patch | 19 -----
16 .../exiv2/files/exiv2-0.25-hide-symbols.patch | 97 ----------------------
17 media-gfx/exiv2/files/exiv2-0.25-musl.patch | 12 ---
18 .../exiv2/files/exiv2-0.25-tools-optional.patch | 27 ------
19 .../exiv2/files/exiv2-0.26-pentaxnikon-crash.patch | 52 ++++++++++++
20 10 files changed, 92 insertions(+), 351 deletions(-)
21
22 diff --git a/media-gfx/exiv2/Manifest b/media-gfx/exiv2/Manifest
23 index f37e023..a9b1bd7 100644
24 --- a/media-gfx/exiv2/Manifest
25 +++ b/media-gfx/exiv2/Manifest
26 @@ -1,2 +1 @@
27 -DIST exiv2-0.25.tar.gz 5434325 SHA256 c80bfc778a15fdb06f71265db2c3d49d8493c382e516cb99b8c9f9cbde36efa4 SHA512 08d4e655ffdde715e0214f4bef01d55aba9b8ba517456a60e254a0f8541c20479e407545db28ca90a69dee8def6941fdd88f9a557fb382ebebe49e363aca8e8e WHIRLPOOL f9e7a6947dac5870e0574253b8c1cb1e7d31a916a9e1c4417c73168046c0b4bed90b9c77253444604163bcf6dca204dab92a52cb03bdcb0f85c807327623f8ac
28 -DIST exiv2-0.26_p20171104.tar.gz 28368697 SHA256 f7a46c0b1d3d3c30518202e62dbe086029f584a064bbb531a0ab11270a454007 SHA512 6f6a884d7978e54dceb9ce45248cd0425ff469887c85ef52b0e38cb755970f69fce96b4b5317c8e8070b833f72ca214696042aac71292a6f9c3440f6a369d474 WHIRLPOOL 7baf5fcde327b2e1decde48f44b616f98fab7c65d22ee5e94e0b356fad4d7950c116db17a94b3c91954ac1565c3fe2853b83262c0a4597744dea708b304dce09
29 +DIST exiv2-0.26_p20171104.tar.gz 28368697 BLAKE2B 50013cf0bf30a2a476b02d5db4027fca268a4b38733762eb4c08e5f3bdfaf737038e9a62f7ef471fecb10250d8ae686ef683f9b0ea4ccc5d109440ba534371e4 SHA512 6f6a884d7978e54dceb9ce45248cd0425ff469887c85ef52b0e38cb755970f69fce96b4b5317c8e8070b833f72ca214696042aac71292a6f9c3440f6a369d474
30
31 diff --git a/media-gfx/exiv2/exiv2-0.25-r2.ebuild b/media-gfx/exiv2/exiv2-0.26_p20171104-r1.ebuild
32 similarity index 59%
33 rename from media-gfx/exiv2/exiv2-0.25-r2.ebuild
34 rename to media-gfx/exiv2/exiv2-0.26_p20171104-r1.ebuild
35 index 8b34d48..e002cd0 100644
36 --- a/media-gfx/exiv2/exiv2-0.25-r2.ebuild
37 +++ b/media-gfx/exiv2/exiv2-0.26_p20171104-r1.ebuild
38 @@ -1,20 +1,27 @@
39 # Copyright 1999-2017 Gentoo Foundation
40 # Distributed under the terms of the GNU General Public License v2
41
42 -EAPI=5
43 -PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
44 +EAPI=6
45
46 -inherit eutils cmake-multilib python-any-r1
47 +LINGUAS="bs de es fi fr gl ms pl pt ru sk sv ug uk vi"
48 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
49 +if [[ ${PV} = *9999 ]]; then
50 + EGIT_REPO_URI="https://github.com/Exiv2/exiv2.git"
51 + EGIT_BRANCH="0.26"
52 + GIT_ECLASS=git-r3
53 +else
54 + COMMIT=900d2417dbeb46e14cbf65fc2798ed1d043ab76d
55 + SRC_URI="https://github.com/Exiv2/${PN}/tarball/${COMMIT} -> ${P}.tar.gz"
56 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris"
57 +fi
58 +inherit cmake-multilib python-any-r1 vcs-snapshot
59
60 DESCRIPTION="EXIF, IPTC and XMP metadata C++ library and command line utility"
61 HOMEPAGE="http://www.exiv2.org/"
62 -SRC_URI="http://www.exiv2.org/${P}.tar.gz"
63
64 LICENSE="GPL-2"
65 -SLOT="0/14"
66 -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris"
67 -IUSE_LINGUAS="bs de es fi fr gl ms pl pt ru sk sv ug uk vi"
68 -IUSE="doc examples nls png webready xmp $(printf 'linguas_%s ' ${IUSE_LINGUAS})"
69 +SLOT="0/26"
70 +IUSE="doc examples nls png webready xmp $(printf 'linguas_%s ' ${LINGUAS})"
71
72 RDEPEND="
73 >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]
74 @@ -26,14 +33,13 @@ RDEPEND="
75 )
76 xmp? ( >=dev-libs/expat-2.1.0-r3[${MULTILIB_USEDEP}] )
77 "
78 -
79 DEPEND="${RDEPEND}
80 doc? (
81 + ${PYTHON_DEPS}
82 app-doc/doxygen
83 dev-libs/libxslt
84 - virtual/pkgconfig
85 media-gfx/graphviz
86 - ${PYTHON_DEPS}
87 + virtual/pkgconfig
88 )
89 nls? ( sys-devel/gettext )
90 "
91 @@ -41,14 +47,11 @@ DEPEND="${RDEPEND}
92 DOCS=( README doc/ChangeLog doc/cmd.txt )
93
94 PATCHES=(
95 - "${FILESDIR}/${PN}-0.25-fix-install-dirs.patch"
96 - "${FILESDIR}/${PN}-0.25-fix-without-zlib.patch"
97 - "${FILESDIR}/${PN}-0.25-hide-symbols.patch"
98 - "${FILESDIR}/${PN}-0.25-fvisibility-hidden.patch"
99 - "${FILESDIR}/${PN}-0.25-musl.patch"
100 # TODO: Take to upstream
101 - "${FILESDIR}/${PN}-0.25-fix-docs.patch"
102 - "${FILESDIR}/${PN}-0.25-tools-optional.patch"
103 + "${FILESDIR}"/${PN}-0.26-fix-docs.patch
104 + "${FILESDIR}"/${PN}-0.26-tools-optional.patch
105 + "${FILESDIR}"/${PN}-0.26-pentaxnikon-crash.patch
106 + "${FILESDIR}"/${PN}-0.26-musl.patch
107 )
108
109 pkg_setup() {
110 @@ -56,14 +59,17 @@ pkg_setup() {
111 }
112
113 src_prepare() {
114 - rm -r msvc* build || die "Failed to remove msvc dirs"
115 -
116 if [[ ${PV} != *9999 ]] ; then
117 if [[ -d po ]] ; then
118 pushd po > /dev/null || die
119 + local lang
120 for lang in *.po; do
121 - if ! has ${lang%.po} ${LINGUAS} ; then
122 - rm -rf ${lang} || die
123 + if [[ -e ${lang} ]] && ! has ${lang/.po/} ${LINGUAS} ; then
124 + case ${lang} in
125 + CMakeLists.txt | \
126 + ${PN}.pot) ;;
127 + *) rm -r ${lang} || die ;;
128 + esac
129 fi
130 done
131 popd > /dev/null || die
132 @@ -72,13 +78,10 @@ src_prepare() {
133 fi
134 fi
135
136 - # convert docs to UTF-8
137 - local i
138 - for i in doc/cmd.txt; do
139 - einfo "Converting "${i}" to UTF-8"
140 - iconv -f LATIN1 -t UTF-8 "${i}" > "${i}.tmp" || die
141 - mv -f "${i}.tmp" "${i}" || die
142 - done
143 + # FIXME @upstream:
144 + einfo "Converting doc/cmd.txt to UTF-8"
145 + iconv -f LATIN1 -t UTF-8 doc/cmd.txt > doc/cmd.txt.tmp || die
146 + mv -f doc/cmd.txt.tmp doc/cmd.txt || die
147
148 if use doc; then
149 einfo "Updating doxygen config"
150 @@ -90,17 +93,16 @@ src_prepare() {
151
152 multilib_src_configure() {
153 local mycmakeargs=(
154 - -DEXIV2_ENABLE_BUILD_PO=YES
155 -DEXIV2_ENABLE_BUILD_SAMPLES=NO
156 - -DEXIV2_ENABLE_CURL=$(usex webready)
157 + -DEXIV2_ENABLE_BUILD_PO=$(usex nls)
158 -DEXIV2_ENABLE_NLS=$(usex nls)
159 -DEXIV2_ENABLE_PNG=$(usex png)
160 + -DEXIV2_ENABLE_CURL=$(usex webready)
161 -DEXIV2_ENABLE_SSH=$(usex webready)
162 -DEXIV2_ENABLE_WEBREADY=$(usex webready)
163 -DEXIV2_ENABLE_XMP=$(usex xmp)
164 -DEXIV2_ENABLE_LIBXMP=NO
165 - $(multilib_is_native_abi || \
166 - echo -DEXIV2_ENABLE_TOOLS=NO)
167 + $(multilib_is_native_abi || echo -DEXIV2_ENABLE_TOOLS=NO)
168 )
169
170 cmake-utils_src_configure
171 @@ -115,11 +117,11 @@ multilib_src_compile() {
172 }
173
174 multilib_src_install_all() {
175 - einstalldocs
176 - prune_libtool_files --all
177 + use xmp && DOCS+=( doc/{COPYING-XMPSDK,README-XMP,cmdxmp.txt} )
178 + use doc && HTML_DOCS=( "${S}"/doc/html/. )
179
180 - use xmp && dodoc doc/{COPYING-XMPSDK,README-XMP,cmdxmp.txt}
181 - use doc && dodoc -r "${S}"/doc/html
182 + einstalldocs
183 + find "${D}" -name '*.la' -delete || die
184
185 if use examples; then
186 docinto examples
187
188 diff --git a/media-gfx/exiv2/files/exiv2-0.25-fix-docs.patch b/media-gfx/exiv2/files/exiv2-0.25-fix-docs.patch
189 deleted file mode 100644
190 index e2bf677..0000000
191 --- a/media-gfx/exiv2/files/exiv2-0.25-fix-docs.patch
192 +++ /dev/null
193 @@ -1,71 +0,0 @@
194 ---- a/CMakeLists.txt 2015-07-19 16:04:35.363628707 +0200
195 -+++ b/CMakeLists.txt 2015-07-19 16:28:31.051680136 +0200
196 -@@ -216,9 +216,7 @@
197 - ADD_SUBDIRECTORY( xmpsdk )
198 - ADD_SUBDIRECTORY( src )
199 -
200 --IF( EXIV2_ENABLE_BUILD_SAMPLES )
201 -- ADD_SUBDIRECTORY( samples )
202 --ENDIF( EXIV2_ENABLE_BUILD_SAMPLES )
203 -+ADD_SUBDIRECTORY( samples )
204 -
205 - IF( EXIV2_ENABLE_BUILD_PO )
206 - ADD_SUBDIRECTORY( po )
207 ---- a/samples/CMakeLists.txt 2015-07-19 16:04:35.360628744 +0200
208 -+++ b/samples/CMakeLists.txt 2015-07-19 16:30:46.415987850 +0200
209 -@@ -20,7 +20,11 @@
210 - endif()
211 - include_directories("${CMAKE_SOURCE_DIR}/include" "${CMAKE_SOURCE_DIR}/src")
212 -
213 --SET( SAMPLES addmoddel.cpp
214 -+SET( SAMPLES taglist.cpp )
215 -+
216 -+IF( EXIV2_ENABLE_BUILD_SAMPLES )
217 -+ SET( SAMPLES ${SAMPLES}
218 -+ addmoddel.cpp
219 - convert-test.cpp
220 - easyaccess-test.cpp
221 - exifcomment.cpp
222 -@@ -38,7 +42,6 @@
223 - mmap-test.cpp
224 - prevtest.cpp
225 - stringto-test.cpp
226 -- taglist.cpp
227 - tiff-test.cpp
228 - werror-test.cpp
229 - write-test.cpp
230 -@@ -47,6 +50,7 @@
231 - xmpparser-test.cpp
232 - xmpsample.cpp
233 - )
234 -+ENDIF()
235 -
236 - FOREACH(entry ${SAMPLES})
237 - STRING( REPLACE ".cpp" "" target ${entry})
238 -@@ -63,6 +67,7 @@
239 - SET( MC_SRC ${MC_SRC} ../src/getopt_win32.c )
240 - ENDIF( MSVC )
241 -
242 -+IF( EXIV2_ENABLE_BUILD_SAMPLES )
243 - SET( MC_SRC ${MC_SRC} metacopy.cpp ../src/utils.cpp )
244 - ADD_EXECUTABLE( metacopy ${MC_SRC} )
245 - TARGET_LINK_LIBRARIES( metacopy exiv2lib )
246 -@@ -79,6 +84,7 @@
247 - SET_TARGET_PROPERTIES( exiv2json PROPERTIES OUTPUT_NAME exiv2json )
248 - TARGET_LINK_LIBRARIES( exiv2json exiv2lib )
249 - INSTALL( TARGETS exiv2json ${INSTALL_TARGET_STANDARD_ARGS} )
250 -+ENDIF()
251 -
252 - # That's all Folks!
253 - ##
254 ---- a/doc/templates/Makefile 2015-07-19 16:50:50.589933604 +0200
255 -+++ b/doc/templates/Makefile 2015-07-19 16:51:07.686719864 +0200
256 -@@ -143,7 +143,7 @@
257 - xmp_mwg-rs \
258 - xmp_mwg-kw
259 -
260 --TAGLIST = ../../bin/taglist
261 -+TAGLIST = ../../src/bin/taglist
262 -
263 - # **********************************************************************
264 - # ======================================================================
265
266 diff --git a/media-gfx/exiv2/files/exiv2-0.25-fix-install-dirs.patch b/media-gfx/exiv2/files/exiv2-0.25-fix-install-dirs.patch
267 deleted file mode 100644
268 index bca79dd..0000000
269 --- a/media-gfx/exiv2/files/exiv2-0.25-fix-install-dirs.patch
270 +++ /dev/null
271 @@ -1,64 +0,0 @@
272 -USE GNUInstallDirs to fix man page and multilib install
273 -
274 -See also: http://dev.exiv2.org/issues/1125
275 -Patch based on: http://pkgs.fedoraproject.org/cgit/exiv2.git/tree/exiv2-0.25-cmake_LIB_SUFFIX.patch
276 -
277 ---- b/config/CMakeChecks.txt 2015-07-19 14:23:11.606686135 +0200
278 -+++ b/config/CMakeChecks.txt 2015-06-22 08:41:22.913094633 -0500
279 -@@ -37,6 +37,8 @@
280 - INCLUDE( CheckCSourceCompiles )
281 - INCLUDE( CheckCXXSourceCompiles )
282 -
283 -+INCLUDE( GNUInstallDirs )
284 -+
285 - INCLUDE( FindIconv )
286 -
287 - SET( STDC_HEADERS ON )
288 -@@ -289,9 +291,9 @@
289 -
290 - IF( NOT MSVC )
291 - CONFIGURE_FILE( config/exiv2.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/exiv2.pc @ONLY )
292 -- INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/exiv2.pc DESTINATION lib/pkgconfig )
293 -+ INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/exiv2.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig )
294 - CONFIGURE_FILE( config/exiv2.lsm.cmake ${CMAKE_CURRENT_BINARY_DIR}/exiv2.lsm)
295 -- INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/exiv2.lsm DESTINATION lib/pkgconfig )
296 -+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/exiv2.lsm DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig )
297 - ENDIF( NOT MSVC )
298 -
299 - # ******************************************************************************
300 ---- a/src/CMakeLists.txt 2015-07-19 14:06:54.104906589 +0200
301 -+++ b/src/CMakeLists.txt 2015-07-19 14:12:37.982607526 +0200
302 -@@ -321,7 +321,7 @@
303 -
304 - # ******************************************************************************
305 - # Man page
306 --INSTALL( FILES exiv2.1 DESTINATION man/man1 )
307 -+INSTALL( FILES exiv2.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 )
308 -
309 - # That's all Folks!
310 - ##
311 ---- a/CMakeLists.txt 2015-06-15 10:32:21.000000000 -0500
312 -+++ b/CMakeLists.txt 2015-06-22 08:48:19.486245765 -0500
313 -@@ -25,7 +25,7 @@ if( POLICY CMP0042 )
314 - else()
315 - SET(CMAKE_MACOSX_RPATH 1)
316 - endif()
317 --SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
318 -+#SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
319 -
320 -
321 - SET( PACKAGE_COPYRIGHT "Andreas Huggel" )
322 -@@ -156,10 +156,10 @@ INCLUDE( config/CMakeChecks.txt )
323 -
324 - SET( INSTALL_TARGET_STANDARD_ARGS
325 - RUNTIME DESTINATION bin
326 -- LIBRARY DESTINATION lib
327 -- ARCHIVE DESTINATION lib
328 -+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
329 -+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
330 - )
331 --SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
332 -+#SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
333 -
334 - ##
335 - # add sources from XMPSDK directory
336
337 diff --git a/media-gfx/exiv2/files/exiv2-0.25-fix-without-zlib.patch b/media-gfx/exiv2/files/exiv2-0.25-fix-without-zlib.patch
338 deleted file mode 100644
339 index c6d435d..0000000
340 --- a/media-gfx/exiv2/files/exiv2-0.25-fix-without-zlib.patch
341 +++ /dev/null
342 @@ -1,22 +0,0 @@
343 -Fix exiv2.hpp if built with PNG support disabled (--without-zlib)
344 -
345 -Fixed upstream in >=0.26
346 -
347 -See also: http://dev.exiv2.org/issues/1103
348 -Gentoo bug 1: https://bugs.gentoo.org/show_bug.cgi?id=552046
349 -Gentoo bug 2: https://bugs.gentoo.org/show_bug.cgi?id=535836
350 -
351 -Index: exiv2.hpp
352 -===================================================================
353 ---- a/include/exiv2/exiv2.hpp (revision 3887)
354 -+++ b/include/exiv2/exiv2.hpp (revision 3888)
355 -@@ -52,7 +52,9 @@
356 - #include "mrwimage.hpp"
357 - #include "orfimage.hpp"
358 - #include "pgfimage.hpp"
359 -+#ifdef EXV_HAVE_LIBZ
360 - #include "pngimage.hpp"
361 -+#endif
362 - #include "preview.hpp"
363 - #include "properties.hpp"
364 - #include "psdimage.hpp"
365
366 diff --git a/media-gfx/exiv2/files/exiv2-0.25-fvisibility-hidden.patch b/media-gfx/exiv2/files/exiv2-0.25-fvisibility-hidden.patch
367 deleted file mode 100644
368 index 26c5c1d..0000000
369 --- a/media-gfx/exiv2/files/exiv2-0.25-fvisibility-hidden.patch
370 +++ /dev/null
371 @@ -1,19 +0,0 @@
372 -Index: CMakeLists.txt
373 -===================================================================
374 ---- a/xmpsdk/CMakeLists.txt (revision 3974)
375 -+++ b/xmpsdk/CMakeLists.txt (revision 3975)
376 -@@ -20,6 +20,14 @@
377 - ENDIF(NOT MSVC AND NOT CYGWIN AND NOT MSYS)
378 - ENDFOREACH()
379 -
380 -+if(NOT MSVC)
381 -+ # http://stackoverflow.com/questions/10046114/in-cmake-how-can-i-test-if-the-compiler-is-clang
382 -+ if ( NOT "${CMAKE_CXX_COMPILER_ID}" MATCHES "AppleClang")
383 -+ # 1123 - hide xmpsdk symbols
384 -+ add_definitions( -fvisibility=hidden -fvisibility-inlines-hidden )
385 -+ endif()
386 -+endif()
387 -+
388 - IF( EXIV2_ENABLE_XMP AND EXIV2_ENABLE_LIBXMP )
389 - ADD_LIBRARY( xmp STATIC ${XMPSRC} )
390 - GET_TARGET_PROPERTY( XMPLIB xmp LOCATION )
391
392 diff --git a/media-gfx/exiv2/files/exiv2-0.25-hide-symbols.patch b/media-gfx/exiv2/files/exiv2-0.25-hide-symbols.patch
393 deleted file mode 100644
394 index 7c8613d..0000000
395 --- a/media-gfx/exiv2/files/exiv2-0.25-hide-symbols.patch
396 +++ /dev/null
397 @@ -1,97 +0,0 @@
398 -Index: a/samples/CMakeLists.txt
399 -===================================================================
400 ---- a/samples/CMakeLists.txt (revision 3972)
401 -+++ b/samples/CMakeLists.txt (revision 3973)
402 -@@ -52,7 +52,7 @@
403 - STRING( REPLACE ".cpp" "" target ${entry})
404 - ADD_EXECUTABLE( ${target} ${target}.cpp )
405 - ADD_TEST( ${target}_test ${target} )
406 -- TARGET_LINK_LIBRARIES( ${target} exiv2lib )
407 -+ TARGET_LINK_LIBRARIES( ${target} PRIVATE exiv2lib ${EXPAT_LIBRARIES})
408 - #INSTALL( TARGETS ${target} ${INSTALL_TARGET_STANDARD_ARGS} )
409 - ENDFOREACH(entry ${SAMPLES})
410 -
411 -Index: a/src/CMakeLists.txt
412 -===================================================================
413 ---- a/src/CMakeLists.txt (revision 3972)
414 -+++ b/src/CMakeLists.txt (revision 3973)
415 -@@ -240,20 +240,20 @@
416 -
417 - if ( MSVC )
418 - source_group("Header Files" FILES ${LIBEXIV2_HDR} )
419 -- TARGET_LINK_LIBRARIES( exiv2lib ${EXPAT_LIBRARIES} )
420 -+ TARGET_LINK_LIBRARIES( exiv2lib PRIVATE ${EXPAT_LIBRARIES} )
421 - source_group("Header Files" FILES ${LIBCURL_HDR} )
422 -- TARGET_LINK_LIBRARIES( exiv2lib ${CURL_LIBRARIES} )
423 -+ TARGET_LINK_LIBRARIES( exiv2lib PRIVATE ${CURL_LIBRARIES} )
424 - source_group("Header Files" FILES ${SSH_HDR} )
425 -- TARGET_LINK_LIBRARIES( exiv2lib ${SSH_LIBRARIES} )
426 -+ TARGET_LINK_LIBRARIES( exiv2lib PRIVATE ${SSH_LIBRARIES} )
427 - else()
428 - if ( NOT MINGW )
429 -- TARGET_LINK_LIBRARIES( exiv2lib dl ${EXPAT_LIBRARIES} )
430 -- TARGET_LINK_LIBRARIES( exiv2lib dl ${CURL_LIBRARIES} )
431 -- TARGET_LINK_LIBRARIES( exiv2lib dl ${SSH_LIBRARIES} )
432 -+ TARGET_LINK_LIBRARIES( exiv2lib PRIVATE dl ${EXPAT_LIBRARIES} )
433 -+ TARGET_LINK_LIBRARIES( exiv2lib PRIVATE dl ${CURL_LIBRARIES} )
434 -+ TARGET_LINK_LIBRARIES( exiv2lib PRIVATE dl ${SSH_LIBRARIES} )
435 - else()
436 -- TARGET_LINK_LIBRARIES( exiv2lib ${EXPAT_LIBRARIES} )
437 -- TARGET_LINK_LIBRARIES( exiv2lib ${CURL_LIBRARIES} )
438 -- TARGET_LINK_LIBRARIES( exiv2lib ${SSH_LIBRARIES} )
439 -+ TARGET_LINK_LIBRARIES( exiv2lib PRIVATE ${EXPAT_LIBRARIES} )
440 -+ TARGET_LINK_LIBRARIES( exiv2lib PRIVATE ${CURL_LIBRARIES} )
441 -+ TARGET_LINK_LIBRARIES( exiv2lib PRIVATE ${SSH_LIBRARIES} )
442 - endif()
443 - endif()
444 -
445 -@@ -262,33 +262,33 @@
446 - if ( MSVC )
447 - LINK_DIRECTORIES(${LIBRARY_OUTPUT_PATH}/$(ConfigurationName))
448 - endif(MSVC)
449 -- TARGET_LINK_LIBRARIES( exiv2lib xmp )
450 -+ TARGET_LINK_LIBRARIES( exiv2lib PRIVATE xmp )
451 - ENDIF()
452 -
453 - IF( EXIV2_ENABLE_PNG )
454 - IF( ZLIB_FOUND )
455 - IF( MSVC )
456 - if ( EXIV2_ENABLE_SHARED )
457 -- TARGET_LINK_LIBRARIES( exiv2lib optimized ${ZLIB_LIBRARIES} debug ${ZLIB_LIBRARIES}d )
458 -+ TARGET_LINK_LIBRARIES( exiv2lib PRIVATE optimized ${ZLIB_LIBRARIES}.lib debug ${ZLIB_LIBRARIES}d.lib )
459 - else()
460 -- TARGET_LINK_LIBRARIES( exiv2lib optimized zlibstatic.lib debug zlibstaticd.lib )
461 -+ TARGET_LINK_LIBRARIES( exiv2lib PRIVATE optimized zlibstatic.lib debug zlibstaticd.lib )
462 - endif()
463 - ELSE()
464 -- TARGET_LINK_LIBRARIES( exiv2lib ${ZLIB_LIBRARIES} )
465 -+ TARGET_LINK_LIBRARIES( exiv2lib PRIVATE ${ZLIB_LIBRARIES} )
466 - ENDIF()
467 - ENDIF()
468 - ENDIF()
469 -
470 - IF( EXIV2_ENABLE_NLS )
471 -- TARGET_LINK_LIBRARIES( exiv2lib ${LIBINTL_LIBRARIES} )
472 -+ TARGET_LINK_LIBRARIES( exiv2lib PRIVATE ${LIBINTL_LIBRARIES} )
473 - ENDIF( EXIV2_ENABLE_NLS )
474 -
475 - IF( ICONV_FOUND )
476 -- TARGET_LINK_LIBRARIES( exiv2lib ${ICONV_LIBRARIES} )
477 -+ TARGET_LINK_LIBRARIES( exiv2lib PRIVATE ${ICONV_LIBRARIES} )
478 - ENDIF( ICONV_FOUND )
479 -
480 - IF (CYGWIN OR MINGW)
481 -- TARGET_LINK_LIBRARIES( exiv2lib psapi )
482 -+ TARGET_LINK_LIBRARIES( exiv2lib PRIVATE psapi )
483 - ENDIF(CYGWIN OR MINGW)
484 -
485 -
486 -@@ -303,7 +303,7 @@
487 - # ******************************************************************************
488 - # connection test application
489 - ADD_EXECUTABLE( conntest ${CONNTEST} )
490 --TARGET_LINK_LIBRARIES( conntest exiv2lib )
491 -+TARGET_LINK_LIBRARIES( conntest PRIVATE exiv2lib ${CURL_LIBRARIES} ${SSH_LIBRARIES})
492 -
493 - # ******************************************************************************
494 - # exifprint application
495
496 diff --git a/media-gfx/exiv2/files/exiv2-0.25-musl.patch b/media-gfx/exiv2/files/exiv2-0.25-musl.patch
497 deleted file mode 100644
498 index a44e255..0000000
499 --- a/media-gfx/exiv2/files/exiv2-0.25-musl.patch
500 +++ /dev/null
501 @@ -1,12 +0,0 @@
502 ---- a/src/futils.cpp 2016-06-01 18:29:06.629998810 -0500
503 -+++ b/src/futils.cpp 2016-06-01 18:29:22.209998806 -0500
504 -@@ -332,8 +332,7 @@
505 - std::ostringstream os;
506 - #ifdef EXV_HAVE_STRERROR_R
507 - const size_t n = 1024;
508 --// _GNU_SOURCE: See Debian bug #485135
509 --# if defined EXV_STRERROR_R_CHAR_P && defined _GNU_SOURCE
510 -+# if defined EXV_STRERROR_R_CHAR_P && defined __GLIBC__
511 - char *buf = 0;
512 - char buf2[n];
513 - std::memset(buf2, 0x0, n)
514
515 diff --git a/media-gfx/exiv2/files/exiv2-0.25-tools-optional.patch b/media-gfx/exiv2/files/exiv2-0.25-tools-optional.patch
516 deleted file mode 100644
517 index 2bb030a..0000000
518 --- a/media-gfx/exiv2/files/exiv2-0.25-tools-optional.patch
519 +++ /dev/null
520 @@ -1,27 +0,0 @@
521 ---- a/CMakeLists.txt 2015-06-15 17:32:21.000000000 +0200
522 -+++ b/CMakeLists.txt 2015-10-04 14:37:05.319679836 +0200
523 -@@ -55,6 +55,7 @@
524 - OPTION( EXIV2_ENABLE_WEBREADY "Build webready support into library" OFF )
525 - OPTION( EXIV2_ENABLE_CURL "USE Libcurl for HttpIo" ON )
526 - OPTION( EXIV2_ENABLE_SSH "USE Libssh for SshIo" ON )
527 -+OPTION( EXIV2_ENABLE_TOOLS "Build exiv2 executable" ON )
528 -
529 - IF( MINGW OR UNIX )
530 - IF ( CMAKE_CXX_COMPILER STREQUAL "g++" OR CMAKE_C_COMPILER STREQUAL "gcc" )
531 ---- a/src/CMakeLists.txt 2015-06-14 11:12:19.000000000 +0200
532 -+++ b/src/CMakeLists.txt 2015-10-04 14:33:27.784399402 +0200
533 -@@ -296,9 +296,11 @@
534 -
535 - # ******************************************************************************
536 - # exiv2 application
537 --ADD_EXECUTABLE( exiv2 ${EXIV2_SRC} )
538 --TARGET_LINK_LIBRARIES( exiv2 exiv2lib )
539 --INSTALL( TARGETS exiv2 ${INSTALL_TARGET_STANDARD_ARGS} )
540 -+IF( EXIV2_ENABLE_TOOLS )
541 -+ ADD_EXECUTABLE( exiv2 ${EXIV2_SRC} )
542 -+ TARGET_LINK_LIBRARIES( exiv2 exiv2lib )
543 -+ INSTALL( TARGETS exiv2 ${INSTALL_TARGET_STANDARD_ARGS} )
544 -+ENDIF( EXIV2_ENABLE_TOOLS )
545 -
546 - # ******************************************************************************
547 - # connection test application
548
549 diff --git a/media-gfx/exiv2/files/exiv2-0.26-pentaxnikon-crash.patch b/media-gfx/exiv2/files/exiv2-0.26-pentaxnikon-crash.patch
550 new file mode 100644
551 index 0000000..a66af8d
552 --- /dev/null
553 +++ b/media-gfx/exiv2/files/exiv2-0.26-pentaxnikon-crash.patch
554 @@ -0,0 +1,52 @@
555 +From 2dc166b04ca6152d01bff6627a332e89ddef24d1 Mon Sep 17 00:00:00 2001
556 +From: clanmills <robin@×××××××××.com>
557 +Date: Tue, 12 Sep 2017 09:14:42 +0100
558 +Subject: [PATCH 1/2] Fix http://dev.exiv2.org/issues/1305
559 +
560 +---
561 + src/pentaxmn.cpp | 2 ++
562 + 1 file changed, 2 insertions(+)
563 +
564 +diff --git a/src/pentaxmn.cpp b/src/pentaxmn.cpp
565 +index 4fc38be0..b22cb43b 100644
566 +--- a/src/pentaxmn.cpp
567 ++++ b/src/pentaxmn.cpp
568 +@@ -1167,6 +1167,8 @@ namespace Exiv2 {
569 +
570 + std::ostream& PentaxMakerNote::printShutterCount(std::ostream& os, const Value& value, const ExifData* metadata)
571 + {
572 ++ if ( ! metadata ) return os << "undefined" ;
573 ++
574 + ExifData::const_iterator dateIt = metadata->findKey(
575 + ExifKey("Exif.PentaxDng.Date"));
576 + if (dateIt == metadata->end()) {
577 +--
578 +2.13.6
579 +
580 +
581 +From 3bc0b91bcecefdad531129b1a934be1251021c95 Mon Sep 17 00:00:00 2001
582 +From: =?UTF-8?q?M=C4=81ris=20Narti=C5=A1s?= <mn@××××××.lv>
583 +Date: Mon, 18 Sep 2017 23:37:40 +0300
584 +Subject: [PATCH 2/2] Fix crash on undefined metadata on some Nikon images.
585 + Identical to commit:5405d61623e82896e498c5c8342dd6f42e689115
586 +
587 +---
588 + src/nikonmn.cpp | 2 ++
589 + 1 file changed, 2 insertions(+)
590 +
591 +diff --git a/src/nikonmn.cpp b/src/nikonmn.cpp
592 +index 571ab806..34bf601c 100644
593 +--- a/src/nikonmn.cpp
594 ++++ b/src/nikonmn.cpp
595 +@@ -299,6 +299,8 @@ namespace Exiv2 {
596 + const Value& value,
597 + const ExifData* exifData)
598 + {
599 ++ if ( ! exifData ) return os << "undefined" ;
600 ++
601 + if ( value.count() >= 9 ) {
602 + ByteOrder bo = getKeyString("Exif.MakerNote.ByteOrder",exifData) == "MM" ? bigEndian : littleEndian;
603 + byte p[4];
604 +--
605 +2.13.6
606 +