delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/06/03/17:47:45

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3EDD175B.2080809@rbcmail.ru>
Date: Tue, 03 Jun 2003 17:47:07 -0400
From: Constantine <cnst AT rbcmail DOT ru>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.4) Gecko/20030529
X-Accept-Language: en-gb, ru, en-us, en
MIME-Version: 1.0
To: Andrew Markebo <andrew DOT markebo AT telia DOT com>, cygwin AT cygwin DOT com
Subject: Re: Why is patch(1) asking for the file names already given?
References: <3EDC3908 DOT 8000805 AT rbcmail DOT ru> <m3llwjzg2s DOT fsf AT telia DOT com>
In-Reply-To: <m3llwjzg2s.fsf@telia.com>

Andrew Markebo wrote:

>Hi!
>
>Just a guess, I usually throw -p1 or more, not -p0? Could it be that?
>
>     /Andy
>
>/ Constantine <cnst AT rbcmail DOT ru> wrote:
>| Hello!
>|
>| I am trying to apply a patch I made for myself. When I am running the
>| patch(1) utility, I am always being asked to type in the file name to
>| a file that needs to be patched. My diff file contains a diff on a few
>| files, and this is my dialogue with the patch(1):
>|
>| --- my quote start ---
>|  >patch --ignore-whitespace -p0 -i US-GB.nohtml.diff
>| can't find file to patch at input line 2
>| Perhaps you used the wrong -p or --strip option?
>| The text leading up to this was:
>| --------------------------
>| |diff -b -B --exclude='*.*htm*' -r en-US/.jar/autoconfig/contents.rdf
>| en-GB/.jar/autoconfig/contents.rdf
>| --------------------------
>| File to patch: en-GB/.jar/autoconfig/contents.rdf
>| patching file en-GB/.jar/autoconfig/contents.rdf
>| Reversed (or previously applied) patch detected!  Assume -R? [n] y
>| can't find file to patch at input line 21
>| Perhaps you used the wrong -p or --strip option?
>| The text leading up to this was:
>| --------------------------
>| |diff -b -B --exclude='*.*htm*' -r
>| en-US/.jar/communicator/bookmarks/addBookmark.dtd
>| en-GB/.jar/communicator/bookmarks/addBookmark.dtd
>| --------------------------
>| File to patch:
>| --- my quote end ---
>|
>| and so on. As one can see, I have to re-type the filename just in the
>| same manner as it was printed by patch(1), before the patch can be
>| applied. How can I make the patch(1) utility not to ask for the name,
>| but to find it from the diff file? Thanks.
>|
>| Cheers,
>| Constantine.
>
Hello!

I wish that would help, but I see no improvements.

--- my dialogue begin ---
$ patch --ignore-whitespace -p1 -i US-GB.nohtml.diff
can't find file to patch at input line 2
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -b -B --exclude='*.*htm*' -r en-US/.jar/autoconfig/contents.rdf 
en-GB/.jar/autoconfig/contents.rdf
--------------------------
File to patch: .jar/autoconfig/contents.rdf
patching file .jar/autoconfig/contents.rdf
can't find file to patch at input line 21
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -b -B --exclude='*.*htm*' -r 
en-US/.jar/communicator/bookmarks/addBookmark.dtd 
en-GB/.jar/communicator/bookmarks/addBookmark.dtd
--------------------------
File to patch:
--- my dialogue end ---

Cheers,
Constantine.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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