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:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Add a New Comment (Rich 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"

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 Files:

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


Depends on the following items: None found

Items that depend on this one: None found


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

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

    Only logged-in users can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-05-29 andry81 Attached File- => Added apache-log4cxx-, #31464
    2014-05-29 andry81 Attached File- => Added apache-log4cxx-0.10.0-win7-x64.patch, #31463

    Back to the top

    Powered by Savane 3.5