[MacPorts] #48361: portpatch.tcl : record each applied patchfile in the state file (and skip already applied patches)
#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
#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: Resolution: | Keywords: haspatch Port: | --------------------------+-------------------------------- Comment (by rjvbertin@…): Replying to [ticket:48361 rjvbertin@…]:
a temporary addition to `patch.pre_args`?
Prepending `--dry-run` to `patch.pre_args` is less trivial than it seems?! -- Ticket URL: <https://trac.macports.org/ticket/48361#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#48361: portpatch.tcl : record each applied patchfile in the state file (and skip already applied patches) --------------------------+-------------------------------- Reporter: rjvbertin@… | Owner: macports-tickets@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: base | Version: Resolution: duplicate | Keywords: haspatch Port: | --------------------------+-------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => duplicate Comment: Duplicate of #46927. -- Ticket URL: <https://trac.macports.org/ticket/48361#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts