Bug#609333: tmux-1.4 FTBFS on the hurd

January 08th, 2011 - 12:10 pm ET by Justus Winter | Report spam
This is a multi-part MIME message sent by reportbug.


MIME-Version: 1.0

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.

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-7 Embedded 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.


MIME-Version: 1.0

diff -r eb26a0c6b51a configure
a/configure Sat Jan 08 16:58:14 2011 +0000
+++ b/configure Sat Jan 08 16:59:43 2011 +0000
@@ -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 +0000
+++ b/tmux.h Sat Jan 08 16:59:43 2011 +0000
@@ -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;




To UNSUBSCRIBE, email to debian-bugs-rc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 2 repliesReplies Make a reply

Replies

#1 Julien Cristau
January 08th, 2011 - 01:10 pm ET | Report spam

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






To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact

Similar topics