Package: icu
Version: 4.8.1-2
Severity: important
Tags: patch
User: debian-h...@lists.debian.org
Usertags: hurd

Hi,

currently[1], icu 4.8.1 fails to build on GNU/Hurd.
Basically, the switch from U_HURD to U_LINUX in configure enabled a
code path in source/common/putil.c which unconditionally relies on
PATH_MAX.
While a proper fix would not rely on PATH_MAX at all, the code relies
on fixed PATH_MAX-sizes buffers too much, so the quick fix (at least
just for Debian) is to define PATH_MAX if not defined.

[1] 
https://buildd.debian.org/status/fetch.php?pkg=icu&arch=hurd-i386&ver=4.8.1-2&stamp=1316056684

-- 
Pino
Index: icu-4.8.1/source/common/putil.c
===================================================================
--- icu-4.8.1.orig/source/common/putil.c	2011-07-19 23:16:30.000000000 +0200
+++ icu-4.8.1/source/common/putil.c	2011-09-28 01:57:09.000000000 +0200
@@ -149,6 +149,11 @@
 #include "icucfg.h"
 #endif
 
+/* Define PATH_MAX if not provided */
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
 /* Define the extension for data files, again... */
 #define DATA_TYPE "dat"
 

Reply via email to