Source: imagemagick
Version: 6.9.9.39+dfsg-1
Severity: important
Tags: patch, i386
User: debian-h...@lists.debian.org, debian-...@lists.debian.org
Usertags: hurd

Hi,

imagemagick currently FTBFS on any-i386 architectures:
i386, hurd-i386 and kfrebsd-i386. 

The attached patch: 0019-Fix-FTBFS-on-any-i386.patch
makes the tests succeed so that the build completes.

The attached patch has been used to successfully build packages for linux-i386,
linux-amd64 and hurd-i386. The reason to build on linux-amd64 is to check that
the patch does not affect 64-bit architectures.

Thanks!
--- a/Magick++/tests/attributes.cpp.orig	2018-03-18 15:15:56.000000000 +0100
+++ b/Magick++/tests/attributes.cpp	2018-05-08 16:06:41.820001000 +0200
@@ -154,7 +154,7 @@
     //
 
     // Test default value.
-    if ( image.backgroundColor() != ColorRGB("white") )
+    if ( image.backgroundColor() != string(ColorRGB("white")) )
       {
 	++failures;
 	cout << "Line: " << __LINE__ << ", backgroundColor default ("
@@ -1068,7 +1068,7 @@
     // pixelColor
     //
     // Test default
-    if ( image.pixelColor(40,60) != canvasColor )
+    if ( image.pixelColor(40,60) != string(canvasColor) )
       {
 	++failures;
 	cout << "Line: " << __LINE__ << ", pixelColor default ("

Reply via email to