Fails to build with NetCDF 4.9.0
As reported in Debian Bug #1012703, VTK fails to build with NetCDF 4.9.0:
In file included from /<<PKGBUILDDIR>>/debian/build/ThirdParty/netcdf/vtk_netcdf.h:22,
from /<<PKGBUILDDIR>>/ThirdParty/exodusII/vtkexodusII/include/exodusII.h:22,
from /<<PKGBUILDDIR>>/ThirdParty/exodusII/vtkexodusII/src/ex_utils.c:20:
/<<PKGBUILDDIR>>/ThirdParty/exodusII/vtkexodusII/src/ex_utils.c: In function ‘vtkexodusII_ex__compress_variable’:
/<<PKGBUILDDIR>>/ThirdParty/exodusII/vtkexodusII/src/ex_utils.c:1773:19: error: expected identifier or ‘(’ before numeric constant
1773 | const int NC_SZIP_NN = 32; /* Selects nearest neighbor coding method for szip. */
| ^~~~~~~~~~
netcdf.h
was updated in 4.9.0 to include:
#define NC_SZIP_NN 32 /**< SZIP NN option mask. */
One solution to this conflict is renaming the variable, as done in this patch: netcdf-4.9.0.patch