Skip to content

Commit

Permalink
Use gpatch on NetBSD and DragonFlyBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
kit-ty-kate committed Apr 2, 2024
1 parent 25f4f5c commit 3c01b81
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/core/opamSystem.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1635,9 +1635,16 @@ let translate_patch ~dir orig corrected =
let patch_cmd = lazy begin
match OpamStd.Sys.os () with
| OpamStd.Sys.OpenBSD
| OpamStd.Sys.FreeBSD -> "gpatch"
| _ -> "patch"
| NetBSD
| DragonFly
| OpenBSD
| FreeBSD -> "gpatch"
| Darwin
| Linux
| Cygwin
| Win32
| Unix
| Other _ -> "patch"
end
let is_gpatch_available = lazy begin
Expand Down

0 comments on commit 3c01b81

Please sign in to comment.