delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/05/23/06:22:00

From: azure AT a29c DOT otanner DOT ton DOT tut DOT fi (Hannu Koivisto)
Subject: ssh 1.2.20 diff and patch problems
23 May 1997 06:22:00 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <Pine.LNX.3.95.970522161732.26475A-100000.cygnus.gnu-win32@a29c.otanner.ton.tut.fi>
Mime-Version: 1.0
Original-To: gnu-win32 AT cygnus DOT com
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Greetings,

I tried to apply the announced patch for ssh 1.2.20 to compile it with 
gnuwin32. However, patching (patch < ssh-1.2.20.diff) didn't succeed:

Hmm...  The next patch looks like a new-style context diff to me...
The text leading up to this was:
--------------------------
|E_GETRUSAGE) && defined(XXXJR)
|    {
|      struct rusage ru, cru;
|      getrusage(RUSAGE_SELF, &ru);
|diff -cr ssh-1.2.20/servconf.c ssh-1.2.20.new/servconf.c
|*** ssh-1.2.20/servconf.c      Tue Apr 22 17:40:07 1997
--------------------------
Patching file ssh-1.2.20/servconf.c using Plan A...
assertion "hunk" failed: file "/home/noer/src/beta18/cdk/patch/patch.c", line 33
9

I decided to try patching it in Linux. I moved the ssh archive and the diff
file to our Linux server and ran patch < ssh-1.2.20.diff. The result was even
more errors and failed hunks. Actually, almost all hunks failed with 
different error messages. Here's just one example:

Patching file ssh-1.2.20/socketpair.c using Plan A...
(Fascinating--this is really a new-style context diff but without
the telltale extra asterisks on the *** line that usually indicate
the new style...)
Hunk #1 failed at 9.
Hunk #2 succeeded at 67 with fuzz 2.

What am I doing wrong? Thanks in advance.

---
Hannu Koivisto | What you see is all you get.
Prime jee      |                            - Brian Kernighan
-------------------------------------------------------------

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019