-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrap: Add support for applying a list of patch files #9717
Conversation
This pull request introduces 1 alert when merging 78d7d3b into f45a21a - view on LGTM.com new alerts:
|
78d7d3b
to
1402b45
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a bit nervous about adding support to modify upstream code, as bugs should generally be fixed upstream or by committing to forking, not by vendoring.
(For example, if this is added to meson it will be completely forbidden in the WrapDB.)
Leaving that aside for now and just looking at the implementation...
Codecov Report
@@ Coverage Diff @@
## master #9717 +/- ##
==========================================
+ Coverage 66.55% 67.22% +0.66%
==========================================
Files 402 203 -199
Lines 85522 43911 -41611
Branches 18817 9768 -9049
==========================================
- Hits 56919 29517 -27402
+ Misses 24210 12139 -12071
+ Partials 4393 2255 -2138
Continue to review full report at Codecov.
|
1402b45
to
d8f53cb
Compare
Missing release notes (add a file in docs/markdown/snippets/) but other than that it looks good to me. Thanks for finishing it. |
d8f53cb
to
0bcd8c5
Compare
Release notes added. |
Hi, is there a chance of getting this merged? |
e004190
to
d18a773
Compare
Anything missing for this PR to go in 0.62 @eli-schwartz. Seems like you had marked "changes requested", but they seem to have resolved. |
I think you also need to re-apply patches when doing "meson subprojects update --reset". |
Done: I assume you mean the |
What's the status of this PR? It seems that all discussions were resolved and this patch would really make our lives easier. |
This should probably be marked for 0.63. Shame it wasn't in time for 0.62 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought this was merged already, LGTM.
@pwmarcz Could you do the quick fix above so this can be merged please? |
Co-authored-by: Xavier Claessens <xavier.claessens@collabora.com>
Done. |
LGTM when CI is green. |
@xclaesse: CI looks green :) |
As discussed in #4570, I'd like to submit an updated patch. Since I'm building on the work by @xclaesse, I added him in
Co-authored-by
.I made the following changes compared to the original PR:
-p1
instead of configuring strip level: this should be good for most workflows (e.g. patches generated from Git), and if the user has an incompatible patch, they can always convert or re-generate itdiff_files
:diff_filename
previously, for consistency withpatch_filename
; but it looks awkward when used for multiple patches (anddiff_filenames
could be an annoying source of typos)dependency_names
,program_names
)patch
to Git:patch
is the purpose-specific tool, and one usually used in build scripts; Git requires extra workarounds (--work-tree
)git am
forwrap-git
, but apply patches in the same way as everything else: this is simpler, less prone to failure (no special rarely-taken case in code), and less surprising for the user (who probably doesn't expect Meson to apply patches as commits in this one case; and might reasonably be expected to provide a "bare" patch without a commit message)--ignore-whitespace
: I think it's better if we fail when the patch doesn't apply exactly, as it could indicate problems (e.g. patch for a different version of code); since the user controls the patch, they can re-generate it if necessaryPlease let me know if I should change anything. The above choices seem good to me as a potential user of the feature, but I'm pretty new to the Meson project.
Co-authored-by: Xavier Claessens xavier.claessens@collabora.com