From 7c9e2522f347ced5b2888453fb7305998eab4268 Mon Sep 17 00:00:00 2001 From: DJ Lucas Date: Wed, 20 Feb 2008 07:21:35 +0000 Subject: [PATCH] Corrected OpenSSH testsuite errors git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@7186 af4574ff-66df-0310-9fd7-8a98e5e911e0 --- server/major/openssh.xml | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/server/major/openssh.xml b/server/major/openssh.xml index a59ba83ac5..e062f31a20 100644 --- a/server/major/openssh.xml +++ b/server/major/openssh.xml @@ -116,21 +116,29 @@ make build using the parameter, ensure you add 127.0.0.1 to the sshd line in /etc/hosts.allow if you have a restrictive /etc/hosts.deny file, or the - test suite will fail. To run the test suite, as the - root user, issue: - make -k tests 2>&1 | tee check.log. Review the - check.log file for 'FATAL' tests. + test suite will fail. Additionally, the testsuite requires an installed + copy of scp to complete the mulitplexing tests. To + run the test suite, issue the following commnds as the + root user: - The test suite is currently broken, in that it will try to - test against the installed sshd, which is why we - pass -k to the make command - above. You should run the test suite again after completing the - installation and configuration, without the -k - flag. +if test -f /usr/bin/scp +then + mv /usr/bin/scp /usr/bin/scp-bak +fi && +cp scp /usr/bin/scp && +make tests 2>&1 | tee check.log +grep "FATAL" check.log - Now, as the root user: + If the above command produces no 'FATAL' errors, then proceed + with the installation, again as the + root user: -make install && +rm /usr/bin/scp && +if test -f /usr/bin/scp-bak +then + rm /usr/bin/scp-bak +fi && +make install && install -v -m755 -d /usr/share/doc/openssh-&openssh-version; && install -v -m644 INSTALL LICENCE OVERVIEW README* WARNING.RNG \ /usr/share/doc/openssh-&openssh-version;