git: a050789426c4 - main - astro/siril: make compatible with exiv2 0.28

From: Matthias Andree <mandree_at_FreeBSD.org>
Date: Sun, 09 Jul 2023 22:09:46 UTC
The branch main has been updated by mandree:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a050789426c42aadc060c10ea6ba98ee2b837e3a

commit a050789426c42aadc060c10ea6ba98ee2b837e3a
Author:     Matthias Andree <mandree@FreeBSD.org>
AuthorDate: 2023-07-02 21:56:03 +0000
Commit:     Matthias Andree <mandree@FreeBSD.org>
CommitDate: 2023-07-09 22:08:11 +0000

    astro/siril: make compatible with exiv2 0.28
    
    PR:             272311
---
 astro/siril/Makefile                      |  2 +-
 astro/siril/files/patch-src_core_exif.cpp | 11 +++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/astro/siril/Makefile b/astro/siril/Makefile
index fe52c6fb064e..2442c8750d8a 100644
--- a/astro/siril/Makefile
+++ b/astro/siril/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	siril
 DISTVERSION=	1.0.6
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	astro graphics
 MASTER_SITES=	https://free-astro.org/download/
 
diff --git a/astro/siril/files/patch-src_core_exif.cpp b/astro/siril/files/patch-src_core_exif.cpp
new file mode 100644
index 000000000000..51c8934d593c
--- /dev/null
+++ b/astro/siril/files/patch-src_core_exif.cpp
@@ -0,0 +1,11 @@
+--- src/core/exif.cpp.orig	2022-10-17 19:40:50 UTC
++++ src/core/exif.cpp
+@@ -108,7 +108,7 @@ int siril_get_thumbnail_exiv(const char *path, uint8_t
+ 		//std::cerr << "[exiv2] "<< path << ": found thumbnail "<< preview.width() << "x" << preview.height() << std::endl;
+ 		memcpy(*buffer, tmp, _size);
+ 		return 0;
+-	} catch (Exiv2::AnyError &e) {
++	} catch (Exiv2::Error &e) {
+ 		std::string s(e.what());
+ 		std::cerr << "[exiv2]: " << s << std::endl;
+ 		return 1;