Opened 9 years ago

Closed 9 years ago

#48361 closed enhancement (duplicate)

portpatch.tcl : record each applied patchfile in the state file (and skip already applied patches)

Reported by: RJVB (René Bertin) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version:
Keywords: haspatch Cc:
Port:

Description

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?).

Attachments (1)

MP_portpatch.record.state.diff (1.7 KB) - added by RJVB (René Bertin) 9 years ago.

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by RJVB (René Bertin)

comment:1 in reply to:  description Changed 9 years ago by RJVB (René Bertin)

Replying to rjvbertin@…:

a temporary addition to patch.pre_args?

Prepending --dry-run to patch.pre_args is less trivial than it seems?!

comment:2 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: newclosed

Duplicate of #46927.

Note: See TracTickets for help on using tickets.