diff --git a/vtk-ppc64-no-always-inline.patch b/vtk-ppc64-no-always-inline.patch new file mode 100644 index 0000000..60d5bc5 --- /dev/null +++ b/vtk-ppc64-no-always-inline.patch @@ -0,0 +1,14 @@ +diff --git a/Common/Core/vtkDataArrayMeta.h b/Common/Core/vtkDataArrayMeta.h +index 376244b..9b8f58e 100644 +--- a/Common/Core/vtkDataArrayMeta.h ++++ b/Common/Core/vtkDataArrayMeta.h +@@ -43,7 +43,8 @@ + #define VTK_ITER_ASSERT(x, msg) + #endif + +-#if defined(VTK_ALWAYS_OPTIMIZE_ARRAY_ITERATORS) && !defined(VTK_DEBUG_RANGE_ITERATORS) ++#if (defined(VTK_ALWAYS_OPTIMIZE_ARRAY_ITERATORS) || !defined(VTK_DEBUG_RANGE_ITERATORS)) && \ ++ !defined(VTK_COMPILER_MSVC) && !defined(__PPC64__) + #define VTK_ITER_INLINE VTK_ALWAYS_INLINE + #define VTK_ITER_ASSUME VTK_ASSUME_NO_ASSERT + #define VTK_ITER_OPTIMIZE_START VTK_ALWAYS_OPTIMIZE_START diff --git a/vtk.spec b/vtk.spec index 3c2ae42..6933f09 100644 --- a/vtk.spec +++ b/vtk.spec @@ -60,6 +60,10 @@ Patch2: vtk-netcdf.patch Patch3: vtk-AllValues.patch # CVE-2021-42521 - vtkXMLTreeReader: possible nullptr dereference Patch4: https://gitlab.kitware.com/vtk/vtk/-/merge_requests/9621.patch +# always_inline fails on ppc64le +# https://gitlab.kitware.com/vtk/vtk/-/issues/19622 +# https://bugzilla.redhat.com/show_bug.cgi?id=2386242 +Patch5: vtk-ppc64-no-always-inline.patch URL: https://vtk.org/ @@ -848,6 +852,7 @@ cat xorg.log %changelog * Tue Nov 25 2025 Orion Poplawski - 9.1.0-20 - Rebuild for gdal (rhbz#2416611) +- Backport ppc64le inline patch * Tue Jun 24 2025 Orion Poplawski - 9.1.0-19 - Rebuild for proj 9