summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2023-09-18 07:28:19 +0200
committerRemi Collet <remi@php.net>2023-09-18 07:28:19 +0200
commit065376aaf8ce4ed83671f0ebca730dade5d023c6 (patch)
treeb640f74db9d0bedf2ec51bca2d476aaf7f142647
parent1f91be8f8e82e8aa179343dff65e19638349fa80 (diff)
update to version 6.9.12 patch level 94
fix build using patch from https://github.com/ImageMagick/ImageMagick6/pull/269
-rw-r--r--0001-fix-type-cast.patch25
-rw-r--r--ImageMagick6.spec9
2 files changed, 33 insertions, 1 deletions
diff --git a/0001-fix-type-cast.patch b/0001-fix-type-cast.patch
new file mode 100644
index 0000000..0c69b4c
--- /dev/null
+++ b/0001-fix-type-cast.patch
@@ -0,0 +1,25 @@
+From a97ce11225d0b043ed62b8ef56e848d5578e11f2 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Mon, 18 Sep 2023 06:45:04 +0200
+Subject: [PATCH] fix type cast
+
+---
+ PerlMagick/quantum/quantum.xs.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/PerlMagick/quantum/quantum.xs.in b/PerlMagick/quantum/quantum.xs.in
+index d58ca0d53..96c65721d 100644
+--- a/PerlMagick/quantum/quantum.xs.in
++++ b/PerlMagick/quantum/quantum.xs.in
+@@ -10843,7 +10843,7 @@ Mogrify(ref,...)
+ channel=(ChannelType) argument_list[1].integer_reference;
+ method=UndefinedMorphology;
+ if (attribute_flag[2] != 0)
+- method=(MorphologyMethod)) argument_list[2].integer_reference;
++ method=(MorphologyMethod) argument_list[2].integer_reference;
+ iterations=1;
+ if (attribute_flag[3] != 0)
+ iterations=argument_list[3].integer_reference;
+--
+2.41.0
+
diff --git a/ImageMagick6.spec b/ImageMagick6.spec
index 9bc12de..948cda9 100644
--- a/ImageMagick6.spec
+++ b/ImageMagick6.spec
@@ -9,7 +9,7 @@
# Please preserve changelog entries
#
%global VER 6.9.12
-%global Patchlevel 93
+%global Patchlevel 94
%global incsuffixe -6
%global libsuffixe -6.Q16
%bcond_without tests
@@ -73,6 +73,8 @@ Url: http://www.imagemagick.org/
#Source0: https://www.imagemagick.org/download/ImageMagick-%%{VER}-%%{Patchlevel}.tar.xz
Source0: https://imagemagick.org/archive/ImageMagick-%{VER}-%{Patchlevel}.tar.xz
+Patch0: 0001-fix-type-cast.patch
+
BuildRequires: gcc
BuildRequires: gcc-c++
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
@@ -386,6 +388,7 @@ however.
%prep
%setup -q -n %{libname}-%{VER}-%{Patchlevel}
+%patch -P0 -p1
# for %%doc
mkdir Magick++/examples
@@ -643,6 +646,10 @@ fi
%changelog
+* Mon Sep 18 2023 Remi Collet <remi@remirepo.net> - 6.9.12.94-1
+- update to version 6.9.12 patch level 94
+- fix build using patch from https://github.com/ImageMagick/ImageMagick6/pull/269
+
* Mon Jul 31 2023 Remi Collet <remi@remirepo.net> - 6.9.12.93-1
- update to version 6.9.12 patch level 93