www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/11/02/10:37:12

Date: Mon, 2 Nov 1998 15:30:55 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Michael Schuster <Schuster AT eev DOT e-technik DOT uni-erlangen DOT de>
cc: djgpp AT delorie DOT com
Subject: Re:patch- another problem
In-Reply-To: <363D8802.D6BE8F05@eev.e-technik.uni-erlangen.de>
Message-ID: <Pine.SUN.3.91.981102152036.12647B-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Mon, 2 Nov 1998, Michael Schuster wrote:

> I've got a patch file, the sources to patch and don't know how to start
> the patching - I've downloaded already the docs but can't come along
> with them.
> diff -c cross gnu/binutils/README-C4X:1.2
> *** cross Fri Sep 18 19:12:30 1998
> --- gnu/binutils/README-C4X Wed Jul 16 23:16:59 1997
[snip]
> My sources are in gnu/binutils, and I want them to be written to the
> cross-dir or at least just modify the sources but I can't get it
> working.

Whoever created the diffs did a bad job, because these diffs work against 
the heuristics inside `patch' that deduces which file do you want to 
patch.  (The reason why is a long story, but it's all in the docs.)  So you 
will have to tell it explicitly where the file is and where to put the 
patched version:

patch -p0 -b -o cross/gnu/binutils/README-C4X gnu/binutils/README-C4X < patches-file

This assumes that the patched file goes to the cross/gnu/binutils 
directory.  The above command should be issued *after* you chdir to the 
directory that is the parent of gnu.

- Raw text -


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