[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#686103: libetpan: FTBFS on hurd-i386

Source: libetpan
Version: 1.1-2
Severity: important
Tags: patch
User: debian-hurd@lists.debian.org
Usertags: hurd


Currently libetpan does not build for GNU/Hurd due to PATH_MAX issues.
The patch inlined below defines PATH_MAX to be 4096 if not defined.
Since there are too many strings using the fixed length of PATH_MAX in
the code it is not worth the effort to convert to dynamic allocation.
(At least not at this time, unless upstream shows interest.)


--- a/libetpan-config.h.in      2008-05-23 00:39:44.000000000 +0200
+++ b/libetpan-config.h.in      2012-08-28 17:36:00.000000000 +0200
@@ -15,6 +15,9 @@
 @include <limits.h>
+#ifndef PATH_MAX
+@define PATH_MAX 4096
 /* support for ARM platforms with a 2.95.3 arm-gcc suite */
 @include <sys/param.h>
--- a/tests/option-parser.c     2010-11-16 21:46:35.000000000 +0100
+++ b/tests/option-parser.c     2012-08-28 17:36:25.000000000 +0200
@@ -12,6 +12,9 @@
 #include <stdlib.h>
 #include <string.h>
 #include <limits.h>
+#ifndef PATH_MAX
+#define PATH_MAX 4096
 #include <libetpan/libetpan.h>

Reply to: