bugGNU patch - Bugs: bug #55393, patch-2.7.6 re-applies already...

 
 

bug #55393: patch-2.7.6 re-applies already applied patch

Submitted by:  None
Submitted on:  Fri 04 Jan 2019 09:46:24 PM UTC  
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Works For Me
Privacy:  Public Assigned 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.

 

Fri 04 Jan 2019 11:31:47 PM UTC, comment #2: 

-F0 makes sense. We'll try to use it downstream.

Thank you!

Anonymous
Fri 04 Jan 2019 10:18:29 PM UTC, comment #1: 

The attached patch is a unified diff with two context lines (-U2), which is less than the default three lines of context.  Patch by default allows fuzz 2 (-F2), at which point no context lines remain and the patch always applies.

When applying patches with little context, specify a lower fuzz factor (-F1 or -F2).  In automated environments, -F0 is generally a good idea.  Also, it helps to see what patch prints; omit -s for that.

Andreas Gruenbacher <agruen>
Project Administrator
Fri 04 Jan 2019 09:46:24 PM UTC, original submission:  

Original bug report:
    https://bugs.gentoo.org/674538

Steps to reproduce:
    $ wget -c https://www.samba.org/ftp/ccache/ccache-3.5.1a.tar.xz
    $ tar -xf ccache-3.5.1a.tar.xz
    $ cat ../ccache-3.5.1-configure.patch | patch -f -p1 -s -g0 --no-backup-if-mismatch
    $ cat ../ccache-3.5.1-configure.patch | patch -f -p1 -s -g0 --no-backup-if-mismatch
    $ cat ../ccache-3.5.1-configure.patch | patch -f -p1 -s -g0 --no-backup-if-mismatch

Observe patch is applied multiple times.

I expected already applied patch would not be applied and return a patch error.

Thanks!

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #45871:  ccache-3.5.1-configure.patch added by None (474B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by agruen (Posted a comment)
  •  

    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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-01-04 agruen StatusNone => Works For Me
        Open/ClosedOpen => Closed
    2019-01-04 None Attached File- => Added ccache-3.5.1-configure.patch, #45871

    Back to the top


    Powered by Savane 3.6