From 1a5a7373dd10f18222c040ca9df93dd8f7b64f95 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Sat, 15 Aug 2015 00:46:39 +0200 Subject: [PATCH] 3.10.1-19 - Install libmpiwrap library under {_libdir}/openmpi/valgrind --- valgrind.spec | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/valgrind.spec b/valgrind.spec index 01169ce..a43a859 100644 --- a/valgrind.spec +++ b/valgrind.spec @@ -3,7 +3,7 @@ Summary: Tool for finding memory management bugs in programs Name: %{?scl_prefix}valgrind Version: 3.10.1 -Release: 18%{?dist} +Release: 19%{?dist} Epoch: 1 License: GPLv2+ URL: http://www.valgrind.org/ @@ -300,6 +300,17 @@ mkdir docs/installed mv $RPM_BUILD_ROOT%{_datadir}/doc/valgrind/* docs/installed/ rm -f docs/installed/*.ps +# We want the MPI wrapper installed under the openmpi libdir so the script +# generating the MPI library requires picks them up and sets up the right +# openmpi libmpi.so requires. Install symlinks in the original/upstream +# location for backwards compatibility. +pushd $RPM_BUILD_ROOT%{_libdir} +mkdir -p openmpi/valgrind +cd valgrind +mv libmpiwrap-%{valarch}-linux.so ../openmpi/valgrind/ +ln -s ../openmpi/valgrind/libmpiwrap-%{valarch}-linux.so +popd + %if "%{valsecarch}" != "" pushd $RPM_BUILD_ROOT%{_libdir}/valgrind/ rm -f *-%{valsecarch}-* || : @@ -387,10 +398,14 @@ echo ===============END TESTING=============== %files openmpi %defattr(-,root,root) %dir %{_libdir}/valgrind +%{_libdir}/openmpi/valgrind/libmpiwrap*.so %{_libdir}/valgrind/libmpiwrap*.so %endif %changelog +* Fri Aug 14 2015 Mark Wielaard - 3.10.1-19 +- Install libmpiwrap library under {_libdir}/openmpi/valgrind (#1238428) + * Mon Aug 10 2015 Sandro Mani - 1:3.10.1-18 - Rebuild for RPM MPI Requires Provides Change