You will need Package ocamlbuild.0.14.2 by kit-ty-kate · Pull Request #22182 · ocaml/opam-repository · GitHub
Everything should be fine on 5.0.0 though. If I were you, I’d rather go with the 5.0.0 line than trunk which is always bound to be more brittle.