Bug#609333: tmux-1.4 FTBFS on the hurd

2011-01-08 Thread Justus Winter
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;


Bug#609333: tmux-1.4 FTBFS on the hurd

2011-01-08 Thread Julien Cristau
severity 609333 normal
kthxbye

On Sat, Jan  8, 2011 at 17:09:55 +, Justus Winter wrote:

 Package: tmux
 Version: 1.4-1
 Severity: serious

No.

Cheers,
Julien


signature.asc
Description: Digital signature


Bug#609333: tmux-1.4 FTBFS on the hurd

2011-01-08 Thread Justus Winter
Hey Julien :)

 severity 609333 normal
 kthxbye
 
 On Sat, Jan  8, 2011 at 17:09:55 +, Justus Winter wrote:
 
  Package: tmux
  Version: 1.4-1
  Severity: serious
 
 No.

Hm, I am sorry about that. FWIW I used the report bug utility and it
asked me:

How would you rate the severity of this problem or report?
[...]
5 does-not-build  a bug that stops the package from being built
  from source. (This is a 'virtual severity'.)
[...]
Please select a severity level: [normal] 5

I am not sure why the severity has been set to serious.

Thanks,
Justus


signature.asc
Description: PGP signature


Bug#609333: tmux-1.4 FTBFS on the hurd

2011-01-08 Thread Julien Cristau
On Sat, Jan  8, 2011 at 18:41:20 +0100, Justus Winter wrote:

 Hm, I am sorry about that. FWIW I used the report bug utility and it
 asked me:
 
 How would you rate the severity of this problem or report?
 [...]
 5 does-not-build  a bug that stops the package from being built
   from source. (This is a 'virtual severity'.)
 [...]
 Please select a severity level: [normal] 5
 
 I am not sure why the severity has been set to serious.
 
serious would be correct if the FTBFS was on a release architecture.
hurd isn't one.

Cheers,
Julien


signature.asc
Description: Digital signature