diff options
author | Remi Collet <remi@remirepo.net> | 2020-10-19 15:01:05 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2020-10-19 15:01:05 +0200 |
commit | 432596546008500784c7e36af29129b968e534ce (patch) | |
tree | b0229cd7034de0554bb0666fdd079fa1a57c2ab1 | |
parent | 120cb7f21e355684217762dad5270cfde058a77a (diff) |
add upstream patch for old libheif (EL-7)
-rw-r--r-- | ImageMagick6.spec | 8 | ||||
-rw-r--r-- | b506f7716c8e43e13707a394cc088e4d9d4c4098.patch | 29 |
2 files changed, 36 insertions, 1 deletions
diff --git a/ImageMagick6.spec b/ImageMagick6.spec index f4ceddf..76cf8dd 100644 --- a/ImageMagick6.spec +++ b/ImageMagick6.spec @@ -71,13 +71,15 @@ Name: %{libname}6 %global move 1 %endif Version: %{VER}.%{Patchlevel} -Release: 1%{?dist} +Release: 2%{?dist} Summary: An X application for displaying and manipulating images License: ImageMagick Url: http://www.imagemagick.org/ #Source0: ftp://ftp.ImageMagick.org/pub/ImageMagick/ImageMagick-%%{VER}-%%{Patchlevel}.tar.xz Source0: https://www.imagemagick.org/download/ImageMagick-%{VER}-%{Patchlevel}.tar.xz +Patch0: https://github.com/ImageMagick/ImageMagick6/commit/b506f7716c8e43e13707a394cc088e4d9d4c4098.patch + BuildRequires: gcc BuildRequires: gcc-c++ %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 @@ -379,6 +381,7 @@ however. %prep %setup -q -n %{libname}-%{VER}-%{Patchlevel} +%patch0 -p1 -b .up # for %%doc mkdir Magick++/examples @@ -637,6 +640,9 @@ fi %changelog +* Mon Oct 19 2020 Remi Collet <remi@remirepo.net> - 6.9.11.34-2 +- add upstream patch for old libheif (EL-7) + * Fri Oct 9 2020 Remi Collet <remi@remirepo.net> - 6.9.11.34-1 - update to version 6.9.11 patch level 34 diff --git a/b506f7716c8e43e13707a394cc088e4d9d4c4098.patch b/b506f7716c8e43e13707a394cc088e4d9d4c4098.patch new file mode 100644 index 0000000..b85bcdd --- /dev/null +++ b/b506f7716c8e43e13707a394cc088e4d9d4c4098.patch @@ -0,0 +1,29 @@ +From b506f7716c8e43e13707a394cc088e4d9d4c4098 Mon Sep 17 00:00:00 2001 +From: Dirk Lemstra <dirk@lemstra.org> +Date: Fri, 16 Oct 2020 11:05:28 +0200 +Subject: [PATCH] Added version check for + heif_image_handle_get_luma_bits_per_pixel. + +--- + coders/heic.c | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/coders/heic.c b/coders/heic.c +index d8ca048e8..3ba368b15 100644 +--- a/coders/heic.c ++++ b/coders/heic.c +@@ -303,10 +303,13 @@ static Image *ReadHEICImage(const ImageInfo *image_info, + /* + Set image size. + */ +- image->depth=8; + image->columns=(size_t) heif_image_handle_get_width(image_handle); + image->rows=(size_t) heif_image_handle_get_height(image_handle); ++#if LIBHEIF_NUMERIC_VERSION > 0x01040000 + image->depth=(size_t) heif_image_handle_get_luma_bits_per_pixel(image_handle); ++#else ++ image->depth=8; ++#endif + preserve_orientation=IsStringTrue(GetImageOption(image_info, + "heic:preserve-orientation")); + if (preserve_orientation == MagickFalse) |