Skip to content

Commit

Permalink
ocamlbuild: add patch to work on windows from fdopen
Browse files Browse the repository at this point in the history
A variant of this patch has been lingering externally since 2016
(ocaml/ocamlbuild#70), and Windows builds don't get very far without it
any more, and it's blocking development of other upstream Windows ports
(ocaml-multicore/eio#530).

So barring strong objections, I'd like to pull this into opam-repository
mainline.  This package is only available on Windows.

Source patch from https://github.com/fdopen/opam-repository-mingw/blob/opam2/packages/ocamlbuild/ocamlbuild.0.14.2/opam

Reviewed by @dra27 and @patricoferris
  • Loading branch information
avsm committed May 29, 2023
1 parent 93bb2e6 commit 6bc1196
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions packages/ocamlbuild/ocamlbuild.0.14.2+win/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
opam-version: "2.0"
synopsis:
"OCamlbuild is a build system with builtin rules to easily build most OCaml projects"
maintainer: "Gabriel Scherer <gabriel.scherer@gmail.com>"
authors: ["Nicolas Pouillard" "Berke Durak"]
license: "LGPL-2.0-or-later WITH OCaml-LGPL-linking-exception"
homepage: "https://github.com/ocaml/ocamlbuild/"
doc: "https://github.com/ocaml/ocamlbuild/blob/master/manual/manual.adoc"
bug-reports: "https://github.com/ocaml/ocamlbuild/issues"
depends: [
"ocaml" {>= "4.03"}
]
conflicts: [
"base-ocamlbuild"
"ocamlfind" {< "1.6.2"}
]
build: [
[make "all"]
]
install: [
[make "install"]
["mkdir" "-p" "%{lib}%/ocamlbuild"]
["install" "-m" "0644" "META" "%{lib}%/ocamlbuild"]
]
dev-repo: "git+https://github.com/ocaml/ocamlbuild.git"
url {
src: "https://github.com/ocaml/ocamlbuild/archive/refs/tags/0.14.2.tar.gz"
checksum: [
"md5=2f407fadd57b073155a6aead887d9676"
"sha512=f568bf10431a1f701e8bd7554dc662400a0d978411038bbad93d44dceab02874490a8a5886a9b44e017347e7949997f13f5c3752f74e1eb5e273d2beb19a75fd"
]
}
extra-source "ocamlbuild-0.14.2.patch" {
src: "https://raw.githubusercontent.com/fdopen/opam-repository-mingw/354a87b397856f2a70024c5c83fc5001074935b6/packages/ocamlbuild/ocamlbuild.0.14.2/files/ocamlbuild-0.14.2.patch"
checksum: "sha256=a9b7e1829a3304e5a073d8ddea29d3d8272698e93b7e1ee659ae5e31e5cfb6b9"
}
patches: "ocamlbuild-0.14.2.patch"
available: os = "win32"

0 comments on commit 6bc1196

Please sign in to comment.