1
1
openmpi/opal/mca
Jeff Squyres dc7d30b0ed We (Ralph and Jeff) discovered that if the OPAL_DESTDIR environment
variable was set, it was prefixed to ''all'' values in the wrapper
compiler data text files.  For example, if OPAL_DESTDIR was set to
/tmp/bogus and a wrapper compiler data file contained the line:

  preprocessor_flags=-pthread

The value would be exanded to:

  /tmp/bogus/-pthread

Which is clearly wrong.  After some back-and-forth with Ralph and
Brian, Brian submitted this patch that fixes the problem.  Now we
handle three cases properly (assume that configure was invoked with
--prefix=/opt/openmpi and no other directory specifications, and
$OPAL_DESTDIR is set to /tmp/buildroot):

1. Individual directories, such as libdir.  These need to be prepended
with DESTDIR.  I.e., return /tmp/buildroot/opt/openmpi/lib.

2. Compiler flags that have ${FIELD} values embedded in them.  For
example, consider if a wrapper compiler data file contains the
line:

  preprocessor_flags=-DMYFLAG="${prefix}/share/randomthingy/"

The value we should return is:

  -DMYFLAG="/tmp/buildroot/opt/openmpi/share/randomthingy/"

3. Compiler flags that do not have any ${FIELD} values.  For example,
consider if a wrapper compiler data file contains the line:

  preprocessor_flags=-pthread

The value we should return is:

  -pthread

Note, too, that this OPAL_DESTDIR futzing only needs to occur during
opal_init().  By the time opal_init() has completed, all values should
be substituted in that need substituting.  Hence, we take an extra
parameter (is_setup) to know whether we should do this futzing or
not.

This commit was SVN r23402.
2010-07-14 00:53:08 +00:00
..
backtrace - Replace combinations of 2009-08-20 11:42:18 +00:00
base Add --with-libltdl option to allow building Open MPI with an external installation of libltdl. Fixes trac:2407 2010-05-20 22:42:02 +00:00
carto - We don't configure-check for errno.h and don't need errno.h here... 2010-02-09 01:12:52 +00:00
crs * Wrap all the direct error-code checks of the form (OMPI_ERR_* == ret) with 2010-05-17 23:08:56 +00:00
installdirs We (Ralph and Jeff) discovered that if the OPAL_DESTDIR environment 2010-07-14 00:53:08 +00:00
maffinity - Replace combinations of 2009-08-20 11:42:18 +00:00
memchecker - Replace combinations of 2009-08-20 11:42:18 +00:00
memcpy - Replace combinations of 2009-08-20 11:42:18 +00:00
memory Add missing header file 2010-05-17 21:31:24 +00:00
paffinity Per comments in this commit, hwloc isn't able to find cores on all 2010-06-25 21:36:53 +00:00
pstat Updates to make trunk run on Catamount again: 2010-02-03 05:07:40 +00:00
sysinfo Need separate flag for select when initializing sysinfo framework 2010-01-12 23:22:46 +00:00
timer Ensure that we're actually checking for *linux*. Thanks to Aleksej 2010-07-01 23:26:49 +00:00
Makefile.am Update the copyright notices for IU and UTK. 2005-11-05 19:57:48 +00:00
mca.h Per http://www.open-mpi.org/community/lists/devel/2010/01/7283.php, allow MCA components to fail the component.register and component.open methods without the MCA base printing errors. 2010-01-12 19:29:12 +00:00