Skip to content

Commit

Permalink
Lookup at gpatch before patch on macOS now that both homebrew and mac…
Browse files Browse the repository at this point in the history
…ports expose gpatch as gpatch

Homebrew changed behaviour in Homebrew/homebrew-core#174687
  • Loading branch information
kit-ty-kate committed Oct 22, 2024
1 parent f0ba0c2 commit 0fc233a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions master_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ users)
## Opamfile

## External dependencies
* Lookup at `gpatch` before `patch` on macOS now that both homebrew and macports expose `gpatch` as `gpatch` since Homebrew/homebrew-core#174687 [#6255 @kit-ty-kate]

## Format upgrade

Expand Down
2 changes: 1 addition & 1 deletion src/core/opamSystem.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1570,12 +1570,12 @@ let gpatch = lazy begin
in
let default_cmd, other_cmds =
match OpamStd.Sys.os () with
| Darwin
| DragonFly
| FreeBSD
| NetBSD
| OpenBSD -> ("gpatch", ["patch"])
| Cygwin
| Darwin
| Linux
| Unix
| Win32
Expand Down

0 comments on commit 0fc233a

Please # to comment.