CVSROOT:        /cvs
Module name:    ports
Changes by:     [email protected]  2026/09/13 06:02:32

Modified files:
        devel/ocaml-cppo: Makefile 
Added files:
        devel/ocaml-cppo/patches: patch-dune-project 

Log message:
ocaml-cppo: add version string to dune-project

If /usr/ports is a git checkout, and a dune project is missing the version
string, then dune will attempt to check if the port is a git project in
order to find a version string via git.

However ocaml-cppo is not a git project and so dune walks the directory tree
until it finds the unrelated /usr/ports/.git in this setup. Dune then uses
the unrelated parent git repo to extract the wrong version string for
ocaml-cppo's metadata.

Fix this by patching in a version string manually into dune-project. This
will avoid dune going down this wrong code path. Note that the build will
only error out on a system that is also missing a git package. If git is
present then dune will silently insert the wrong package metadata.

Spotted by tb@

Reply via email to