diff --git a/mvapich2.changes b/mvapich2.changes index fce509d..faa9463 100644 --- a/mvapich2.changes +++ b/mvapich2.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Nov 4 20:31:05 UTC 2025 - Nicolas Morey + +- Replace call to autogen.sh with autoreconf +- Speed up testsuite by not rebuilding mvpich2 completely +- Fix CFLAGS/FFLAGS + ------------------------------------------------------------------- Fri Jul 11 08:07:56 UTC 2025 - Nicolas Morey diff --git a/mvapich2.spec b/mvapich2.spec index 6837a8d..54f52ad 100644 --- a/mvapich2.spec +++ b/mvapich2.spec @@ -127,6 +127,10 @@ BuildRequires: libibmad-devel %endif Requires: mpi-selector +%if 0%{?testsuite} +BuildRequires: %package_name-devel = %{version} +%endif + %description This is an MPI-3 implementation which includes all MPI-1 features. It is based on MPICH2 and MVICH. @@ -188,11 +192,11 @@ cp /usr/share/automake*/config.* . # GCC10 needs an extra flag to allow badly passed parameters %if 0%{?suse_version} > 1500 -export FFLAGS="-fallow-argument-mismatch $FFLAGS" -export CFLAGS="-std=gnu17 $CFLAGS" +export FFLAGS="-fallow-argument-mismatch %{optflags}" +export CFLAGS="-std=gnu17 %{optflags}" %endif -PERL_USE_UNSAFE_INC=1 ./autogen.sh +PERL_USE_UNSAFE_INC=1 autoreconf -fi %configure \ --prefix=%{p_prefix} \ --exec-prefix=%{p_prefix} \ @@ -219,21 +223,25 @@ PERL_USE_UNSAFE_INC=1 ./autogen.sh --disable-ibv-dlopen \ %endif --without-mpe -make %{?_smp_mflags} V=1 %if 0%{?testsuite} -%check -make V=1 check -%endif - %install - -%if 0%{?testsuite} -# Remove everything from testsuite package -# It is all contained by mvapich2 packages rm -rf %{buildroot}/* +%check +# Disable CMA. Modern kernels require specific ptrace capabilities +# that are not available in OBS +export MPIR_CVAR_CH4_CMA_ENABLE=0 +for dir in src/mpl src/openpa src/pm/hydra/mpl; do + ( + cd $dir && make check + ) +done + %else +make %{?_smp_mflags} V=1 + +%install make DESTDIR=%{buildroot} V=1 install rm -f %{buildroot}%{p_libdir}/libfmpich.la \