commit: 4b659f52b06f688b2ed2a819b4d6a6be18587030 Author: Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com> AuthorDate: Thu Apr 11 16:42:01 2024 +0000 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> CommitDate: Fri Apr 12 12:40:37 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b659f52
sci-libs/vtk: update opencascade-7.8 patch Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com> Closes: https://github.com/gentoo/gentoo/pull/36214 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> sci-libs/vtk/files/vtk-9.3.0-opencascade-7.8.0.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sci-libs/vtk/files/vtk-9.3.0-opencascade-7.8.0.patch b/sci-libs/vtk/files/vtk-9.3.0-opencascade-7.8.0.patch index 6f77fbdea979..4adec4944492 100644 --- a/sci-libs/vtk/files/vtk-9.3.0-opencascade-7.8.0.patch +++ b/sci-libs/vtk/files/vtk-9.3.0-opencascade-7.8.0.patch @@ -16,3 +16,16 @@ set(opencascade_missing_targets) foreach (opencascade_req_target IN LISTS opencascade_req_targets) if (NOT TARGET "${opencascade_req_target}") +diff --git a/IO/OCCT/vtkOCCTReader.cxx b/IO/OCCT/vtkOCCTReader.cxx +index 52e76be..7235309 100644 +--- a/IO/OCCT/vtkOCCTReader.cxx ++++ b/IO/OCCT/vtkOCCTReader.cxx +@@ -348,7 +348,7 @@ public: + int GetHash(const TDF_Label& label) + { + TopoDS_Shape aShape; +- return this->ShapeTool->GetShape(label, aShape) ? aShape.HashCode(INT_MAX) : 0; ++ return this->ShapeTool->GetShape(label, aShape) ? opencascade::hash(aShape) : 0; + } + + //----------------------------------------------------------------------------