From 1dc8cdaa72b62232a69de8424e488c910ee58d21 Mon Sep 17 00:00:00 2001 From: 宋文武 Date: Tue, 29 Aug 2023 22:06:02 +0800 Subject: gnu: vtk-7: Fix build. * gnu/packages/patches/vtk-7-gcc-11-compat.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. * gnu/packages/image-processing.scm (vtk-7)[source]: Add patch for gcc-11. --- gnu/packages/patches/vtk-7-gcc-11-compat.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 gnu/packages/patches/vtk-7-gcc-11-compat.patch (limited to 'gnu/packages/patches') diff --git a/gnu/packages/patches/vtk-7-gcc-11-compat.patch b/gnu/packages/patches/vtk-7-gcc-11-compat.patch new file mode 100644 index 0000000000..c7ab3af36e --- /dev/null +++ b/gnu/packages/patches/vtk-7-gcc-11-compat.patch @@ -0,0 +1,11 @@ +Description: GCC 11 now enforces that comparison objects be invocable as const. +--- a/Rendering/Label/vtkLabelHierarchy.cxx ++++ b/Rendering/Label/vtkLabelHierarchy.cxx +@@ -525,1 +525,1 @@ +- const vtkHierarchyNode & b) ++ const vtkHierarchyNode & b) const +--- a/Rendering/Label/vtkLabelHierarchyPrivate.h ++++ b/Rendering/Label/vtkLabelHierarchyPrivate.h +@@ -66,1 +66,1 @@ +- bool operator () ( const vtkIdType& a, const vtkIdType& b ) ++ bool operator () ( const vtkIdType& a, const vtkIdType& b ) const -- cgit 1.4.1