pruners-ninja: patch in upstream fix for spack issue #32112 (#38613)

This commit is contained in:
eugeneswalker 2023-06-28 14:02:52 -05:00 committed by GitHub
parent ccae0ad534
commit c3f4822f92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 0 deletions

View file

@ -22,3 +22,5 @@ class PrunersNinja(AutotoolsPackage):
depends_on("autoconf", type="build")
depends_on("automake", type="build")
depends_on("libtool", type="build")
patch("pruners-mutli-def-a-pr3-fix.patch")

View file

@ -0,0 +1,24 @@
diff -ruN spack-src/test/ninja_test_hypre_parasails.c spack-src-patched/test/ninja_test_hypre_parasails.c
--- spack-src/test/ninja_test_hypre_parasails.c 2017-04-25 12:24:43.000000000 -0700
+++ spack-src-patched/test/ninja_test_hypre_parasails.c 2023-06-28 07:41:49.676373145 -0700
@@ -306,7 +306,7 @@
#define LEN (64)
float calibration = 1;
-int a[LEN];
+static int a[LEN];
static void do_noise_work(float msec, int bool)
{
#ifdef ENABLE_NOISE
diff -ruN spack-src/test/ninja_test_util.c spack-src-patched/test/ninja_test_util.c
--- spack-src/test/ninja_test_util.c 2017-03-13 15:36:28.000000000 -0700
+++ spack-src-patched/test/ninja_test_util.c 2023-06-28 07:42:06.444492687 -0700
@@ -31,7 +31,7 @@
#define LEN (2)
int lpusec;
-int a[LEN];
+static int a[LEN];
static void do_noise_work(int loops)
{
int i;