media-gfx/imagemagick: fix build issue in MagickCore/quantum-private.h
authorThomas Deutschmann <whissi@gentoo.org>
Wed, 22 Aug 2018 20:12:30 +0000 (22:12 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Wed, 22 Aug 2018 20:21:39 +0000 (22:21 +0200)
Closes: https://bugs.gentoo.org/664226
Package-Manager: Portage-2.3.48, Repoman-2.3.10

media-gfx/imagemagick/files/imagemagick-7.0.8.10-quantum-private-compile-fix.patch [new file with mode: 0644]
media-gfx/imagemagick/imagemagick-7.0.8.10-r1.ebuild

diff --git a/media-gfx/imagemagick/files/imagemagick-7.0.8.10-quantum-private-compile-fix.patch b/media-gfx/imagemagick/files/imagemagick-7.0.8.10-quantum-private-compile-fix.patch
new file mode 100644 (file)
index 0000000..4514dcc
--- /dev/null
@@ -0,0 +1,24 @@
+https://bugs.gentoo.org/664226
+
+From 6cc5e2d68431249a647f22e5320f8a0481e3e3f4 Mon Sep 17 00:00:00 2001
+From: Cristy <urban-warrior@imagemagick.org>
+Date: Wed, 15 Aug 2018 16:59:30 -0400
+Subject: [PATCH] Fix compile exception
+
+---
+ MagickCore/quantum-private.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/MagickCore/quantum-private.h b/MagickCore/quantum-private.h
+index e02c70348c..2ff6babb7c 100644
+--- a/MagickCore/quantum-private.h
++++ b/MagickCore/quantum-private.h
+@@ -659,7 +659,7 @@ static inline MagickSizeType ScaleQuantumToLongLong(const Quantum quantum)
+     return(0);
+   if (quantum >= 18446744073709551615)
+     return(18446744073709551615);
+-  return((MagickSizeType (quantum+0.5));
++  return((MagickSizeType) (quantum+0.5));
+ #endif
+ }
index be9dabf5dacac58ed84042017f11c6bf9846ee1f..48cf34160eaca9dfc1a2a71f3684917b4ad3ed78 100644 (file)
@@ -16,6 +16,8 @@ else
        MY_P=ImageMagick-$(ver_rs 3 '-')
        SRC_URI="mirror://${PN}/${MY_P}.tar.xz"
        KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+
+       PATCHES+=( "${FILESDIR}"/${P}-quantum-private-compile-fix.patch ) #664226
 fi
 
 DESCRIPTION="A collection of tools and libraries for many image formats"