Bug 456114 - mpivars MANPATH incorrectly set
mpivars MANPATH incorrectly set
Status: CLOSED DUPLICATE of bug 455885
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: openmpi (Show other bugs)
5.2
All Linux
low Severity low
: rc
: ---
Assigned To: Doug Ledford
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-07-21 12:02 EDT by Chris Schanzle
Modified: 2008-07-21 12:32 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-07-21 12:32:28 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Chris Schanzle 2008-07-21 12:02:53 EDT
Description of problem:
Once a system or user default of openmpi is set:

sudo mpi-selector --system --set openmpi-1.2.5-gcc-`uname -i` --yes

if MANPATH is unset by any other means, openmpi's mpivars.sh will set MANPATH
to, say,

/usr/lib/openmpi/1.2.5-gcc/share/man

Then, no other man pages can be searched.  (e.g., 'man ls' fails)

Suggested fix:
set MANPATH with trailing colon (:) if MANPATH is empty:

--- /usr/lib/openmpi/1.2.5-gcc/etc/mpivars.sh~  2008-05-25 01:28:57.000000000 -0400
+++ /usr/lib/openmpi/1.2.5-gcc/etc/mpivars.sh   2008-07-21 11:36:14.000000000 -0400
@@ -19,7 +19,7 @@
     if [ -n "$MANPATH" ]; then
        export MANPATH=/usr/lib/openmpi/1.2.5-gcc/share/man:$MANPATH
     else
-       export MANPATH=/usr/lib/openmpi/1.2.5-gcc/share/man
+       export MANPATH=/usr/lib/openmpi/1.2.5-gcc/share/man:
     fi
 fi
 

Note for this to take effect, after manual patching, must unregister and
re-register openmpi with mpi-selector so the scripts get re-copied to
/var/lib/mpi-selector/data/ (or just edit those target files directly)

The same applies to the *.csh scripts.

It's unfortunate 'man' won't find the man pages without setting MANPATH, but
from what I can tell (strace -e trace=file man mpicc  2>&1 | egrep openmpi), man
won't look in bin PATH elements "../share/man/".  Maybe a symlink to the man dir
/usr/lib/openmpi/1.2.5-gcc/man -> share/man.
Comment 1 Doug Ledford 2008-07-21 12:32:28 EDT

*** This bug has been marked as a duplicate of 455885 ***

Note You need to log in before you can comment on or make changes to this bug.