From 3044e2af363b9a3ece64da4e4e17abdf367d32fc Mon Sep 17 00:00:00 2001 From: oreo639 <31916379+Oreo639@users.noreply.github.com> Date: Sun, 21 Aug 2022 17:00:18 -0700 Subject: [PATCH] exempi: update to 2.6.2. --- ...f034705fd2d032c81383eee8208fd4eee0ac.patch | 43 ------------------- .../patches/exempi-e23c213-typeinfos.patch | 29 +++++++++++++ srcpkgs/exempi/template | 4 +- 3 files changed, 31 insertions(+), 45 deletions(-) delete mode 100644 srcpkgs/exempi/patches/8ed2f034705fd2d032c81383eee8208fd4eee0ac.patch create mode 100644 srcpkgs/exempi/patches/exempi-e23c213-typeinfos.patch diff --git a/srcpkgs/exempi/patches/8ed2f034705fd2d032c81383eee8208fd4eee0ac.patch b/srcpkgs/exempi/patches/8ed2f034705fd2d032c81383eee8208fd4eee0ac.patch deleted file mode 100644 index 2696793cec09..000000000000 --- a/srcpkgs/exempi/patches/8ed2f034705fd2d032c81383eee8208fd4eee0ac.patch +++ /dev/null @@ -1,43 +0,0 @@ -From 8ed2f034705fd2d032c81383eee8208fd4eee0ac Mon Sep 17 00:00:00 2001 -From: Victor Rodriguez -Date: Sat, 18 Aug 2018 13:54:55 +0000 -Subject: [PATCH] Issue #9 - Fix null-pointer-dereference (CVE-2018-12648) -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -The WEBP::GetLE32 function in -XMPFiles/source/FormatSupport/WEBP_Support.hpp in Exempi 2.4.5 has a -NULL pointer dereference. - -https://bugs.freedesktop.org/show_bug.cgi?id=106981 -https://gitlab.freedesktop.org/libopenraw/exempi/issues/9 - -Signed-off-by: Victor Rodriguez -Signed-off-by: Hubert Figuière ---- - XMPFiles/source/FormatSupport/WEBP_Support.cpp | 8 +++++--- - 1 file changed, 5 insertions(+), 3 deletions(-) - -diff --git a/XMPFiles/source/FormatSupport/WEBP_Support.cpp b/XMPFiles/source/FormatSupport/WEBP_Support.cpp -index ffaf220..4fe705b 100644 ---- a/XMPFiles/source/FormatSupport/WEBP_Support.cpp -+++ b/XMPFiles/source/FormatSupport/WEBP_Support.cpp -@@ -160,9 +160,11 @@ bool VP8XChunk::xmp() - } - void VP8XChunk::xmp(bool hasXMP) - { -- XMP_Uns32 flags = GetLE32(&this->data[0]); -- flags ^= (-hasXMP ^ flags) & (1 << XMP_FLAG_BIT); -- PutLE32(&this->data[0], flags); -+ if (&this->data[0] != NULL) { -+ XMP_Uns32 flags = GetLE32(&this->data[0]); -+ flags ^= (-hasXMP ^ flags) & (1 << XMP_FLAG_BIT); -+ PutLE32(&this->data[0], flags); -+ } - } - - Container::Container(WEBP_MetaHandler* handler) : Chunk(NULL, handler) --- -2.18.0 - diff --git a/srcpkgs/exempi/patches/exempi-e23c213-typeinfos.patch b/srcpkgs/exempi/patches/exempi-e23c213-typeinfos.patch new file mode 100644 index 000000000000..66c8f835b2e9 --- /dev/null +++ b/srcpkgs/exempi/patches/exempi-e23c213-typeinfos.patch @@ -0,0 +1,29 @@ +Source: https://src.fedoraproject.org/rpms/exempi/blob/f37/f/exempi-e23c213-typeinfos.patch + +From d45c06270576493e1537080fa43c1af667c4337a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Nikola=20Forr=C3=B3?= +Date: Tue, 12 Oct 2021 14:15:17 +0200 +Subject: [PATCH] Avoid multiple definitions of typeinfos + +--- + XMPFiles/source/XMPFiles_Impl.cpp | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/XMPFiles/source/XMPFiles_Impl.cpp b/XMPFiles/source/XMPFiles_Impl.cpp +index 2f918ac..ff45040 100644 +--- a/XMPFiles/source/XMPFiles_Impl.cpp ++++ b/XMPFiles/source/XMPFiles_Impl.cpp +@@ -47,7 +47,9 @@ using namespace std; + /// This file ... + /// + // ================================================================================================= +-#include "public/include/XMP.incl_cpp" ++#if ! XMP_StaticBuild ++ #include "public/include/XMP.incl_cpp" ++#endif + + #if XMP_WinBuild + #pragma warning ( disable : 4290 ) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow) +-- +2.33.0 + diff --git a/srcpkgs/exempi/template b/srcpkgs/exempi/template index 14753617953a..d664f7dc4d80 100644 --- a/srcpkgs/exempi/template +++ b/srcpkgs/exempi/template @@ -1,6 +1,6 @@ # Template file for 'exempi' pkgname=exempi -version=2.5.0 +version=2.6.2 revision=1 build_style=gnu-configure configure_args="--with-boost=${XBPS_CROSS_BASE}/usr --disable-static --disable-unittest" @@ -10,7 +10,7 @@ maintainer="Orphaned " license="BSD-3-Clause" homepage="https://libopenraw.freedesktop.org/wiki/Exempi" distfiles="https://libopenraw.freedesktop.org/download/exempi-${version}.tar.bz2" -checksum=dc82fc24c0540a44a63fa4ad21775d24e00e63f1dedd3e2ae6f7aa27583b711b +checksum=4d17d4c93df2a95da3e3172c45b7a5bf317dd31dafd1c7a340169728c7089d1d post_install() { vlicense COPYING