[packages/ImageMagick] update libraw version check for final release

atler atler at pld-linux.org
Tue Jan 13 21:25:01 CET 2026


commit 6e17d776f3ca4cc28bb55e9bfdcad942d89fc371
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue Jan 13 21:09:24 2026 +0100

    update libraw version check for final release

 ImageMagick.spec  |  3 ++-
 libraw-0.22.patch | 11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/ImageMagick.spec b/ImageMagick.spec
index 48b917e..e5eb4dc 100644
--- a/ImageMagick.spec
+++ b/ImageMagick.spec
@@ -47,7 +47,7 @@ License:	Apache-like
 Group:		X11/Applications/Graphics
 Source0:	https://download.imagemagick.org/archive/releases/%{name}-%{ver}-%{pver}.tar.lz
 # Source0-md5:	f8fe29feda099c04e1bbd460cc248010
-
+Patch0:		libraw-0.22.patch
 Patch1:		%{name}-link.patch
 Patch2:		%{name}-libpath.patch
 Patch3:		%{name}-ldflags.patch
@@ -765,6 +765,7 @@ Moduł kodera dla plików WMF.
 %prep
 %setup -q -n %{name}-%{ver}-%{pver}
 
+%patch -P0 -p1
 %patch -P1 -p1
 %patch -P2 -p1
 %patch -P3 -p1
diff --git a/libraw-0.22.patch b/libraw-0.22.patch
new file mode 100644
index 0000000..22f1ff3
--- /dev/null
+++ b/libraw-0.22.patch
@@ -0,0 +1,11 @@
+--- ImageMagick-7.1.2-9/coders/dng.c.orig	2025-11-30 14:26:20.000000000 +0100
++++ ImageMagick-7.1.2-9/coders/dng.c	2026-01-13 21:06:57.346461706 +0100
+@@ -332,7 +332,7 @@
+ }
+ 
+ static void LibRawDataError(void *data,const char *magick_unused(file),
+-#if defined(MAGICK_LIBRAW_VERSION_TAIL) && MAGICK_LIBRAW_VERSION_TAIL == 202502
++#if defined(LIBRAW_MAJOR_VERSION) && defined(LIBRAW_MINOR_VERSION) && (LIBRAW_MAJOR_VERSION > 0 || LIBRAW_MINOR_VERSION >= 22)
+   const INT64 offset)
+ #else
+   const int offset)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ImageMagick.git/commitdiff/cf132994d1a3c26a86377fe710e04ae8f35bf816



More information about the pld-cvs-commit mailing list