Pino Toscano
2013-10-13 17:34:08 UTC
Hi,
attached there is a patch for autogen to fix the definition of
MAXPATHLEN when not defined already (either not directly or because
PATH_MAX is not defined either).
This caused a build failure in sharutils (which embeds the libopts part
of autogen) on GNU/Hurd (which provides no PATH_MAX nor MAXPATHLEN) [1].
This happens because in autogen's autoopts.h there is:
# if defined(PATH_MAX) && (PATH_MAX > MAXPATHLEN)
which triggers a preprocessor parsing error when MAXPATHLEN is defined
as (size_t)4096.
[1] https://buildd.debian.org/status/fetch.php?pkg=sharutils&arch=hurd-i386&ver=1%3A4.13.5-1&stamp=1381663210
Thanks,
attached there is a patch for autogen to fix the definition of
MAXPATHLEN when not defined already (either not directly or because
PATH_MAX is not defined either).
This caused a build failure in sharutils (which embeds the libopts part
of autogen) on GNU/Hurd (which provides no PATH_MAX nor MAXPATHLEN) [1].
This happens because in autogen's autoopts.h there is:
# if defined(PATH_MAX) && (PATH_MAX > MAXPATHLEN)
which triggers a preprocessor parsing error when MAXPATHLEN is defined
as (size_t)4096.
[1] https://buildd.debian.org/status/fetch.php?pkg=sharutils&arch=hurd-i386&ver=1%3A4.13.5-1&stamp=1381663210
Thanks,
--
Pino Toscano
Pino Toscano