From f5b7a30eb0b8359bbfc3d01cdabd0ab8eafcb248 Mon Sep 17 00:00:00 2001 From: Doug Ledford Date: Mon, 16 Jul 2007 17:42:07 +0000 Subject: [PATCH] Fix directory permission problem --- openmpi.spec | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/openmpi.spec b/openmpi.spec index 1ce35d2..f3a494a 100644 --- a/openmpi.spec +++ b/openmpi.spec @@ -131,6 +131,13 @@ make %{?_smp_mflags} rm -rf ${RPM_BUILD_ROOT} make install DESTDIR=${RPM_BUILD_ROOT} +# Because no package owns the base openmpi directories, the install sets +# the mode wrong. This will cause problems when the first copy of openmpi +# is installed on a system. Correct the directory permissions here. +chmod 755 ${RPM_BUILD_ROOT}/%{_libdir}/openmpi +chmod 755 ${RPM_BUILD_ROOT}/%{_includedir}/openmpi +chmod 755 ${RPM_BUILD_ROOT}/%{_datadir}/openmpi + # Remove the symlinks from common names to the unique name in /usr/bin too rm ${RPM_BUILD_ROOT}%{_bindir}/mpi* # Move the wrapper program to a name that denotes the mode it compiles @@ -256,6 +263,9 @@ alternatives --remove mpicc %{_bindir}/opal_wrapper-%{version}-%{opt_cc}-%{mode} %changelog +* Mon Jul 16 2007 Doug Ledford - 1.2.3-4 +- Fix a directory permission problem on the base openmpi directories + * Thu Jul 12 2007 Florian La Roche - 1.2.3-3 - requires alternatives for various sub-rpms