-
Notifications
You must be signed in to change notification settings - Fork 196
Align MANPATH handling in lmod.spec to preserve system man pages (#2070) #2105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 3.x
Are you sure you want to change the base?
Conversation
…em man pages - Initialize MANPATH if unset to use system default paths - Append Lmod's own man directory using upstream 'addto' helper script - Prevents module MANPATH overrides that hide system man pages (fixes openhpc#2070) - Applied changes in both bash (lmod.sh) and csh (lmod.csh) profile scripts Signed-off-by: Suresh Panneerselvam <[email protected]>
setenv MANPATH ":" | ||
endif | ||
# Initialize MANPATH if unset, then safely append Lmod's man directory using addto helper | ||
setenv MANPATH ` ${OHPC_ADMIN}/lmod/lmod/libexec/addto MANPATH ${OHPC_ADMIN}/lmod/lmod/share/man ` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there are unnecessary spaces after and before the backticks in this line. Please remove them. The spaces which are inside of the content between the backticks:
setenv MANPATH `${OHPC_ADMIN}/lmod/lmod/libexec/addto MANPATH ${OHPC_ADMIN}/lmod/lmod/share/man`
@Amrithasuresh If you look at the result of the CI runs there will be an RPM which you can test locally to see if your change works as expected. |
lmod fails to build on opensuse:
I think this is related to your PR to fix things around apparmor. Any ides how this could be fixed? |
Test Results 30 files - 18 30 suites - 18 38s ⏱️ -12s Results for commit 07efc5e. ± Comparison against base commit c9a2481. This pull request removes 16 and adds 1 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
- Cleaned up MANPATH assignment in csh script as per review feedback Signed-off-by: Suresh Panneerselvam <[email protected]>
7f740a1
to
07efc5e
Compare
Summary
This PR updates the
lmod.spec
file to align MANPATH handlingChanges
lmod.sh
) and csh (lmod.csh
) profile scriptsRelated Issue
Fixes: #2070
Signed-off-by
Suresh Panneerselvam [email protected]