Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

Subject: [OMPI devel] PATCH: remove trailing colon at the end of the generated LD_LIBRARY_PATH
From: Nadia Derbey (Nadia.Derbey_at_[hidden])
Date: 2010-02-16 06:46:50


The genereted in openmpi.spec might in some cases lead to a
LD_LIBRARY_PATH that contains a trailing ":". This happens if the
LD_LIBRARY_PATH is originally unset.
This means that current directory is included in the search path for the
loader, which might not be the desired result.

The following patch proposal fixes this potential issue by adding the
":" only if LD_LIBRARY_PATH is already set.


diff -r 6609b6ba7637 contrib/dist/linux/openmpi.spec
--- a/contrib/dist/linux/openmpi.spec Mon Feb 15 22:14:59 2010 +0000
+++ b/contrib/dist/linux/openmpi.spec Tue Feb 16 12:44:41 2010 +0100
@@ -505,7 +505,7 @@ fi

 if test -z "\`echo \$LD_LIBRARY_PATH | grep %{_libdir}\`"; then
     export LD_LIBRARY_PATH