In Debian, on mipsel and mips64el, ocaml reports system as "unknown".
Gbp-Pq: Name 0001-Handle-unknown-ocaml-system-as-Linux.patch
| [|_; "--system"; system; "-o"; output|] ->
let system =
match system with
- | "linux" | "elf" -> `Linux
+ | "linux" | "elf" | "unknown" -> `Linux
| "win32" | "win64" | "mingw64" | "mingw" | "cygwin" -> `Windows
| "freebsd" -> `FreeBSD
| "macosx" -> `MacOSX
| "beos" | "dragonfly" | "bsd" | "openbsd" | "netbsd" | "gnu"
- | "solaris" | "unknown" ->
+ | "solaris" ->
invalid_arg "Unsupported system: %s" system
| v ->
if String.sub system 0 5 = "linux"