Intermediate mini patch against OpenSSH 4.7p1 adding Haiku support. It

only adds a guard against the inclusion of <netinet/in_systm.h>, which
Haiku doesn't have ATM (we should probably just add it). Following the
instructions in my Notes file everything builds and the results run
somewhat. ssh has problems with a Sun server I tested against (all
OpenSSH servers worked fine, though), sftp is broken, and sshd refuses
to work without a "sshd" user for privilege separation. Well, I'm
working on it...


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@24695 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2008-03-30 20:28:30 +00:00
parent bc5bbe5d0a
commit 0082490e35
2 changed files with 39 additions and 0 deletions

26
patches/openssh/Notes Normal file
View File

@ -0,0 +1,26 @@
Notes for OpenSSH 4.7p1 (Haiku r24683)
======================================
configure
---------
rm config.sub config.guess
automake --add-missing
autoreconf --force
./configure --prefix=/boot/home/config --with-ssl-dir=/boot/home/config
* automake will fail, but it will replace config.{sub,guess} anyway, which is
all we want.
* Edit config.h:
- Undefined HAVE_CONTROL_IN_MSGHDR: Haiku doesn't really support it.
- define HAVE_U_INT64_T: Only to get rid of warnings while compiling. The
configure test only includes <sys/types.h>, which doesn't define Haiku's
u_int64_t (<stdint.h> does).
make/install
------------
make
make install

View File

@ -0,0 +1,13 @@
diff -ur openssh-4.7p1-orig/includes.h openssh-4.7p1/includes.h
--- openssh-4.7p1-orig/includes.h 2007-06-11 06:44:03.000000000 +0200
+++ openssh-4.7p1/includes.h 2008-03-29 03:00:42.000000000 +0100
@@ -109,7 +109,9 @@
#endif
#include <netinet/in.h>
+#ifndef __HAIKU__
#include <netinet/in_systm.h> /* For typedefs */
+#endif
#ifdef HAVE_RPC_TYPES_H
# include <rpc/types.h> /* For INADDR_LOOPBACK */
#endif