!37 first check if Valgrind supports the build architecture

From: @yinist 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2024-05-07 01:02:48 +00:00 committed by Gitee
commit 8f8709fce9
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,7 +1,7 @@
Summary: A high-performance implementation of MPI Summary: A high-performance implementation of MPI
Name: mpich Name: mpich
Version: 4.0.3 Version: 4.0.3
Release: 4 Release: 5
License: MIT License: MIT
URL: http://www.mpich.org/ URL: http://www.mpich.org/
Source0: http://www.mpich.org/static/downloads/%{version}/mpich-%{version}.tar.gz Source0: http://www.mpich.org/static/downloads/%{version}/mpich-%{version}.tar.gz
@ -10,7 +10,10 @@ Source2: mpich.pth.py3
Patch0: mpich-modules.patch Patch0: mpich-modules.patch
Patch1: remove_json_c_conflict_glibc.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 BuildRequires: python3-devel automake
Provides: mpi Provides: mpi
Provides: mpich2 = %{version} Provides: mpich2 = %{version}
@ -201,6 +204,9 @@ make check V=1
%{python3_sitearch}/mpich.pth %{python3_sitearch}/mpich.pth
%changelog %changelog
* Sun Apr 28 2024 yinsist <jianhui.oerv@isrc.iscas.ac.cn> - 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 <liuxin@iscas.ac.cn> - 4.0.3-4 * Thu Jul 27 2023 misaka00251 <liuxin@iscas.ac.cn> - 4.0.3-4
- Fix build error on riscv64 - Fix build error on riscv64