Bug#997030: openssh: FTBFS on hurd-i386
Svante Signell <[email protected]>
| Newsgroups | gmane.linux.debian.devel.ssh |
|---|---|
| Message-ID | <bcbb389a31a1ed826b1f6baeaba95c9dd1050817.camel__8323.1696438574$1634921847$gmane$org@gmail.com> |
Source: openssh Version: 8.4p1-6 Severity: important Tags: patch User: [email protected] 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!
defines.h.diff
(text/x-patch, 469 B)
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
gss-serv.c.diff
(text/x-patch, 232 B)
--- 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;