Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

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