-
Notifications
You must be signed in to change notification settings - Fork 462
Description
Desired Behavior
We can use ocamlbuild in a project with an OxCaml compiler and build with dune pkg
Example
Currently, there are two separate forks of ocamlbuild, one in the OxCaml opam-repository and one in dune opam overlays. The forks ensure they retain compatibility for their own use cases - for OxCaml, with the OxCaml compiler, and for the overlays that it works with dune pkg.
- Dune pkg patch: ocaml/ocamlbuild@master...gridbugs:ocamlbuild:0.16.1+dune
- OxCaml patch: https://github.com/oxcaml/opam-repository/blob/main/packages/ocamlbuild/ocamlbuild.0.15.0%2Box/files/flambda2.patch
Right now, what happens is when you build an OxCaml project that requires ocamlbuild with dune pkg, the solver tries to use the dune version, but a lot of OxCaml packages, including the compiler, have a conflict with any ocamlbuild that's not 0.15.0+ox. However, dune pkg can't use it because it has symlinks (c.f. #9873).
It would be good to have a version of ocamlbuild that supports both OxCaml and dune pkg. This version should ideally be able to support both OxCaml projects built with dune pkg and OxCaml projects build with opam.