Source: libedit
Version: 3.1-20130712-1~exp2
Severity: important
Tags: patch
User: debian-h...@lists.debian.org
Usertags: hurd

Hi,

libedit 3.1 does not compile on Hurd [1].

The problem is due to an unconditional usage of the POSIX-optional
PATH_MAX; unfortunately it is used in a static buffer, so hard to make
it go away cleanly. The easiest solution I am providing is defining
PATH_MAX if not defined already; another one could be allocate just
once the buffer needed, at the cost of "leaking" such buffer even if
until the end of the run.

Since I read you are going to upload it soon to unstable, then the
easiest solution will do it for now.

[1] 
https://buildd.debian.org/status/fetch.php?pkg=libedit&arch=hurd-i386&ver=3.1-20130712-1%7Eexp2&stamp=1376420039

Thanks,
-- 
Pino
--- a/src/readline.c
+++ b/src/readline.c
@@ -59,6 +59,10 @@
 # define SIZE_T_MAX (size_t)(-1)
 #endif
 
+#if !defined(PATH_MAX)
+# define PATH_MAX 4096
+#endif
+
 void rl_prep_terminal(int);
 void rl_deprep_terminal(void);
 

Reply via email to