r-windows / rtools-packages

Toolchains and libraries for R-4.0 to R-4.2 (legacy)
https://cran.r-project.org/bin/windows/Rtools/rtools40.html
BSD 3-Clause "New" or "Revised" License
54 stars 36 forks source link

netcdf: upgrade to v4.9.0 #258

Closed mjwoods closed 2 years ago

mjwoods commented 2 years ago

This PR upgrades netcdf to v4.9.0. Apart from introducing new features, this release greatly improves support for mingw-w64.

The mingw-w64 package no longer requires patches to build correctly, and it is also possible to run the tests supplied with the source code. Many tests failed in previous releases of netcdf on mingw-w64. For v4.9.0, all tests are currently passing on mingw64, mingw32, and ucrt64. I have also successfully tested mingw64 and mingw32 on the older toolchain in Rtools40.

The PKGBUILD has been modified to use autotools instead of cmake, because this configuration is being tested routinely on mingw-w64 by Unidata.

mjwoods commented 2 years ago

Thanks for merging this PR @jeroen . I'd like to use this new package for RNetCDF, but I'm not sure how to convert from rwinlibs to Rtools. Can you please give me some hints or point me to docs or examples?

jeroen commented 2 years ago

I have uploaded a copy to https://github.com/rwinlib/netcdf/releases/tag/v4.9.0 Let me know if that works for you.

mjwoods commented 2 years ago

Thanks @jeroen , the package works for all three R versions on win-builder. Are there any plans to update the Windows build system to support mingw package installation in future?