⛏️ index : buildtools.git

author Ingo Weinhold <ingo_weinhold@gmx.de> 2008-03-30 20:28:30.0 +00:00:00
committer Ingo Weinhold <ingo_weinhold@gmx.de> 2008-03-30 20:28:30.0 +00:00:00
commit
0082490e356b79d093c04f24930e0cff9023443f [patch]
tree
4768fed6ef5df5ccad9570b1994e2fd3eb3ebf85
parent
bc5bbe5d0a9a052107e4200a7681d26c4f4ec91c
download
0082490e356b79d093c04f24930e0cff9023443f.tar.gz

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

Diff

 patches/openssh/Notes              | 26 ++++++++++++++++++++++++++
 patches/openssh/openssh-4.7p1.diff | 13 +++++++++++++
 2 files changed, 39 insertions(+)

diff --git a/patches/openssh/Notes b/patches/openssh/Notes
new file mode 100644
index 0000000..6b7fc36 100644
--- /dev/null
+++ b/patches/openssh/Notes
@@ -1,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

diff --git a/patches/openssh/openssh-4.7p1.diff b/patches/openssh/openssh-4.7p1.diff
new file mode 100644
index 0000000..641dd10 100644
--- /dev/null
+++ b/patches/openssh/openssh-4.7p1.diff
@@ -1,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