diff options
author | Christoph Willing <chris.willing@linux.com> | 2023-06-11 18:23:43 +1000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-06-17 17:19:00 +0700 |
commit | 4cbc50e7d7dd589cface65770b98d3f62ab69e41 (patch) | |
tree | 6388bd73ea625b04da6fa630156d08f3f8c563a0 | |
parent | c72693ca620ced42c6a51f362fb1b6ee006887ce (diff) |
libraries/VTK: Patch for gcc13
Signed-off-by: Christoph Willing <chris.willing@linux.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | libraries/VTK/VTK.SlackBuild | 5 | ||||
-rw-r--r-- | libraries/VTK/cstdint-for-gcc13.diff | 20 |
2 files changed, 24 insertions, 1 deletions
diff --git a/libraries/VTK/VTK.SlackBuild b/libraries/VTK/VTK.SlackBuild index 4c73b7828d..8319ed316c 100644 --- a/libraries/VTK/VTK.SlackBuild +++ b/libraries/VTK/VTK.SlackBuild @@ -29,7 +29,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=VTK VERSION=${VERSION:-9.2.6} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -95,7 +95,10 @@ cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION + patch -p1 < $CWD/include_limits.patch +patch -p0 < $CWD/cstdint-for-gcc13.diff + chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ diff --git a/libraries/VTK/cstdint-for-gcc13.diff b/libraries/VTK/cstdint-for-gcc13.diff new file mode 100644 index 0000000000..fbcb72696c --- /dev/null +++ b/libraries/VTK/cstdint-for-gcc13.diff @@ -0,0 +1,20 @@ +--- IO/Image/vtkSEPReader.h.orig 2023-02-15 14:03:53.000000000 +1000 ++++ IO/Image/vtkSEPReader.h 2023-06-11 17:30:00.164000000 +1000 +@@ -26,6 +26,7 @@ + #include "vtkNew.h" // for ivars + + #include <array> // for std::array ++#include <cstdint> + #include <string> // for std::string + + namespace details +--- ThirdParty/libproj/vtklibproj/src/proj_json_streaming_writer.hpp.orig 2023-02-15 14:03:53.000000000 +1000 ++++ ThirdParty/libproj/vtklibproj/src/proj_json_streaming_writer.hpp 2023-06-11 17:42:36.366000000 +1000 +@@ -32,6 +32,7 @@ + /*! @cond Doxygen_Suppress */ + + #include <vector> ++#include <cstdint> + #include <string> + + #define CPL_DLL |