Accepting request 851870 from home:eeich:branches:science:HPC

- Preliminary %check stage. A number of checks fail currently.
  These need to be looked at.

OBS-URL: https://build.opensuse.org/request/show/851870
OBS-URL: https://build.opensuse.org/package/show/science:HPC/mpiP?expand=0&rev=35
This commit is contained in:
2020-11-30 16:43:27 +00:00
committed by Git OBS Bridge
parent e21a8d51f8
commit 4b2404ff02
3 changed files with 48 additions and 7 deletions

View File

@@ -264,14 +264,16 @@ Release: 0
URL: https://github.com/LLNL/mpiP
Source0: https://github.com/LLNL/mpiP/releases/download/%{version}/mpip-%{version}.tgz#/%{pname}-%{version}.tgz
Patch1: mpip.unwinder.patch
Patch2: Add-return-value-to-non-void-function.patch
BuildRequires: %{compiler_family}%{?c_f_ver}-compilers-hpc-macros-devel
BuildRequires: %{mpi_family}%{?mpi_ver}-%{compiler_family}%{?c_f_ver}-hpc-macros-devel
BuildRequires: binutils-devel
BuildRequires: dejagnu
BuildRequires: libunwind-devel
BuildRequires: lua-lmod
BuildRequires: python
BuildRequires: slurm-node
#BuildRequires: slurm-node
BuildRequires: suse-hpc
%{?hpc_requires}
@@ -305,6 +307,8 @@ Group: Development/Libraries/C and C++
%description devel-static
mpiP is a profiling library for MPI applications.
This package contains the static libraries.
%package doc
Summary: Documentation for the mpiP profiling library
Group: Documentation/Other
@@ -318,16 +322,18 @@ This contains the documentation.
%prep
%setup -q -n %{pname}-%{version}
%patch1 -p1
%autopatch -p1
sed -i -e "/-shared -o \$@/s#\(\${LDFLAGS}\)#\1 -Wl,-soname,\$@#" Makefile.in
%build
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
%hpc_setup
CC=mpicc
CXX=mpicxx
FC=mpif90
CFLAGS="-D__DATE__=\\\"NODATE\\\" -D__TIME__=\\\"NOTIME\\\""
export LDFLAGS=-Wl,-soname,libmpiP.so
export CC=mpicc
export CXX=mpicxx
export FC=mpifort
export F77=$FC
export CFLAGS="-D__DATE__=\\\"NODATE\\\" -D__TIME__=\\\"NOTIME\\\""
export FFLAGS="-std=legacy"
%hpc_configure \
--enable-demangling \
%ifarch aarch64
@@ -383,6 +389,16 @@ setenv %{hpc_upcase %pname}_LIB %{hpc_libdir}
EOF
%check
%hpc_setup
export CC=mpicc
export CXX=mpicxx
export FC=mpifort
export F77=$FC
export FFLAGS="-std=legacy"
LD_LIBRARY_PATH=$(pwd)${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
make FFLAGS+=${FFLAGS} check || exit 0
%postun
%hpc_module_delete_if_default