[Pkg-gmagick-im-team] Bug#628020: imagemagick: FTBFS on hurd-i386

Pino Toscano toscano.pino at tiscali.it
Thu May 26 13:01:21 UTC 2011


Package: imagemagick
Version: 8:6.6.9.7-2
Severity: important
Tags: patch

Hi,

the new imagemagik 8:6.6.9.7-2 fail to build[1] on hurd-i386.
The problem is due to a variable not renamed in a Hurd-specific block
of code in magick/utility.c.
The attached patch fixes the issue, fixing also a missing +1 in the
calculation of "extent".

[1] https://buildd.debian.org/status/fetch.php?pkg=imagemagick&arch=hurd-i386&ver=8%3A6.6.9.7-2&stamp=1306337160

Thanks,
-- 
Pino
-------------- next part --------------
--- a/magick/utility.c
+++ b/magick/utility.c
@@ -1019,12 +1019,12 @@
         size_t
           extent;
 
-        extent=strlen(cwd)+strlen(program_name)+1;
+        extent=strlen(directory)+1+strlen(program_name)+1;
         program_name=AcquireQuantumMemory(extent,sizeof(*program_name));
         if (program_name == (char *) NULL)
           program_name=program_invocation_name;
         else
-          count=FormatMagickString(program_name,extent,"%s/%s",cwd,
+          count=FormatMagickString(program_name,extent,"%s/%s",directory,
             program_invocation_name);
       }
     if (count != -1)


More information about the Pkg-gmagick-im-team mailing list