Bug#997030: openssh: FTBFS on hurd-i386
Source: openssh
Version: 8.4p1-6
Severity: important
Tags: patch
User: debian-hurd@lists.debian.org
Usertags: hurd
Hi,
Currently openssh FTBFS on GNU/Hurd due to a missing definition of
MAXHOSTNAMELEN. The attached patches, defines.h.diff and gss-
serv.c.diff fixes these problems.
These patches have been used to successfully build openssh on GNU/Hurd
and GNU/Linux.
Thanks!
Index: openssh-8.4p1/defines.h
===================================================================
--- openssh-8.4p1.orig/defines.h
+++ openssh-8.4p1/defines.h
@@ -134,6 +134,12 @@ enum
# endif
#endif /* HOST_NAME_MAX */
+#ifndef MAXHOSTNAMELEN
+# if defined(_POSIX_HOST_NAME_MAX)
+# define MAXHOSTNAMELEN _POSIX_HOST_NAME_MAX
+#endif
+#endif /* MAXHOSTNAMELEN */
+
#if defined(HAVE_DECL_MAXSYMLINKS) && HAVE_DECL_MAXSYMLINKS == 0
# define MAXSYMLINKS 5
#endif
--- a/gss-serv.c 2021-10-22 13:44:48.000000000 +0200
+++ b/gss-serv.c 2021-10-22 13:49:07.000000000 +0200
@@ -48,6 +48,7 @@
#include "ssh-gss.h"
#include "monitor_wrap.h"
+#include "defines.h"
extern ServerOptions options;
Reply to: