bugGNU patch - Bugs: bug #42459, -p0 command line parameter...

 
 

bug #42459: -p0 command line parameter required where it is actually not

Submitted by:  Andrey <andry81>
Submitted on:  Thu 29 May 2014 12:30:58 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 29 May 2014 01:12:10 PM UTC, comment #1:

Seems the problem is in the format of a text file. The patch has Unix style line returnes. If convert to the Windows style then the bug will dissappear. But it is strange because original sources has Unix style line returnes too.

Andrey <andry81>
Thu 29 May 2014 12:30:58 PM UTC, original submission:

Application: patch.exe
Version: 2.7.1
Backend: Cygwin 1.7.30_1

Steps to reproduce:
1. Before applying the patch extract the archive to the log4cxx_1 subfolder in the same directory where the apache-log4cxx-0.10.0 folder is (in my case it was the "apache" folder).
2. make the "apache-log4cxx-0.10.0/.." folder current
3. run the patch as "patch -i apache-log4cxx-0.10.0-win7-x64.patch"

Output:
can't find file to patch at input line 5
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|Binary files apache-log4cxx-0.10.0\open.obj and log4cxx_1\apache-log4cxx-0.10.0\open.obj differ
|diff -rupN apache-log4cxx-0.10.0\src\ant\apr-build.xml log4cxx_1\apache-log4cxx-0.10.0\src\ant\apr-build.xml
|--- apache-log4cxx-0.10.0\src\ant\apr-build.xml Tue Apr 01 06:33:52 2008
|+++ log4cxx_1\apache-log4cxx-0.10.0\src\ant\apr-build.xml Wed Jul 07 16:19:00 2010
--------------------------
File to patch:

Seems the patch utility can't find the file but it is actually exists.

I have tested the version 2.5.8 under the Cygwin 1.5.25-15 and found that it does not have what kind of behaviour. Is that a bug?

Andrey <andry81>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #31464:  apache-log4cxx-0.10.0.7z added by andry81 (794kB - application/octet-stream)
file #31463:  apache-log4cxx-0.10.0-win7-x64.patch added by andry81 (22kB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by andry81 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 29 May 2014 12:39:49 PM UTCandry81Attached File-=>Added apache-log4cxx-0.10.0.7z, #31464
    Thu 29 May 2014 12:30:58 PM UTCandry81Attached File-=>Added apache-log4cxx-0.10.0-win7-x64.patch, #31463

    Back to the top


    Powered by Savane 3.1-cleanup