Skip to content
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

fix: package management working with ocaml.5.3.0 #11310

Merged
merged 2 commits into from
Jan 17, 2025

Conversation

maiste
Copy link
Collaborator

@maiste maiste commented Jan 16, 2025

The release of ocaml.5.3.0 introduces a new transitive dependency for the compiler: ocaml -> ocaml-base-compiler -> ocaml-compiler. Consequently the solution is to mark ocaml-compiler as a toolchain element and compute the transitive dependencies to be able to fetch the binaries before installing. It also creates a new config.status file to make the target understand the compiler is already installed (file required by 5.3.0).

Fixes #11309 (with the deep help of @Leonidas-from-XIV and @art-w)

(Take the opportunity to remove the unused ocaml function at the same time).

This PR will require to release a new version of Dune to make package management work with it.

@rgrinberg should we start to log this kind of changes in a lock file, it would be important for this release. WDTY?

Copy link
Collaborator

@Leonidas-from-XIV Leonidas-from-XIV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, it's nice that we can solve it by implementing an existing TODO comment, so it shows we're on the right path.

Some thinks might need to be made a little bit nicer though.

src/dune_rules/pkg_rules.ml Show resolved Hide resolved
src/dune_rules/pkg_toolchain.ml Outdated Show resolved Hide resolved
src/dune_rules/pkg_toolchain.ml Outdated Show resolved Hide resolved
src/dune_rules/pkg_toolchain.ml Outdated Show resolved Hide resolved
@rgrinberg
Copy link
Member

rgrinberg commented Jan 16, 2025

There's no need to log changes to components that are advertised as experimental

@rgrinberg
Copy link
Member

(Take the opportunity to remove the unused ocaml function at the same time).

Unrelated changes should be moved to separate PR's

Signed-off-by: Etienne Marais <dev@maiste.fr>
Signed-off-by: Etienne Marais <dev@maiste.fr>
@Leonidas-from-XIV Leonidas-from-XIV merged commit 346f93a into ocaml:main Jan 17, 2025
24 of 26 checks passed
@maiste maiste deleted the fix/ocaml-5.3.0 branch January 17, 2025 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Pkg Management] Can't build project with OCaml 5.3
3 participants