From 9f66e543b396b47fcc313503e01f86bd14719877 Mon Sep 17 00:00:00 2001 From: Doug Ledford Date: Wed, 17 Oct 2007 19:25:14 +0000 Subject: [PATCH] - Update to 1.2.4 upstream version - Build against libtorque - Pass a valid mode to open - Resolves: bz189441, bz265141 --- openmpi-1.2.4-open.patch | 11 +++++++++++ openmpi.spec | 11 +++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 openmpi-1.2.4-open.patch diff --git a/openmpi-1.2.4-open.patch b/openmpi-1.2.4-open.patch new file mode 100644 index 0000000..5272f43 --- /dev/null +++ b/openmpi-1.2.4-open.patch @@ -0,0 +1,11 @@ +--- openmpi-1.2.4/orte/runtime/orte_abort.c.open 2007-10-17 14:47:28.000000000 -0400 ++++ openmpi-1.2.4/orte/runtime/orte_abort.c 2007-10-17 14:53:23.000000000 -0400 +@@ -88,7 +88,7 @@ int orte_abort(int status, bool report) + ORTE_ERROR_LOG(ORTE_ERR_OUT_OF_RESOURCE); + goto CLEANUP; + } +- fd = open(abort_file, O_CREAT); ++ fd = open(abort_file, O_WRONLY, O_CREAT); + if (0 < fd) close(fd); + } + diff --git a/openmpi.spec b/openmpi.spec index 5278c7f..74b4b1c 100644 --- a/openmpi.spec +++ b/openmpi.spec @@ -9,8 +9,9 @@ URL: http://www.open-mpi.org/ Source0: http://www.open-mpi.org/software/ompi/v1.2/downloads/%{name}-%{version}.tar.bz2 Source1: openmpi.pc.in Source2: openmpi.module.in +Patch0: openmpi-1.2.4-open.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: gcc-gfortran, libtool, numactl-devel, libsysfs-devel +BuildRequires: gcc-gfortran, libtool, numactl-devel, libtorque-devel #BuildRequires: libibverbs-devel, opensm-devel #%ifnarch ppc #BuildRequires: dapl-devel @@ -28,7 +29,7 @@ Requires(preun): /usr/sbin/alternatives %package devel Summary: Development files for openmpi Group: Development/Libraries -Requires: %{name} = %{version}-%{release} +Requires: %{name}-libs = %{version}-%{release} Provides: mpi-devel Requires(post): /usr/sbin/alternatives Requires(preun): /usr/sbin/alternatives @@ -107,6 +108,7 @@ Contains development headers and libraries for openmpi # Kill the stack protection and fortify source stuff...it slows things down # and openmpi hasn't been audited for it yet #RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//' | sed -e 's/-fstack-protector//'` +%patch0 -p1 %ifarch x86_64 XFLAGS="-fPIC" @@ -117,6 +119,8 @@ XFLAGS="-fPIC" --datadir=%{_datadir}/%{mpidir}/help%{mode} \ --mandir=%{_datadir}/%{mpidir}/man \ --with-libnuma=%{_libdir} \ + --with-threads=posix \ + --with-tm \ CC=%{opt_cc} \ LDFLAGS='-Wl,-z,noexecstack' \ CFLAGS="%{?opt_cc_cflags} $RPM_OPT_FLAGS $XFLAGS" \ @@ -265,6 +269,9 @@ alternatives --remove mpicc %{_bindir}/opal_wrapper-%{version}-%{opt_cc}-%{mode} %changelog * Wed Oct 17 2007 Doug Ledford - 1.2.4-1 - Update to 1.2.4 upstream version +- Build against libtorque +- Pass a valid mode to open +- Resolves: bz189441, bz265141 * Tue Aug 28 2007 Fedora Release Engineering - 1.2.3-5 - Rebuild for selinux ppc32 issue.