I don't get this part:
> +#  elif defined MAXPATHLEN
> +#    define MAXPATHLEN

If it's defined, define it?

On 10/30/2010 07:18 PM, Manuel Menal wrote:
> Package: gimp
> Version: 2.6.11
> Severity: serious
> Tags: patch
> Justification: fails to build from source
> 
> 
> Hello,
> 
> gimp FTBFS on Debian GNU/Hurd, because one of its plugins uses the PATH_MAX 
> constant 
> unconditionnally. PATH_MAX is optional in POSIX and undefined on GNU/Hurd, as 
> there is no 
> global limit to path sizes.
> 
> Here is a very simple patch to fix the problem. A better solution would be to 
> use dynamic 
> allocation instead of fixed-size buffers, but that would require a much 
> larger patch.
> 
> diff -Nurp gimp-2.6.11.orig/plug-ins/common/qbist.c 
> gimp-2.6.11/plug-ins/common/qbist.c
> --- gimp-2.6.11.orig/plug-ins/common/qbist.c  2010-07-03 00:51:56.000000000 
> +0200
> +++ gimp-2.6.11/plug-ins/common/qbist.c       2010-10-31 01:08:03.764667339 
> +0200
> @@ -41,8 +41,14 @@
>  
>  #include "libgimp/stdplugins-intl.h"
>  
> -#if ! defined PATH_MAX && defined _MAX_PATH
> -#  define PATH_MAX _MAX_PATH
> +#if ! defined PATH_MAX
> +#  if defined _MAX_PATH
> +#    define PATH_MAX _MAX_PATH
> +#  elif defined MAXPATHLEN
> +#    define MAXPATHLEN
> +#  else
> +#    define PATH_MAX 1024
> +#  endif
>  #endif
>  
>  /** qbist renderer 
> ***********************************************************/
> 
> Thanks!
> 
> -- System Information:
> Debian Release: squeeze/sid
>   APT prefers unstable
>   APT policy: (500, 'unstable')
> Architecture: hurd-i386 (i686-AT386)
> 
> Kernel: GNU-Mach 1.3.99/Hurd-0.3
> Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
> Shell: /bin/sh linked to /bin/bash
> 
> 




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to