Date: Tue, 12 May 2026 09:32:07 +0000 From: Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: f8721c875437 - main - science/paraview: Fix build with gdal 3.13.0+ Message-ID: <6a02f397.37e10.557e810d@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=f8721c875437d39bfa407f999dadb897f8ddc27b commit f8721c875437d39bfa407f999dadb897f8ddc27b Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2026-05-12 09:17:31 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2026-05-12 09:31:17 +0000 science/paraview: Fix build with gdal 3.13.0+ /wrkdirs/usr/ports/science/paraview/work/ParaView-v6.0.1/VTK/IO/GDAL/vtkGDALRasterReader.cxx:185:12: error: cannot initialize a variable of type 'char **' with an rvalue of type 'CSLConstList' (aka 'const char *const *') 185 | char** papszMetaData = GDALGetMetadata(this->GDALData, nullptr); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /wrkdirs/usr/ports/science/paraview/work/ParaView-v6.0.1/VTK/IO/GDAL/vtkGDALRasterReader.cxx:881:10: error: cannot initialize a variable of type 'char **' with an rvalue of type 'CSLConstList' (aka 'const char *const *') 881 | char** papszMetadata = GDALGetMetadata(this->Impl->GDALData, domain.c_str()); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 errors generated. Approved by: portmgr (blanket) --- science/paraview/files/patch-gdal | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/science/paraview/files/patch-gdal b/science/paraview/files/patch-gdal new file mode 100644 index 000000000000..b030a57aac67 --- /dev/null +++ b/science/paraview/files/patch-gdal @@ -0,0 +1,20 @@ +--- VTK/IO/GDAL/vtkGDALRasterReader.cxx.orig 2025-09-25 09:24:50 UTC ++++ VTK/IO/GDAL/vtkGDALRasterReader.cxx +@@ -182,7 +182,7 @@ void vtkGDALRasterReader::vtkGDALRasterReaderInternal: + this->Reader->DriverShortName = GDALGetDriverShortName(driver); + this->Reader->DriverLongName = GDALGetDriverLongName(driver); + +- char** papszMetaData = GDALGetMetadata(this->GDALData, nullptr); ++ CSLConstList papszMetaData = GDALGetMetadata(this->GDALData, nullptr); + if (CSLCount(papszMetaData) > 0) + { + for (int i = 0; papszMetaData[i] != nullptr; ++i) +@@ -878,7 +878,7 @@ std::vector<std::string> vtkGDALRasterReader::GetDomai + { + std::vector<std::string> domainMetaData; + +- char** papszMetadata = GDALGetMetadata(this->Impl->GDALData, domain.c_str()); ++ CSLConstList papszMetadata = GDALGetMetadata(this->Impl->GDALData, domain.c_str()); + + if (CSLCount(papszMetadata) > 0) + {home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a02f397.37e10.557e810d>
