vtk/vtk-std_numeric_limits.patch
Atri Bhattacharya 4e1cfe3078 Accepting request 901010 from home:bnavigator:branches:science
- Add vtk-opensuse-python-metadata.patch:
  Installing without VTK_BUILD_WHEEL lacks the dist-info/egg-info
  metadata. When a user installs python packages which depend
  on vtk through pip (into the user home or into a virtualenv),
  pip does not recognize the files installed into site-packages
  without the metadata and pulls in a big manylinux wheel from
  PyPI. We introduce the necessary egg-info metadata in order to
  avoid this.
- python3-vtk: Don't own the arch site-packages (%python3_sitearch)
  and the toplevel __pycache__ dir, only our own python files.
- Move qt and python .so devel files to main devel package, adjust
  rpmlintrc: The devel files are not required by the
  python bindings (anymore?).
- Add vtk-std_numeric_limits.patch in order to fix gcc 11.1 build
  https://gitlab.kitware.com/vtk/vtk/-/issues/18194
- Require %{name}-qt in python3-%{name}: The Python bindings link
  to libvtkRenderingQt.so.1, but zypper fails to resolve the
  requirement to the correct (non-)mpi flavor -- boo#1187161
- Change description: The vtk-qt subpackage provides some Qt
  libraries, not a designer plugin.
- Support for QtWebkit was removed with vtk 9.0.0: Remove the build
  requirement.

OBS-URL: https://build.opensuse.org/request/show/901010
OBS-URL: https://build.opensuse.org/package/show/science/vtk?expand=0&rev=169
2021-06-27 22:21:07 +00:00

71 lines
2.2 KiB
Diff

From c7d6a8d81367a4ed92163c059aa3181386eabc24 Mon Sep 17 00:00:00 2001
From: Ben Boeckel <ben.boeckel@kitware.com>
Date: Mon, 3 May 2021 11:55:27 -0400
Subject: [PATCH] vtkDataArrayPrivate: include <limits> for std::numeric_limits
See: #18194
---
Common/Core/vtkDataArrayPrivate.txx | 1 +
1 file changed, 1 insertion(+)
Index: VTK-9.0.1/Common/Core/vtkDataArrayPrivate.txx
===================================================================
--- VTK-9.0.1.orig/Common/Core/vtkDataArrayPrivate.txx
+++ VTK-9.0.1/Common/Core/vtkDataArrayPrivate.txx
@@ -24,6 +24,7 @@
#include <algorithm>
#include <array>
#include <cassert> // for assert()
+#include <limits>
#include <vector>
namespace vtkDataArrayPrivate
Index: VTK-9.0.1/Common/Core/vtkGenericDataArrayLookupHelper.h
===================================================================
--- VTK-9.0.1.orig/Common/Core/vtkGenericDataArrayLookupHelper.h
+++ VTK-9.0.1/Common/Core/vtkGenericDataArrayLookupHelper.h
@@ -25,6 +25,7 @@
#include "vtkIdList.h"
#include <algorithm>
#include <cmath>
+#include <limits>
#include <unordered_map>
#include <vector>
Index: VTK-9.0.1/Common/DataModel/vtkPiecewiseFunction.cxx
===================================================================
--- VTK-9.0.1.orig/Common/DataModel/vtkPiecewiseFunction.cxx
+++ VTK-9.0.1/Common/DataModel/vtkPiecewiseFunction.cxx
@@ -22,6 +22,7 @@
#include <cassert>
#include <cmath>
#include <iterator>
+#include <limits>
#include <set>
#include <vector>
Index: VTK-9.0.1/Filters/HyperTree/vtkHyperTreeGridThreshold.cxx
===================================================================
--- VTK-9.0.1.orig/Filters/HyperTree/vtkHyperTreeGridThreshold.cxx
+++ VTK-9.0.1/Filters/HyperTree/vtkHyperTreeGridThreshold.cxx
@@ -28,6 +28,7 @@
#include "vtkHyperTreeGridNonOrientedCursor.h"
#include <cmath>
+#include <limits>
vtkStandardNewMacro(vtkHyperTreeGridThreshold);
Index: VTK-9.0.1/Rendering/Core/vtkColorTransferFunction.cxx
===================================================================
--- VTK-9.0.1.orig/Rendering/Core/vtkColorTransferFunction.cxx
+++ VTK-9.0.1/Rendering/Core/vtkColorTransferFunction.cxx
@@ -21,6 +21,7 @@
#include <algorithm>
#include <cmath>
#include <iterator>
+#include <limits>
#include <set>
#include <vector>