-
Notifications
You must be signed in to change notification settings - Fork 196
Fix MANPATH override in modulefiles by preserving system manpath #2095
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
Conversation
Thanks. Have you thought about handling this directly in lmod? Instead of changing every module file, maybe it would make sense to talk to the lmod maintainers if this could be done directly in lmod? |
Thank you. Will reach out to the lmod. |
@Amrithasuresh Looking at the comments in the lmod ticket it seems it could be fixed with a couple of lines in our scripts in |
@adrianreber Sure. Thanks. Is it the change here? I will add a line here ohpc/components/admin/lmod/SPECS/lmod.spec
|
You should also handle it in the I am not 100% convinced that |
Thank you for the comment. How about this change here ohpc/components/admin/lmod/SPECS/lmod.spec bash shell block
C shell block
|
Not sure if I understand the problem correctly, but looking at the lmod source code it seems to use slightly different code at:
Why are you doing it differently? |
I am still learning how to contribute to open source projects, and this is one of my first PRs to OpenHPC. I really appreciate your patience while I am getting familiar with the process. Please check. I will see whether the test is successful or not. If not I will modify accordingly. Thank you for your time and support. |
Sure, no problem. |
See #2105 |
This PR resolves issue #2070 by prefixing a colon (
:
) to MANPATH.This preserves system default man pages while still including software-specific manpaths. Without this, modules may override and hide manpages such as
man bash
, especially on Rocky Linux 9.