Skip to content

pkg: include sys_ocaml_version in solver env #11935

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

gridbugs
Copy link
Collaborator

This fixes a problem when using the "ocaml-system" compiler package and setting the "sys-ocaml-version" variable in the solver environment. Without including sys_ocaml_version in the solver environment at build time, the presence of sys_ocaml_version in the solver environment recorded in the lockdir causes dune to incorrectly believe that the solver environment is incompatible with the current system, even if the version of the currently-installed system compiler is the same as the one in the solver environment recorded in the lockdir.

This fixes a problem when using the "ocaml-system" compiler package and
setting the "sys-ocaml-version" variable in the solver environment.
Without including sys_ocaml_version in the solver environment at build
time, the presence of sys_ocaml_version in the solver environment
recorded in the lockdir causes dune to incorrectly believe that the
solver environment is incompatible with the current system, even if the
version of the currently-installed system compiler is the same as the
one in the solver environment recorded in the lockdir.

Signed-off-by: Stephen Sherratt <[email protected]>
@gridbugs
Copy link
Collaborator Author

This has been subsumed by #11933.

@gridbugs gridbugs closed this Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant