diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2018-07-09 22:55:44 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2018-07-09 22:56:08 +0200 |
commit | 0cef8ccb6f51e3183b5878b14e2987caa0cd26c1 (patch) | |
tree | 40c4fdf3a38101befce22de518f5959c8daacb77 /media-gfx | |
parent | x11-terms/terminology: clean old (diff) | |
download | gentoo-0cef8ccb6f51e3183b5878b14e2987caa0cd26c1.tar.gz gentoo-0cef8ccb6f51e3183b5878b14e2987caa0cd26c1.tar.bz2 gentoo-0cef8ccb6f51e3183b5878b14e2987caa0cd26c1.zip |
media-gfx/imagemagick: fix FTBFS on x86
Closes: https://bugs.gentoo.org/653752
Package-Manager: Portage-2.3.41, Repoman-2.3.9
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/imagemagick/files/imagemagick-7.0.26-FTBFS-on-i386.patch | 36 | ||||
-rw-r--r-- | media-gfx/imagemagick/imagemagick-6.9.10.5.ebuild | 2 | ||||
-rw-r--r-- | media-gfx/imagemagick/imagemagick-7.0.8.5.ebuild | 2 |
3 files changed, 40 insertions, 0 deletions
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 index 000000000000..c568ed345ecd --- /dev/null +++ b/media-gfx/imagemagick/files/imagemagick-7.0.26-FTBFS-on-i386.patch @@ -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 (" diff --git a/media-gfx/imagemagick/imagemagick-6.9.10.5.ebuild b/media-gfx/imagemagick/imagemagick-6.9.10.5.ebuild index 1d46b538e85c..07ebb1e3f538 100644 --- a/media-gfx/imagemagick/imagemagick-6.9.10.5.ebuild +++ b/media-gfx/imagemagick/imagemagick-6.9.10.5.ebuild @@ -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() { diff --git a/media-gfx/imagemagick/imagemagick-7.0.8.5.ebuild b/media-gfx/imagemagick/imagemagick-7.0.8.5.ebuild index 49b5b2b7bbd7..15b1ca966bf5 100644 --- a/media-gfx/imagemagick/imagemagick-7.0.8.5.ebuild +++ b/media-gfx/imagemagick/imagemagick-7.0.8.5.ebuild @@ -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() { |