conda-forge / netcdf4-feedstock

A conda-smithy repository for netcdf4.
BSD 3-Clause "New" or "Revised" License
3 stars 25 forks source link

Build number update changes libnetcdf.so version number #92

Closed lohedges closed 4 years ago

lohedges commented 4 years ago

I see that you've recently updated from build number 1 to 2 of version 1.5.1.2 of netcdf4. This is what is installed into the lib directory of my conda environment with build 1:

libnetcdf.a
libnetcdf.settings
libnetcdf.so
libnetcdf.so.13

This is with build 2:

libnetcdf.a
libnetcdf.settings
libnetcdf.so
libnetcdf.so.15

Conda packages that are pinned to version 1.5.1.2 but built against build 1 will not work with build 2 since they cannot find libnetcdf.so.13:

ImportError: libnetcdf.so.13: cannot open shared object file: No such file or directory
lohedges commented 4 years ago

Having looked at this more I see that you also migrate the version of libnetcdf

.ci_support/migrations/libnetcdf-4.yaml

# The name of the feedstock you wish to migrate
libnetcdf:
  - 4.7.1

This means that updating netcdf4 also upgrades libnetcdf, hence the problem that I'm having. I guess that our conda recipe will have to pin against a version of netcdf4 and libnetcdf in order for things to work properly.