sci-mathematics/octave: Fix w/ media-gfx/graphicsmagick-1.3.30[imagemagick]
authorDennis Schridde <devurandom@gmx.net>
Fri, 13 Jul 2018 06:19:44 +0000 (08:19 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Wed, 12 Sep 2018 05:28:08 +0000 (07:28 +0200)
Closes: https://bugs.gentoo.org/661046

sci-mathematics/octave/files/octave-4.4.0-imagemagick.patch

index 2f651e0995ee62c57432da27aeb31aa9585efb85..2aa6e5b9d8c6cd3395b74eca036cc2f6fefd7cdc 100644 (file)
@@ -1,16 +1,22 @@
 --- a/libinterp/corefcn/__magick_read__.cc     2018-05-22 12:25:37.688173855 +0200
 +++ a/libinterp/corefcn/__magick_read__.cc.new 2018-05-22 12:32:51.475172200 +0200
-@@ -817,10 +817,11 @@
+@@ -817,10 +817,19 @@
        // depth is 8, there's a good chance that we will be limited.  It
        // is also the GraphicsMagick recommended setting and the default
        // for ImageMagick.
--      if (QuantumDepth < 16)
++#ifdef QuantumDepth
+       if (QuantumDepth < 16)
++#else
 +      using namespace Magick;
 +      if (MAGICKCORE_QUANTUM_DEPTH < 16)
++#endif
          warning_with_id ("Octave:GraphicsMagick-Quantum-Depth",
                           "your version of %s limits images to %d bits per pixel\n",
--                         MagickPackageName, QuantumDepth);
++#ifdef QuantumDepth
+                          MagickPackageName, QuantumDepth);
++#else
 +                         MagickPackageName, MAGICKCORE_QUANTUM_DEPTH);
++#endif
  
        initialized = true;
      }