--- /dev/null
+--- octave-3.2.4/src/DLD-FUNCTIONS/__magick_read__.cc 2009-08-25 10:26:01.000000000 +0200
++++ octave-3.3.51/src/DLD-FUNCTIONS/__magick_read__.cc 2010-03-03 18:49:00.000000000 +0100
+@@ -27,6 +28,7 @@
+
+ #include <cmath>
+
++#include "oct-env.h"
+ #include "defun-dld.h"
+ #include "error.h"
+ #include "ov-struct.h"
+@@ -358,6 +384,17 @@
+
+ #ifdef HAVE_MAGICK
+
++ static bool initialized = false;
++
++ if (! initialized)
++ {
++ std::string program_name = octave_env::get_program_invocation_name ();
++
++ Magick::InitializeMagick (program_name.c_str ());
++
++ initialized = true;
++ }
++
+ if (args.length () > 2 || args.length () < 1 || ! args(0).is_string ()
+ || nargout > 3)
+ {
Summary(zh_CN.UTF-8): GNU Octave - 用于数字计算的高级语言。
Name: octave
Version: 3.2.4
-Release: 1
+Release: 2
Epoch: 2
License: GPL v3+
Group: Applications/Math
Patch2: %{name}-ncurses.patch
Patch3: %{name}-no-ftgl.patch
Patch4: %{name}-parallel-make.patch
+Patch5: %{name}-InitializeMagick.patch
URL: http://www.octave.org/
BuildRequires: AMD-devel
BuildRequires: CAMD-devel
BuildRequires: zlib-devel
Requires(post,postun): /sbin/ldconfig
Requires: gnuplot
+Suggests: GraphicsMagick
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
%build
RPM_BUILD_NR_THREADS="%(echo "%{__make}" | sed -e 's#.*-j\([[:space:]]*[0-9]\+\)#\1#g')"