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

Dunify version v1.9.6 #8

Open
wants to merge 19 commits into
base: dune-universe-v1.9.6
Choose a base branch
from

Conversation

Leonidas-from-XIV
Copy link
Contributor

I've tried to update merge the changes from dune-universe-1.9.5 with the upstream 1.9.6 release. The good thing is that upstream now features some of the changes we had made, so I could drop some patches.

I am however unclear on the META files that we install, if I understand the changes in 1.9.6 correctly we should not be doing this on OCaml releases 5.0+ anymore. Am I right in this assumption?

avsm and others added 18 commits July 30, 2019 15:57
Signed-off-by: Anil Madhavapeddy <[email protected]>
This will let the `findlib.dynload` package work correctly
with dune, which has special handling for it.

@diml says:
> dune generates a small module that is linked just after it and
registers the libraries that are statically linked in so that at
> runtime findlib.dynload doesn't dynamically load them again
this lets `findlib` work in a duniverse, which it doesnt when
only added as a META template
`findlib_config.ml` is entirely generated by the `discover` tool which
doesn't use that template anymore.
Remove default config so findlib can be used in a duniverse
Findlib is supposed to load lazily but linking with Topfind made it load
immediately.
Which made findlib looks for its config file and eventually crash before the
user had a change to call Findlib.init_manually
@emillon
Copy link

emillon commented Feb 6, 2023

It's still necessary to install the META files for the compiler if ocaml < 5. Probably there's already some logic in findlib that does this. You can replicate that in the dune config (note that for this to work on ocaml >= 5, it also requires dune >= 3.4)

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.

5 participants