Package: vala
Version: 0.7.2-1
Severity: normal
Hi,
Vala currently fails to build on Debian GNU/Hurd because of
unconditional use of PATH_MAX. Here is a patch that fixes the issue.
Thank you,
Barry deFreese
diff -urN vala-0.7.2.orig/gobject-introspection/grealpath.h
vala-0.7.2/gobject-introspection/grealpath.h
--- vala-0.7.2.orig/gobject-introspection/grealpath.h 2009-04-09
16:01:10.000000000 -0400
+++ vala-0.7.2/gobject-introspection/grealpath.h 2009-05-25
18:19:15.000000000 -0400
@@ -10,11 +10,23 @@
static inline gchar*
g_realpath (const char *path)
{
+#if defined(__GLIBC__) || _POSIX_VERSION >= 200809L
+ char *buffer;
+ gchar *gret;
+ if ((buffer = realpath(path, NULL) != NULL)) {
+ gret = g_strdup(buffer);
+ free(buffer);
+ return gret;
+ } else {
+ return NULL;
+ }
+#else
char buffer [PATH_MAX];
if (realpath(path, buffer))
return g_strdup(buffer);
else
return NULL;
+#endif
}
#endif