[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/09: gnu: vtk-7: Fix build.
From: |
guix-commits |
Subject: |
07/09: gnu: vtk-7: Fix build. |
Date: |
Thu, 31 Aug 2023 06:03:25 -0400 (EDT) |
iyzsong pushed a commit to branch master
in repository guix.
commit 1dc8cdaa72b62232a69de8424e488c910ee58d21
Author: 宋文武 <iyzsong@member.fsf.org>
AuthorDate: Tue Aug 29 22:06:02 2023 +0800
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/local.mk | 1 +
gnu/packages/image-processing.scm | 3 ++-
gnu/packages/patches/vtk-7-gcc-11-compat.patch | 11 +++++++++++
3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index 48187d7e64..9b493df8d5 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -2085,6 +2085,7 @@ dist_patch_DATA =
\
%D%/packages/patches/vte-CVE-2012-2738-pt1.patch \
%D%/packages/patches/vte-CVE-2012-2738-pt2.patch \
%D%/packages/patches/vtk-7-gcc-10-compat.patch \
+ %D%/packages/patches/vtk-7-gcc-11-compat.patch \
%D%/packages/patches/vtk-7-hdf5-compat.patch \
%D%/packages/patches/vtk-7-python-compat.patch \
%D%/packages/patches/wacomtablet-add-missing-includes.patch \
diff --git a/gnu/packages/image-processing.scm
b/gnu/packages/image-processing.scm
index 4c7e97f85b..8fc93a8842 100644
--- a/gnu/packages/image-processing.scm
+++ b/gnu/packages/image-processing.scm
@@ -473,7 +473,8 @@ integrates with various databases on GUI toolkits such as
Qt and Tk.")
"0nm7xwwj7rnsxjdv2ssviys8nhci4n9iiiqm2y14s520hl2dsp1d"))
(patches (search-patches "vtk-7-python-compat.patch"
"vtk-7-hdf5-compat.patch"
- "vtk-7-gcc-10-compat.patch"))))
+ "vtk-7-gcc-10-compat.patch"
+ "vtk-7-gcc-11-compat.patch"))))
(arguments
(substitute-keyword-arguments (package-arguments vtk)
((#:configure-flags flags)
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
- branch master updated (d6966b8a5b -> 299d0463d5), guix-commits, 2023/08/31
- 07/09: gnu: vtk-7: Fix build.,
guix-commits <=
- 01/09: gnu: pencil2d: Fix tests., guix-commits, 2023/08/31
- 05/09: gnu: btar: Fix build., guix-commits, 2023/08/31
- 02/09: gnu: cssc: Fix tests., guix-commits, 2023/08/31
- 06/09: gnu: kanshi: Update to 1.4.0., guix-commits, 2023/08/31
- 08/09: gnu: xkcdpass: Update to 1.19.4., guix-commits, 2023/08/31
- 04/09: gnu: chaiscript: Fix tests., guix-commits, 2023/08/31
- 03/09: gnu: src: Update to 1.32., guix-commits, 2023/08/31
- 09/09: gnu: upx: Update to 4.1.0., guix-commits, 2023/08/31