-
Notifications
You must be signed in to change notification settings - Fork 266
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
Unable to disable CURL library #2855
Comments
Just for mor information. One of the main reasons is that libcurl pulls in lots of encryption and ssl and kerberos libraries which can cause issues with some python's that are linked to different versions of those libraries and we have python interface to our library which uses netCDF library so when we load the library, we get unsatisfied externals... |
Agreed. The logic should be that netcdf is always built with minimal dependancies. It should be the case that disabling anything that would require libcurl (DAP, Zarr support) should result in libcurl not being linked against. I'll take a look, @K20shores has been helping modernize our CMake infrastructure (in addition to the great help @ZedThree has been providing!), so let me take a look and see what needs to be adjusted, without interfering with any of the PR backlog we're working through (on top of everything else). Thanks! |
@DennisHeimbigner Besides Zarr and DAP2/DAP4, is there anything making use of |
I can provide a starting PR if you would like... I have an
|
If only DAP, DAP4, and/or Zarr use curl, then it would be good to change such that |
I am confused. We did a PR to add an option to shut off all remote access. |
Since curl is not used directly, but is rather used by functionality, I think rather than |
Or, what @DennisHeimbigner said XD. |
The necessary change is probably about line 410 in dependencies.cmake. |
It looks like |
Agreed, the hdf4 file tests should be conditional on remote access. |
Taking a look at this tomorrow for the v4.9.3 release. |
I've put up a fix; I've not turned off the HDF4 tests, since they can already be toggled with a different option, and the check that is made when |
We have a need to be able to build netCDF with minimal dependencies. There are options to turn off the filters, remote functionality, and many other options. However, it looks like the latest main branch has a mandatory dependency on CURL. I don't seen anyway to turn it off other than removing the curl-related lines from the cmake/dependencies.cmake file.
Can we add an
ENABLE_CURL
option. I'm OK with it defaulting to ON, but would like the capability to turn it off...This is with
main
branch as of February 1, 2024.The text was updated successfully, but these errors were encountered: