From 0ebe2eb42f948bd20b174a9f101180847acf5b83 Mon Sep 17 00:00:00 2001 From: Mohammed Anas Date: Wed, 18 Oct 2023 19:18:38 +0100 Subject: [PATCH] hugin: revbump for exiv2-0.28.1. --- srcpkgs/hugin/patches/exiv2-0.28.patch | 77 ++++++++++++++++++++++++++ srcpkgs/hugin/template | 2 +- 2 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/hugin/patches/exiv2-0.28.patch diff --git a/srcpkgs/hugin/patches/exiv2-0.28.patch b/srcpkgs/hugin/patches/exiv2-0.28.patch new file mode 100644 index 00000000000..49f05181170 --- /dev/null +++ b/srcpkgs/hugin/patches/exiv2-0.28.patch @@ -0,0 +1,77 @@ +Patch-Source: https://gitlab.archlinux.org/archlinux/packaging/packages/hugin/-/blob/main/exiv2-0.28.patch +diff -r 79cd11a7a66f src/hugin_base/panodata/Exiv2Helper.cpp +--- a/src/hugin_base/panodata/Exiv2Helper.cpp Wed May 24 19:13:20 2023 +0200 ++++ b/src/hugin_base/panodata/Exiv2Helper.cpp Mon Jun 05 00:31:19 2023 +0200 +@@ -40,7 +40,7 @@ + Exiv2::ExifData::iterator itr = exifData.findKey(Exiv2::ExifKey(keyName)); + if (itr != exifData.end() && itr->count()) + { +- value = itr->toLong(); ++ value = itr->toUint32(); + return true; + } + else +@@ -165,7 +165,7 @@ + { + if(it!=exifData.end() && it->count()) + { +- return it->toLong(); ++ return it->toUint32(); + } + return 0; + }; +@@ -600,4 +600,4 @@ + }; + + }; //namespace Exiv2Helper +-}; //namespace HuginBase +\ No newline at end of file ++}; //namespace HuginBase +diff -r 79cd11a7a66f src/hugin_base/panodata/SrcPanoImage.cpp +--- a/src/hugin_base/panodata/SrcPanoImage.cpp Wed May 24 19:13:20 2023 +0200 ++++ b/src/hugin_base/panodata/SrcPanoImage.cpp Mon Jun 05 00:31:19 2023 +0200 +@@ -384,7 +384,7 @@ + pos = xmpData.findKey(Exiv2::XmpKey("Xmp.GPano.CroppedAreaImageWidthPixels")); + if (pos != xmpData.end()) + { +- croppedWidth = pos->toLong(); ++ croppedWidth = pos->toUint32(); + } + else + { +@@ -394,7 +394,7 @@ + pos = xmpData.findKey(Exiv2::XmpKey("Xmp.GPano.CroppedAreaImageHeightPixels")); + if (pos != xmpData.end()) + { +- croppedHeight = pos->toLong(); ++ croppedHeight = pos->toUint32(); + } + else + { +@@ -408,7 +408,7 @@ + double hfov = 0; + if (pos != xmpData.end()) + { +- hfov = 360 * croppedWidth / (double)pos->toLong(); ++ hfov = 360 * croppedWidth / (double)pos->toUint32(); + } + else + { +@@ -419,7 +419,7 @@ + pos = xmpData.findKey(Exiv2::XmpKey("Xmp.GPano.FullPanoHeightPixels")); + if (pos != xmpData.end()) + { +- fullHeight = pos->toLong(); ++ fullHeight = pos->toUint32(); + } + else + { +@@ -430,7 +430,7 @@ + pos = xmpData.findKey(Exiv2::XmpKey("Xmp.GPano.CroppedAreaTopPixels")); + if (pos != xmpData.end()) + { +- cropTop = pos->toLong(); ++ cropTop = pos->toUint32(); + } + else + { diff --git a/srcpkgs/hugin/template b/srcpkgs/hugin/template index ce71f6e4cbb..894876470eb 100644 --- a/srcpkgs/hugin/template +++ b/srcpkgs/hugin/template @@ -1,7 +1,7 @@ # Template file for 'hugin' pkgname=hugin version=2022.0.0 -revision=11 +revision=12 build_style=cmake build_helper=cmake-wxWidgets-gtk3 pycompile_dirs="usr/share/hugin/data/plugins usr/share/hugin/data/plugins-templates"