[MacPorts] #48361: portpatch.tcl : record each applied patchfile in the state file (and skip already applied patches)
MacPorts
noreply at macports.org
Tue Jul 14 13:32:08 PDT 2015
#48361: portpatch.tcl : record each applied patchfile in the state file (and skip
already applied patches)
-------------------------+--------------------------------
Reporter: rjvbertin@… | Owner: macports-tickets@…
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: base | Version:
Keywords: haspatch | Port:
-------------------------+--------------------------------
I thought I'd already submitted this proposal, but cannot seem to find it:
The state file can be used to record which patches have been applied
successfully, and this information can be used to skip those patches. I
find this a useful feature (inspired by the Debian build scripts) when
applying an upstream update to a port that has a large source footprint
and/or a large number of patches. With this mod, one can simply invoke
`port patch` (or any subsequent build command) repeatedly until all
patches apply cleanly.
In its current form, one still has to revert the failed patches by hand.
It should be possible to avoid this by testing each patch before applying
it (using patch's `--dry-run` option) but I'm not sure how one would best
implement that (a temporary addition to `patch.pre_args`?).
--
Ticket URL: <https://trac.macports.org/ticket/48361>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list