-
Notifications
You must be signed in to change notification settings - Fork 358
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
GNU patch < 2.7.6 doesn't apply executable bit correctly #3782
Comments
One more reason to reimplement our own patch handling :) |
Indeed! |
Cool - it would need extending to parse Git headers... to be honest, it would probably want extending line-by-line against GNU patch 🤦♂️ |
the @dra27 I don't understand what you mean by "it would probably want extending line-by-line against GNU patch" |
@hannesm - I mean that patch is so well-specified that it’ll probably need someone to go through its code and reverse-engineer the precise behaviours which want adding |
Expressly set the execute bit on the script
Expressly set the execute bit on the script
Expressly set the execute bit on the script
I got bitten by this again in ocaml/opam-repository#18064 |
Remove any files with permissions different from 644 (mitigates ocaml/opam#3782)
mitigate ocaml/opam#3782 + call opam-2.1 in verbose mode
Remove any files with permissions different from 644 (mitigates ocaml/opam#3782)
Found while investigating build failures ocaml/opam-repository#12674
Versions of patch prior to 2.7.6 (includes Debian 9) don't set the executable bit on new files when reading a git patch (see http://git.savannah.gnu.org/cgit/patch.git/commit/?id=592e1f9163d6261359aa87c2c99d411c0dacf6f3)
This causes new executable files to lose the
+x
bit when copied from the Git clone to.opam/repo/...
2.7.6. is the very latest release of GNU patch - I expect the solution to this will be to post-process and check the permissions.
The text was updated successfully, but these errors were encountered: