From dcd5be1ce1fb8a57daf9ffffa9952d33465a52f4 Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Thu, 12 Sep 2024 18:12:14 +0000 Subject: [PATCH] extra/vtk to 9.3.1-4 --- extra/vtk/.SRCINFO | 6 +++++- extra/vtk/PKGBUILD | 12 +++++++++--- extra/vtk/fmt-11.patch | 44 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+), 4 deletions(-) create mode 100644 extra/vtk/fmt-11.patch diff --git a/extra/vtk/.SRCINFO b/extra/vtk/.SRCINFO index eaa6115c4..32dfb3d89 100644 --- a/extra/vtk/.SRCINFO +++ b/extra/vtk/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = vtk pkgdesc = Software system for 3D computer graphics, image processing, and visualization pkgver = 9.3.1 - pkgrel = 1 + pkgrel = 4 url = https://www.vtk.org arch = x86_64 license = BSD-3-Clause @@ -108,8 +108,12 @@ pkgbase = vtk source = https://www.vtk.org/files/release/9.3/VTK-9.3.1.tar.gz source = vtk-occt.patch source = ospray-3.patch + source = https://github.com/Kitware/VTK/commit/761aa1d15970fcb6aadb7d6152737fa9b2d4b0d0.patch + source = fmt-11.patch sha256sums = 8354ec084ea0d2dc3d23dbe4243823c4bfc270382d0ce8d658939fd50061cab8 sha256sums = df958eabc7dc4f5b33383ce0fb0f90a3ba202c1c2a24d3b5b9e7cfb1fb38b011 sha256sums = faf3fd2eea2f73a07f5dcbd67920161a07ae554e008ad1e4099153fec2882278 + sha256sums = 46de5cee71d696d9632472e27ed369ec49f0e276c3e4bb0a397397d928553864 + sha256sums = 8161d4e184a3f2d075be26605c0d38f04314a8e26146ab5b1c33f87dabc2b0d2 pkgname = vtk diff --git a/extra/vtk/PKGBUILD b/extra/vtk/PKGBUILD index f6e538259..de046d363 100644 --- a/extra/vtk/PKGBUILD +++ b/extra/vtk/PKGBUILD @@ -17,7 +17,7 @@ pkgname=vtk # May need bootstrapping on upgrades due to circular vtk <-> opencascade dependency pkgver=9.3.1 -pkgrel=1 +pkgrel=4 pkgdesc="Software system for 3D computer graphics, image processing, and visualization" arch=(x86_64) url="https://www.vtk.org" @@ -127,10 +127,14 @@ optdepends=( options=(staticlibs) source=(${url}/files/release/${pkgver%.*}/VTK-${pkgver}.tar.gz vtk-occt.patch - ospray-3.patch) + ospray-3.patch + https://github.com/Kitware/VTK/commit/761aa1d15970fcb6aadb7d6152737fa9b2d4b0d0.patch + fmt-11.patch) sha256sums=('8354ec084ea0d2dc3d23dbe4243823c4bfc270382d0ce8d658939fd50061cab8' 'df958eabc7dc4f5b33383ce0fb0f90a3ba202c1c2a24d3b5b9e7cfb1fb38b011' - 'faf3fd2eea2f73a07f5dcbd67920161a07ae554e008ad1e4099153fec2882278') + 'faf3fd2eea2f73a07f5dcbd67920161a07ae554e008ad1e4099153fec2882278' + '46de5cee71d696d9632472e27ed369ec49f0e276c3e4bb0a397397d928553864' + '8161d4e184a3f2d075be26605c0d38f04314a8e26146ab5b1c33f87dabc2b0d2') prepare() { cd ${pkgname^^}-${pkgver} @@ -139,6 +143,8 @@ prepare() { patch -Np1 -i "$srcdir"/vtk-occt.patch patch -Np1 -i ../ospray-3.patch # Fix build with ospray 3.0 + patch -Np1 -i "$srcdir"/761aa1d15970fcb6aadb7d6152737fa9b2d4b0d0.patch # Fix OCCT 7.8.0 + patch -p1 -i ../fmt-11.patch # Fix build with fmt 11 } build() { diff --git a/extra/vtk/fmt-11.patch b/extra/vtk/fmt-11.patch new file mode 100644 index 000000000..573735a92 --- /dev/null +++ b/extra/vtk/fmt-11.patch @@ -0,0 +1,44 @@ +diff -ru VTK-9.3.1.orig/ThirdParty/ioss/vtkioss/Ioss_IOFactory.C VTK-9.3.1/ThirdParty/ioss/vtkioss/Ioss_IOFactory.C +--- VTK-9.3.1.orig/ThirdParty/ioss/vtkioss/Ioss_IOFactory.C 2024-09-08 10:39:43.785130427 +0200 ++++ VTK-9.3.1/ThirdParty/ioss/vtkioss/Ioss_IOFactory.C 2024-09-08 10:42:08.072087946 +0200 +@@ -12,6 +12,7 @@ + #include // for nullptr + #include "vtk_fmt.h" + #include VTK_FMT(fmt/ostream.h) ++#include VTK_FMT(fmt/ranges.h) + #include // for _Rb_tree_iterator, etc + #include // for basic_ostream, etc + #include +diff -ru VTK-9.3.1.orig/ThirdParty/ioss/vtkioss/Ioss_StructuredBlock.C VTK-9.3.1/ThirdParty/ioss/vtkioss/Ioss_StructuredBlock.C +--- VTK-9.3.1.orig/ThirdParty/ioss/vtkioss/Ioss_StructuredBlock.C 2024-09-08 10:39:43.788463820 +0200 ++++ VTK-9.3.1/ThirdParty/ioss/vtkioss/Ioss_StructuredBlock.C 2024-09-08 10:57:28.625305675 +0200 +@@ -15,6 +15,7 @@ + #include + #include "vtk_fmt.h" + #include VTK_FMT(fmt/ostream.h) ++#include VTK_FMT(fmt/ranges.h) + + #include // for size_t + #include +diff -ru VTK-9.3.1.orig/ThirdParty/ioss/vtkioss/Ioss_Utils.C VTK-9.3.1/ThirdParty/ioss/vtkioss/Ioss_Utils.C +--- VTK-9.3.1.orig/ThirdParty/ioss/vtkioss/Ioss_Utils.C 2024-09-08 10:39:43.791797211 +0200 ++++ VTK-9.3.1/ThirdParty/ioss/vtkioss/Ioss_Utils.C 2024-09-08 10:47:06.456187726 +0200 +@@ -21,6 +21,7 @@ + #include VTK_FMT(fmt/chrono.h) + #include VTK_FMT(fmt/format.h) + #include VTK_FMT(fmt/ostream.h) ++#include VTK_FMT(fmt/ranges.h) + #include + #include + #include +diff -ru VTK-9.3.1.orig/ThirdParty/ioss/vtkioss/Ioss_ZoneConnectivity.C VTK-9.3.1/ThirdParty/ioss/vtkioss/Ioss_ZoneConnectivity.C +--- VTK-9.3.1.orig/ThirdParty/ioss/vtkioss/Ioss_ZoneConnectivity.C 2024-09-08 10:39:43.791797211 +0200 ++++ VTK-9.3.1/ThirdParty/ioss/vtkioss/Ioss_ZoneConnectivity.C 2024-09-08 10:51:18.889659250 +0200 +@@ -9,6 +9,7 @@ + #include // for size_t + #include "vtk_fmt.h" + #include VTK_FMT(fmt/ostream.h) ++#include VTK_FMT(fmt/ranges.h) + #include // for string + #include // for vector +