Package: psiconv
Version: 0.9.8-4.1
Severity: grave
Tags: patch
Justification: renders package unusable
Recent versions of GraphicsMagick require the InitializeMagick API to be called:
1.3.8 (January 21, 2010)
========================
[…]
Behavior Changes:
* InitializeMagick() MUST be invoked prior to using any Magick API
function. Failure to do so will likely lead to an immediate
application crash. This is due to initialization and runtime
changes intended to improve thread safety and efficiency.
Previously it was only strongly recommended to invoke
InitializeMagick().
The attached patch fixes this issue for psiconv. Note that this patch
also works for building against ImageMagick (because InitializeMagick
is a long-standing API), and in any case it would only apply to old
versions, since psiconv's configure script detects GraphicsMagick as
API level 2, whereas the highest API level it detects is 4.
The only recent change is that calling InitializeMagick used to be
optional, whereas it is now mandatory.
-- System Information:
Debian Release: squeeze/sid
APT prefers maverick-updates
APT policy: (500, 'maverick-updates'), (500, 'maverick-security'), (500,
'maverick-backports'), (500, 'maverick')
Architecture: i386 (i686)
Kernel: Linux 2.6.35-24-generic (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages psiconv depends on:
ii libbz2-1.0 1.0.5-4ubuntu1 high-quality block-sorting file co
ii libc6 2.12.1-0ubuntu10 Embedded GNU C Library: Shared lib
ii libfreetype6 2.4.2-2ubuntu0.1 FreeType 2 font engine, shared lib
ii libgomp1 4.5.1-7ubuntu2 GCC OpenMP (GOMP) support library
ii libgraphicsmagic 1.3.12-1 format-independent image processin
ii libice6 2:1.0.6-1 X11 Inter-Client Exchange library
ii libjasper1 1.900.1-7 The JasPer JPEG-2000 runtime libra
ii libjpeg62 6b-16.1 The Independent JPEG Group's JPEG
ii liblcms1 1.18.dfsg-1ubuntu2 Color management library
ii libpng12-0 1.2.44-1 PNG library - runtime
ii libpsiconv6 0.9.8-4.1 a library for handling Psion files
ii libsm6 2:1.1.1-1 X11 Session Management library
ii libtiff4 3.9.4-2 Tag Image File Format (TIFF) libra
ii libwmf0.2-7 0.2.8.4-7ubuntu2 Windows metafile conversion librar
ii libx11-6 2:1.3.3-3ubuntu1 X11 client-side library
ii libxext6 2:1.1.2-1 X11 miscellaneous extension librar
ii libxml2 2.7.7.dfsg-4ubuntu0.1 GNOME XML library
ii zlib1g 1:1.2.3.4.dfsg-3ubuntu1 compression library - runtime
psiconv recommends no packages.
psiconv suggests no packages.
-- no debconf information
--- psiconv-0.9.8/configure.in 2005-11-15 15:43:19.000000000 +0000
+++ psiconv-0.9.8-rrt/configure.in 2011-01-10 12:35:58.000000000 +0000
@@ -112,6 +112,7 @@
#include <time.h>
#include <magick/api.h>
int main(void) { ExceptionInfo exception;
+ InitializeMagick(NULL);
GetExceptionInfo(&exception);
OpenModules(&exception);
return (NULL == GetMagickInfo(NULL,&exception)); }],
--- psiconv-0.9.8/program/psiconv/magick-aux.c 2005-11-15 15:08:21.000000000 +0000
+++ psiconv-0.9.8-rrt/program/psiconv/magick-aux.c 2011-01-10 12:37:09.000000000 +0000
@@ -37,6 +37,7 @@
const MagickInfo * GetMagickFileList(void)
{
ExceptionInfo exc;
+ InitializeMagick(NULL);
GetExceptionInfo(&exc);
OpenModules(&exc);
return GetMagickInfo(NULL,&exc);