Package: tmux
Version: 1.4-1
Severity: serious
Tags: patch
Justification: fails to build from source
tmux-1.4 fails to build from source on the hurd since the PATH_MAX macro isn't
defined. There is already a debian specific patch to make tmux build on hurd
by simply defining it in case it is missing.
I'd suggest to do the same for PATH_MAX until someone fixes this properly.
I updated 05_build_kfreebsd_hurd.diff to also check for PATH_MAX and define
it when needed.
-- System Information:
Debian Release: 6.0
APT prefers unstable
APT policy: (900, 'unstable'), (300, 'experimental')
Architecture: hurd-i386 (i686-AT386)
Kernel: GNU-Mach 1.3.99/Hurd-0.3
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages tmux depends on:
ii libc0.3 2.11.2-7Embedded GNU C Library: Shared lib
ii libevent-1.4-2 1.4.13-stable-1 An asynchronous event notification
ii libncurses5 5.7+20100313-5 shared libraries for terminal hand
tmux recommends no packages.
tmux suggests no packages.
-- no debconf information
diff -r eb26a0c6b51a configure
--- a/configure Sat Jan 08 16:58:14 2011 +
+++ b/configure Sat Jan 08 16:59:43 2011 +
@@ -95,7 +95,7 @@
EOF
;;
# --
-Linux)
+Linux|GNU|GNU/kFreeBSD)
cat EOF $CONFIG_H
#define HAVE_ASPRINTF
#define HAVE_BZERO
diff -r eb26a0c6b51a tmux.h
--- a/tmux.h Sat Jan 08 16:58:14 2011 +
+++ b/tmux.h Sat Jan 08 16:59:43 2011 +
@@ -388,6 +388,18 @@
char argv[COMMAND_LENGTH];
};
+#ifndef MAXPATHLEN
+#define MAXPATHLEN 4096
+#endif
+
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
+#ifndef MAXHOSTNAMELEN
+#define MAXHOSTNAMELEN 64
+#endif
+
struct msg_identify_data {
char cwd[MAXPATHLEN];
@@ -1087,6 +1099,10 @@
time_t msg_time;
};
+#ifndef IOV_MAX
+#define IOV_MAX 1024
+#endif
+
/* Client connection. */
struct client {
struct imsgbuf ibuf;