bugGNU patch - Bugs: bug #30367, patch (2.6.1 tested) fails to...

 
 

bug #30367: patch (2.6.1 tested) fails to apply patch in one pass but works in two passes

Submitted by:  Arkadiusz Miskiewicz <arekm>
Submitted on:  Tue 06 Jul 2010 10:53:36 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Invalid
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Tue 06 Jul 2010 11:03:56 AM UTC, comment #1:

Hm, ok, I see what's happening and second applying in the end didn't produce correct result due to fuzzy errors.

I guess can be closed as invalid.

Arkadiusz Miskiewicz <arekm>
Tue 06 Jul 2010 10:53:36 AM UTC, original submission:

Trying to patch a file. It fails and produces base.c.rej. Now base.c.rej applies without any problem.

Why patch isn't able to apply it in one pass? No idea but looks like a bug to me.

$ patch -p3 < ehem.patch
patching file base.c
Hunk #1 succeeded at 105 (offset 2 lines).
Hunk #2 succeeded at 232 (offset 2 lines).
Hunk #3 succeeded at 282 (offset 2 lines).
Hunk #4 succeeded at 312 (offset 2 lines).
Hunk #5 succeeded at 367 (offset 2 lines).
Hunk #6 succeeded at 561 (offset 2 lines).
Hunk #7 succeeded at 969 (offset 2 lines).
Hunk #8 succeeded at 1566 with fuzz 1 (offset 7 lines).
Hunk #9 succeeded at 1590 (offset 9 lines).
Hunk #10 succeeded at 1600 (offset 9 lines).
Hunk #11 succeeded at 1659 (offset 9 lines).
Hunk #12 succeeded at 1793 (offset 9 lines).
Hunk #13 succeeded at 2046 (offset 9 lines).
Hunk #14 succeeded at 2177 with fuzz 2 (offset 16 lines).
Hunk #15 succeeded at 2224 (offset 16 lines).
Hunk #16 succeeded at 2494 (offset 16 lines).
Hunk #17 succeeded at 2607 (offset 16 lines).
Hunk #18 succeeded at 2700 (offset 19 lines).
Hunk #19 succeeded at 2728 (offset 19 lines).
Hunk #20 succeeded at 3094 with fuzz 2 (offset 355 lines).
Hunk #21 FAILED at 2866.
Hunk #22 FAILED at 2908.
Hunk #23 FAILED at 2973.
Hunk #24 FAILED at 2991.
Hunk #25 FAILED at 3019.
Hunk #26 FAILED at 3046.
6 out of 26 hunks FAILED -- saving rejects to file base.c.rej
zsh: exit 1 patch -p3 < ehem.patch
[arekm@carme-pld ~/test/patch-problem]$ patch -p0 < base.c.rej
patching file base.c
Hunk #1 succeeded at 2885 (offset 19 lines).
Hunk #2 succeeded at 2934 (offset 19 lines).
Hunk #3 succeeded at 3003 (offset 19 lines).
Hunk #4 succeeded at 3026 (offset 19 lines).
Hunk #5 succeeded at 3075 (offset 21 lines).
Hunk #6 succeeded at 3102 (offset 21 lines).
[arekm@carme-pld ~/test/patch-problem]$

Arkadiusz Miskiewicz <arekm>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #20908:  ehem.patch added by arekm (11KiB - application/octet-stream)
file #20909:  base.c added by arekm (77KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by agruen (Updated the item)
  • -unavailable- added by arekm (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 06 Jul 2010 11:06:37 AM UTCagruenStatusNone=>Invalid
      Open/ClosedOpen=>Closed
    Tue 06 Jul 2010 10:53:36 AM UTCarekmAttached File-=>Added ehem.patch, #20908
      Attached File-=>Added base.c, #20909

    Back to the top


    Powered by Savane 3.1-cleanup1