summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authoretiennemlb <72296335+etiennemlb@users.noreply.github.com>2024-09-24 22:45:08 +0200
committerGitHub <noreply@github.com>2024-09-24 22:45:08 +0200
commitff4e311e72d59a316103dd6ff76f1af283dfe04e (patch)
treea374af2df2d2027ad6713bfac7b2614f94b8e0c4 /var
parent43d1cdb0bd4780bff369dafa681a8a7939313784 (diff)
downloadspack-ff4e311e72d59a316103dd6ff76f1af283dfe04e.tar.gz
spack-ff4e311e72d59a316103dd6ff76f1af283dfe04e.tar.bz2
spack-ff4e311e72d59a316103dd6ff76f1af283dfe04e.tar.xz
spack-ff4e311e72d59a316103dd6ff76f1af283dfe04e.zip
kahip: Add patch to fix missing include (#46084)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/kahip/cstdint.patch11
-rw-r--r--var/spack/repos/builtin/packages/kahip/package.py2
2 files changed, 13 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/kahip/cstdint.patch b/var/spack/repos/builtin/packages/kahip/cstdint.patch
new file mode 100644
index 0000000000..01831e824e
--- /dev/null
+++ b/var/spack/repos/builtin/packages/kahip/cstdint.patch
@@ -0,0 +1,11 @@
+diff -Naur spack-src/lib/io/mmap_graph_io.h spack-src/lib/io/mmap_graph_io.patched.h
+--- spack-src/lib/io/mmap_graph_io.h 2024-08-22 17:56:05.689983013 +0200
++++ spack-src/lib/io/mmap_graph_io.patched.h 2024-08-22 17:58:10.915413214 +0200
+@@ -1,6 +1,7 @@
+ #pragma once
+
+ #include <cctype>
++#include <cstdint>
+ #include <cstring>
+ #include <fcntl.h>
+ #include <fstream>
diff --git a/var/spack/repos/builtin/packages/kahip/package.py b/var/spack/repos/builtin/packages/kahip/package.py
index 6a757784c1..314e37296c 100644
--- a/var/spack/repos/builtin/packages/kahip/package.py
+++ b/var/spack/repos/builtin/packages/kahip/package.py
@@ -69,6 +69,8 @@ class Kahip(CMakePackage):
patch("fix-sconstruct-for-py3.patch", when="@2:2.10 ^python@3:")
patch("fix-sconstruct-for-py3-v2.00.patch", when="@2.00 ^python@3:")
+ patch("cstdint.patch", when="@3:")
+
# 'when' decorators to override new CMake build approach (old build was SConstruct).
@when("@:2.10")
def patch(self):