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


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

Submitter:  None
Submitted:  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
* Mandatory Fields

Add a New Comment (Rich Markup)

Comment Type & Canned Response:
       No canned response available


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

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

Thank you!

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:

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.




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

Attach Files:

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)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    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.9