From 622c4b136200a452ca8b750045bf3af5aff3430d Mon Sep 17 00:00:00 2001 From: Yinsist Date: Sun, 28 Apr 2024 14:58:46 +0000 Subject: [PATCH] first check if Valgrind supports the architecture --- mpich.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/mpich.spec b/mpich.spec index 5adf655..f231f8c 100644 --- a/mpich.spec +++ b/mpich.spec @@ -1,7 +1,7 @@ Summary: A high-performance implementation of MPI Name: mpich Version: 4.0.3 -Release: 4 +Release: 5 License: MIT URL: http://www.mpich.org/ Source0: http://www.mpich.org/static/downloads/%{version}/mpich-%{version}.tar.gz @@ -10,7 +10,10 @@ Source2: mpich.pth.py3 Patch0: mpich-modules.patch Patch1: remove_json_c_conflict_glibc.patch -BuildRequires: gcc gcc-c++ gcc-gfortran hwloc-devel >= 1.8 valgrind-devel +BuildRequires: gcc gcc-c++ gcc-gfortran hwloc-devel >= 1.8 +%ifarch "%{valgrind_arches}" +BuildRequires: valgrind-devel +%endif BuildRequires: python3-devel automake Provides: mpi Provides: mpich2 = %{version} @@ -201,6 +204,9 @@ make check V=1 %{python3_sitearch}/mpich.pth %changelog +* Sun Apr 28 2024 yinsist - 4.0.3-5 +- Valgrind does not support certain architectures like RISC-V, Before depending on Valgrind, first check if Valgrind supports the architecture + * Thu Jul 27 2023 misaka00251 - 4.0.3-4 - Fix build error on riscv64 -- Gitee