[Evolution] Bug#645552: perl: MAXPATHLEN set too small

Svante Signell svante.signell at telia.com
Sun Jan 22 14:59:14 UTC 2012


Package: perl
Version: 25.14.2-6
Severity: important
Tags: patch
User: debian-hurd at lists.debian.org
Usertags: hurd

In perl-5.14.2/ext/File-Glob/bsd_glob.c the following definitions are
made:
#ifndef MAXPATHLEN
#  ifdef PATH_MAX
#    define     MAXPATHLEN      PATH_MAX
#  else
#    define     MAXPATHLEN      1024
#  endif
#endif

Since neither MAXPATHLEN nor PATH_MAX are defined for GNU/Hurd the
default value 1024 is used. This value is far too small, and it hurts
when building evolution, see bug #645552, resulting in a build failure.

Can you please change the default from 1024 to 4096 to be on par with
the constants used by other OSes, like Linux and kFreeBSD. The best
solution however, would be if upstream changed to use dynamic allocation
of strings in bsd_Glob.c instead of fixed-length string arrays. That
will probably happen when a glob pattern exceeds 4096 bytes, if not
earlier.

Thanks!






More information about the Pkg-evolution-maintainers mailing list