[Bug 204725] Mk/bsd.port.mk: makepatch inserts context junk after r401709

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Nov 22 09:28:43 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204725

--- Comment #10 from John Marino <marino at FreeBSD.org> ---
(In reply to John Marino from comment #7)

Ah, I get what you mean by this now:
".. and any hunks applied before are *lost* because .orig file(s) now points to
a patched version(s)"

The first patch to File X creates the .orig file and the second patch to File X
will overwrite it, thus the resulting patch only includes the last applied
change.

This will be difficult to fix because it's happening in the do-patch phase,
well before makepatch comes in.  It's actually another reason to avoid
splitting a patch into multiple files.  Maintainers have the same problem if
they generate their patches manually (and the previous version of makepatch
also did the the same thing)

The do-patch step would have to be modified in a predictable way (e.g. on the
first patch, cp <file>.orig to <file>.orig.1st if <file>.orig.1st does not
exist.  Then makepatch can mv any <file>.orig.1st back to <file>.orig before
running.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-ports-bugs mailing list