mash: added patch with limits header (#35209)

Co-authored-by: luke <luke@DESKTOP-E4JNTC1.attlocal.net>
This commit is contained in:
Luke Diorio-Toth 2023-02-06 06:08:31 -06:00 committed by GitHub
parent f0d8355248
commit 4c0116bd64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 1 deletions

View File

@ -0,0 +1,14 @@
# patch method from debian repo
# https://salsa.debian.org/med-team/mash/-/blob/master/debian/patches/gcc-11.patch
diff -Naur spack-src/src/mash/robin_hood.h spack-src.patched/src/mash/robin_hood.h
--- spack-src/src/mash/robin_hood.h 2021-02-26 17:13:33.000000000 -0600
+++ spack-src.patched/src/mash/robin_hood.h 2023-01-27 09:37:40.418855844 -0600
@@ -45,6 +45,7 @@
#include <memory> // only to support hash of smart pointers
#include <stdexcept>
#include <string>
+#include <limits>
#include <type_traits>
#include <utility>
#if __cplusplus >= 201703L

View File

@ -18,7 +18,7 @@ class Mash(AutotoolsPackage):
version("2.3", sha256="f96cf7305e010012c3debed966ac83ceecac0351dbbfeaa6cd7ad7f068d87fe1")
conflicts("%gcc@11:", msg="mash cannot be build with gcc >= 11")
patch("gcc-11.patch", when="%gcc@11:")
depends_on("autoconf", type="build")
depends_on("automake", type="build")