Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Jul 2023 22:09:54 GMT
From:      Matthias Andree <mandree@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: eadb1e6037c8 - main - graphics/qgis: make compatible with exiv2 0.28
Message-ID:  <202307092209.369M9sF7034550@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mandree:

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

commit eadb1e6037c802f9224cc541e4a2d74a0aabf064
Author:     Matthias Andree <mandree@FreeBSD.org>
AuthorDate: 2023-07-03 00:02:57 +0000
Commit:     Matthias Andree <mandree@FreeBSD.org>
CommitDate: 2023-07-09 22:09:05 +0000

    graphics/qgis: make compatible with exiv2 0.28
    
    PR:             272311
---
 graphics/qgis/Makefile                             |  1 +
 .../files/patch-src_core_raster_qgsexiftools.cpp   | 38 ++++++++++++++++++++++
 graphics/qgis/pkg-plist                            |  1 +
 3 files changed, 40 insertions(+)

diff --git a/graphics/qgis/Makefile b/graphics/qgis/Makefile
index fe59a7ba82be..7b23636144c0 100644
--- a/graphics/qgis/Makefile
+++ b/graphics/qgis/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	qgis
 DISTVERSION=	3.32.0
+PORTREVISION=	1
 CATEGORIES=	graphics geography
 MASTER_SITES=	https://qgis.org/downloads/
 
diff --git a/graphics/qgis/files/patch-src_core_raster_qgsexiftools.cpp b/graphics/qgis/files/patch-src_core_raster_qgsexiftools.cpp
new file mode 100644
index 000000000000..20e191c481ee
--- /dev/null
+++ b/graphics/qgis/files/patch-src_core_raster_qgsexiftools.cpp
@@ -0,0 +1,38 @@
+--- src/core/raster/qgsexiftools.cpp.orig	2023-05-26 12:01:43 UTC
++++ src/core/raster/qgsexiftools.cpp
+@@ -66,7 +66,7 @@ QVariant decodeXmpData( const QString &key, Exiv2::Xmp
+       case Exiv2::signedLong:
+       case Exiv2::unsignedLongLong:
+       case Exiv2::signedLongLong:
+-        val = QVariant::fromValue( it->toLong() );
++        val = QVariant::fromValue( it->toInt64() );
+         break;
+ 
+       case Exiv2::tiffDouble:
+@@ -80,7 +80,7 @@ QVariant decodeXmpData( const QString &key, Exiv2::Xmp
+       case Exiv2::signedByte:
+       case Exiv2::tiffIfd:
+       case Exiv2::tiffIfd8:
+-        val = QVariant::fromValue( static_cast< int >( it->toLong() ) );
++        val = QVariant::fromValue( static_cast< int >( it->toInt64() ) );
+         break;
+ 
+       case Exiv2::date:
+@@ -182,7 +182,7 @@ QVariant decodeExifData( const QString &key, Exiv2::Ex
+       case Exiv2::signedLong:
+       case Exiv2::unsignedLongLong:
+       case Exiv2::signedLongLong:
+-        val = QVariant::fromValue( it->toLong() );
++        val = QVariant::fromValue( it->toInt64() );
+         break;
+ 
+       case Exiv2::tiffDouble:
+@@ -196,7 +196,7 @@ QVariant decodeExifData( const QString &key, Exiv2::Ex
+       case Exiv2::signedByte:
+       case Exiv2::tiffIfd:
+       case Exiv2::tiffIfd8:
+-        val = QVariant::fromValue( static_cast< int >( it->toLong() ) );
++        val = QVariant::fromValue( static_cast< int >( it->toInt64() ) );
+         break;
+ 
+       case Exiv2::date:
diff --git a/graphics/qgis/pkg-plist b/graphics/qgis/pkg-plist
index 8c3c4063dd8e..219fbed9ee81 100644
--- a/graphics/qgis/pkg-plist
+++ b/graphics/qgis/pkg-plist
@@ -1,5 +1,6 @@
 %%SERVER%%bin/admin.sld
 bin/qgis
+bin/qgis_bench
 %%SERVER%%bin/qgis_mapserv.fcgi
 %%SERVER%%bin/qgis_mapserver
 bin/qgis_process



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307092209.369M9sF7034550>