Add patch from upstream to fix default hostfile location

This commit is contained in:
Orion Poplawski 2012-05-15 16:24:18 -06:00
parent 0af97bd409
commit 8148523807
2 changed files with 20 additions and 1 deletions

13
openmpi-hostfile.patch Normal file
View File

@ -0,0 +1,13 @@
Index: orte/runtime/orte_mca_params.c
===================================================================
--- orte/runtime/orte_mca_params.c (revision 26440)
+++ orte/runtime/orte_mca_params.c (working copy)
@@ -303,7 +303,7 @@
false, false, NULL, &strval);
if (NULL == strval) {
/* nothing was given, so define the default */
- asprintf(&orte_default_hostfile, "%s/etc/openmpi-default-hostfile", opal_install_dirs.prefix);
+ asprintf(&orte_default_hostfile, "%s/openmpi-default-hostfile", opal_install_dirs.sysconfdir);
/* flag that nothing was given */
orte_default_hostfile_given = false;
} else if (0 == strcmp(strval, "none")) {

View File

@ -19,7 +19,7 @@
Name: openmpi%{?_cc_name_suffix} Name: openmpi%{?_cc_name_suffix}
Version: 1.6 Version: 1.6
Release: 1%{?dist} Release: 2%{?dist}
Summary: Open Message Passing Interface Summary: Open Message Passing Interface
Group: Development/Libraries Group: Development/Libraries
License: BSD, MIT and Romio License: BSD, MIT and Romio
@ -35,6 +35,8 @@ Source1: openmpi.module.in
Source2: macros.openmpi Source2: macros.openmpi
# Patch to handle removed items # Patch to handle removed items
Patch0: openmpi-removed.patch Patch0: openmpi-removed.patch
# Patch from upstream svn to fix default hostfile location
Patch1: openmpi-hostfile.patch
BuildRequires: gcc-gfortran, libtool BuildRequires: gcc-gfortran, libtool
# ARM HW doesn't support NUMA # ARM HW doesn't support NUMA
@ -115,6 +117,7 @@ Contains development headers and libraries for openmpi
%prep %prep
%setup -q -n openmpi-%{version} %setup -q -n openmpi-%{version}
%patch0 -p1 -b .removed %patch0 -p1 -b .removed
%patch1 -p0 -b .hostfile
# Make sure we don't use the local libltdl library # Make sure we don't use the local libltdl library
rm -r opal/libltdl rm -r opal/libltdl
@ -236,6 +239,9 @@ sed -i -e s/-ldl// -e s/-lhwloc// \
%{_sysconfdir}/rpm/macros.%{namearch} %{_sysconfdir}/rpm/macros.%{namearch}
%changelog %changelog
* Tue May 15 2012 Orion Poplawski <orion@cora.nwra.com> 1.6.0-2
- Add patch from upstream to fix default hostfile location
* Tue May 15 2012 Orion Poplawski <orion@cora.nwra.com> 1.6.0-1 * Tue May 15 2012 Orion Poplawski <orion@cora.nwra.com> 1.6.0-1
- Update to 1.6.0 - Update to 1.6.0
- Drop arm patch, appears to be addressed upstream - Drop arm patch, appears to be addressed upstream