kahip: Add patch to fix missing include (#46084)

This commit is contained in:
etiennemlb 2024-09-24 22:45:08 +02:00 committed by GitHub
parent 43d1cdb0bd
commit ff4e311e72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 0 deletions

View File

@ -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>

View File

@ -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):