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

Switch to Preferences for using system hdf5 #1037

Closed
simonbyrne opened this issue Jan 19, 2023 · 8 comments · Fixed by #1061
Closed

Switch to Preferences for using system hdf5 #1037

simonbyrne opened this issue Jan 19, 2023 · 8 comments · Fixed by #1061

Comments

@simonbyrne
Copy link
Collaborator

Technically this is already possible, by overriding the HDF5_jll paths, e.g. https://github.com/CliMA/ClimaCore.jl/blob/3e250b1f75d3bd3f4f7353cb9c1892e318b9e809/.buildkite/JuliaProject.toml

However I'm not sure that this will work on systems where JLL's aren't already available.

@simonbyrne
Copy link
Collaborator Author

Unfortunately setting the HDF5_jll paths can then break other packages, like NetCDF_jll.

@mkitti
Copy link
Member

mkitti commented Mar 19, 2023

How so?

@simonbyrne
Copy link
Collaborator Author

Because the library in NetCDF_jll is linked against the library name which includes the version number, and this may not be the same as on the system:
https://buildkite.com/clima/climacore-ci/builds/1880#0186f6b7-490c-4439-8c42-ef21dc99fbed/986-1211

@mkitti
Copy link
Member

mkitti commented Mar 19, 2023

Ah yes. That situation is particularly confusing. Would a symlink work? Is there another solution that works better?

@mkitti
Copy link
Member

mkitti commented Mar 19, 2023

I'm this particular case perhaps you should just rebuild the NetCDF and HDF5 JLLs... then maintain a fork.

@mkitti
Copy link
Member

mkitti commented Mar 19, 2023

Also have we considered using Preferences.jl separately from the JLL override mechanism?

@JoshuaLampert
Copy link
Contributor

What's the status of this issue? It would indeed be nice to switch to Preferences.

@simonbyrne
Copy link
Collaborator Author

Also have we considered using Preferences.jl separately from the JLL override mechanism?

This is probably the easiest option for now. PRs welcome?

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 a pull request may close this issue.

3 participants