Bug#219464: libdebian-installer: Patch for GNU/Hurd
Package: libdebian-installer
Version: 0.17
This package does not compile under GNU/Hurd because there is no
PATH_MAX there. The following patch makes it to compile:
diff -ru libdebian-installer-0.17.orig/src/system/dpkg.c libdebian-installer-0.17/src/system/dpkg.c
--- libdebian-installer-0.17.orig/src/system/dpkg.c 2003-10-09 14:16:36.000000000 +0200
+++ libdebian-installer-0.17/src/system/dpkg.c 2003-11-06 19:26:00.000000000 +0100
@@ -33,6 +33,9 @@
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
#if 0
int di_system_dpkg_package_configure (di_packages *status, const char *_package, bool force)
Alternatively, you might want to check for PATH_MAX in the configure script
or something alike and define PATH_MAX somewhere else (and of course,
if you want to allocate the required space dynamically instead of
assuming that there is a maximum path length, you are welcome to do so,
but I understand it might not worth the effort).
Thanks.
Reply to: