Fails to build with NetCDF 4.9.0
As reported in Debian Bug #1012663, ParaView fails to build with NetCDF 4.9.0:
In file included from /<<PKGBUILDDIR>>/build.python3.9/VTK/ThirdParty/netcdf/vtk_netcdf.h:22,
from /<<PKGBUILDDIR>>/VTK/ThirdParty/exodusII/vtkexodusII/include/exodusII.h:22,
from /<<PKGBUILDDIR>>/VTK/ThirdParty/exodusII/vtkexodusII/src/ex_utils.c:20:
/<<PKGBUILDDIR>>/VTK/ThirdParty/exodusII/vtkexodusII/src/ex_utils.c: In function ‘vtkexodusII_ex__compress_variable’:
/<<PKGBUILDDIR>>/VTK/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