media-gfx/imagemagick: fix FTBFS on x86
authorThomas Deutschmann <whissi@gentoo.org>
Mon, 9 Jul 2018 20:55:44 +0000 (22:55 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Mon, 9 Jul 2018 20:56:08 +0000 (22:56 +0200)
Closes: https://bugs.gentoo.org/653752
Package-Manager: Portage-2.3.41, Repoman-2.3.9

media-gfx/imagemagick/files/imagemagick-7.0.26-FTBFS-on-i386.patch [new file with mode: 0644]
media-gfx/imagemagick/imagemagick-6.9.10.5.ebuild
media-gfx/imagemagick/imagemagick-7.0.8.5.ebuild

diff --git a/media-gfx/imagemagick/files/imagemagick-7.0.26-FTBFS-on-i386.patch b/media-gfx/imagemagick/files/imagemagick-7.0.26-FTBFS-on-i386.patch
new file mode 100644 (file)
index 0000000..c568ed3
--- /dev/null
@@ -0,0 +1,36 @@
+Gentoo-Bug: https://bugs.gentoo.org/653752
+Upstream issue: https://github.com/ImageMagick/ImageMagick/issues/1019
+
+
+From 0c26fea274e615ff6b179bdd30e970a55f6c3f52 Mon Sep 17 00:00:00 2001
+From: Svante Signell <svante.signell@gmail.com>
+Date: Mon, 25 Jun 2018 16:06:19 +0200
+Subject: Fix FTBFS on i386 any
+
+bug-debian: https://bugs.debian.org/898914
+---
+ Magick++/tests/attributes.cpp | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Magick++/tests/attributes.cpp b/Magick++/tests/attributes.cpp
+index 9ebc67f2d..e969def27 100644
+--- a/Magick++/tests/attributes.cpp
++++ b/Magick++/tests/attributes.cpp
+@@ -154,7 +154,7 @@ int main( int /*argc*/, char ** argv)
+     //
+     // Test default value.
+-    if ( image.backgroundColor() != ColorRGB("white") )
++    if ( image.backgroundColor() != string(ColorRGB("white")) )
+       {
+       ++failures;
+       cout << "Line: " << __LINE__ << ", backgroundColor default ("
+@@ -1068,7 +1068,7 @@ int main( int /*argc*/, char ** argv)
+     // pixelColor
+     //
+     // Test default
+-    if ( image.pixelColor(40,60) != canvasColor )
++    if ( image.pixelColor(40,60) != string(canvasColor) )
+       {
+       ++failures;
+       cout << "Line: " << __LINE__ << ", pixelColor default ("
index 1d46b538e85ccdf79fe3e288bac9e3a057129720..07ebb1e3f538560d163eb80da709466a8cb4d938 100644 (file)
@@ -64,6 +64,8 @@ DEPEND="${RDEPEND}
 REQUIRED_USE="corefonts? ( truetype )
        test? ( corefonts )"
 
+PATCHES=( "${FILESDIR}"/${PN}-7.0.26-FTBFS-on-i386.patch )
+
 S="${WORKDIR}/${MY_P}"
 
 src_prepare() {
index 49b5b2b7bbd779d871af82ee55a654b47c58197a..15b1ca966bf54ab03c5e699ffc0e7661fec5655f 100644 (file)
@@ -64,6 +64,8 @@ DEPEND="${RDEPEND}
 REQUIRED_USE="corefonts? ( truetype )
        test? ( corefonts )"
 
+PATCHES=( "${FILESDIR}"/${PN}-7.0.26-FTBFS-on-i386.patch )
+
 S="${WORKDIR}/${MY_P}"
 
 src_prepare() {