Add a Patches Directive to Allow Custom Patching on top of the Source Tree
Metadata
Current evaluation
Feature request for a native `patches` part key applying local patches during pull. Maintainer steinbro backs the motivation but proposed a Git-native, override-pull-based design; linked PR #1588 still under review.
Suggested action: keep open
Reason: grepping the pinned tree shows no `patches` key in craft_parts/parts.py, part_handler.py, or docs — the feature is unimplemented, and the linked metallb-rocks workaround (`git am` in override-build plus a `plugin: dump` part) is a real workflow pain. However, steinbro explicitly redirected the design ('The patch scheme used in Debian is probably not something to emulate... better accomplished by taking advantage of Git itself', and 'override-pull makes more sense than override-build'), so the accepted spec is unsettled, which caps actionability despite PR #1588 existing with unresolved review feedback.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha |
Impact:
52
Quick Win:
11
Complexity:
57
Confidence:
80
Actionability:
47
|
keep open | Feature request for a native `patches` part key applying local patches during pull. Maintainer steinbro backs the motivation but proposed a Git-native, override-pull-based design; linked PR #1588 still under review. | |
| stealth/space-bunny-alpha |
Impact:
48
Quick Win:
7
Complexity:
68
Confidence:
72
Actionability:
45
|
keep open | Feature request from an external contributor to add a `patches` part property applying local patches to sources during pull. Maintainer steinbro agreed on the motivation but pushed back on the Debian-style approach, preferring git-based patching via override-pull; design still under discussion. | |
| qwen/qwen3.6-35b-a3b |
Impact:
40
Quick Win:
14
Complexity:
50
Confidence:
75
Actionability:
70
|
keep open | Feature request to add a patches directive to craft-parts for applying custom patches during the pull stage. Maintainer acknowledged motivation but wants to discuss implementation details. | |
| qwen/qwen3.8-27b |
Impact:
45
Quick Win:
18
Staleness:
45
Complexity:
60
Confidence:
80
Support Request:
10
|
keep open | Feature request for a patches directive to apply local patches to the source tree during the pull stage. A maintainer gave design feedback (prefer git-based approach, override-pull), and PR #1588 is open to implement it with unresolved review comments. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
30
Complexity:
60
Confidence:
75
Support Request:
10
|
needs triage | Feature request to add a native patches directive to craft-parts for applying custom patches during the pull stage. Currently under discussion with a maintainer suggesting Git-based approaches and override-pull instead. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
45
Complexity:
65
Confidence:
85
Support Request:
10
|
needs triage | Proposal to add a native patches directive to craft-parts for applying custom patches during the pull stage. Currently open with one maintainer comment suggesting Git-based implementation and further discussion. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/craft-parts#1588
(confidence 60%)
Open PR 'Add Patches Directive' implements patches during the pull stage, but has 6 unresolved review comments (including hardcoded -p1) and failing CI, so the design steinbro prefers may not match.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1588 Add Patches Directive | craft-parts | open | Adds a `patches` part property to apply patch files over the source tree during pull. Approved once, but 6 unresolved comments, 13 failing checks (all test-common suites), and maintainer wants the hardcoded -p1 design revisited. |