[Bug 1159563] New: [HPC, environment modules] MODULEPATH in lua-lmod
http://bugzilla.suse.com/show_bug.cgi?id=1159563 Bug ID: 1159563 Summary: [HPC, environment modules] MODULEPATH in lua-lmod Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: bnc-team-screening@forge.provo.novell.com Reporter: cgoll@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Adding an additional module directory for all users is reliable possible at the moment. The module environment parses all the directories of $MODULEPATH, *but* overwrites $MODULEPATH in /etc/profile.d/lmod.sh. To fix this, lmod.sh should honor an existing MODULEPATH. As work around, one can make that a script holding additional paths $MODULEPATH is sourced after lmod.sh -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1159563 Alynx Zhou <alynx.zhou@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |alynx.zhou@suse.com Assignee|bnc-team-screening@forge.pr |eich@suse.com |ovo.novell.com | -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1159563 https://bugzilla.suse.com/show_bug.cgi?id=1159563#c1 Ana Guerrero <aguerrero@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |brian@interlinx.bc.ca --- Comment #1 from Ana Guerrero <aguerrero@suse.com> --- *** Bug 1174256 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1159563 https://bugzilla.suse.com/show_bug.cgi?id=1159563#c2 Matej Cepl <mcepl@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mcepl@suse.com --- Comment #2 from Matej Cepl <mcepl@suse.com> --- Does anybody understand tcsh? Is this the solution? Index: lua-lmod.spec =================================================================== --- lua-lmod.spec (revision be6ab1c59efba481b6b1bf7e9a8695bb) +++ lua-lmod.spec (working copy) @@ -195,9 +195,9 @@ export LMOD_PREPEND_BLOCK=normal if [ \$EUID -eq 0 ]; then - export MODULEPATH=%{?OHPC_MODULES:%{OHPC_ADMIN}/modulefiles:%{OHPC_MODULES}:}%{lua_lmod_admin_modulesdir}:%{lua_lmod_modulesdir} + export MODULEPATH=\${MODULEPATH:+\${MODULEPATH}:}%{?OHPC_MODULES:%{OHPC_ADMIN}/modulefiles:%{OHPC_MODULES}:}%{lua_lmod_admin_modulesdir}:%{lua_lmod_modulesdir} else - export MODULEPATH=%{?OHPC_MODULES:%{OHPC_MODULES}:}%{lua_lmod_modulesdir} + export MODULEPATH=\${MODULEPATH:+\${MODULEPATH}:}%{?OHPC_MODULES:%{OHPC_MODULES}:}%{lua_lmod_modulesdir} fi export BASH_ENV=%{_datadir}/lmod/%{version}/init/bash @@ -227,10 +227,16 @@ setenv LMOD_COLORIZE "no" setenv LMOD_PREPEND_BLOCK "normal" +if \${?MODULEPATH} then + setenv MODULEPATH "\${MODULEPATH}:" +else + setenv MODULEPATH "" +endif + if ( \`id -u\` == "0" ) then - setenv MODULEPATH "%{?OHPC_MODULES:%{OHPC_ADMIN}/modulefiles:%{OHPC_MODULES}:}%{lua_lmod_admin_modulesdir}:%{lua_lmod_modulesdir}" + setenv MODULEPATH "\${MODULEPATH}%{?OHPC_MODULES:%{OHPC_ADMIN}/modulefiles:%{OHPC_MODULES}:}%{lua_lmod_admin_modulesdir}:%{lua_lmod_modulesdir}" else - setenv MODULEPATH "%{?OHPC_MODULES:%{OHPC_MODULES}:}%{lua_lmod_modulesdir}" + setenv MODULEPATH "\${MODULEPATH}%{?OHPC_MODULES:%{OHPC_MODULES}:}%{lua_lmod_modulesdir}" endif # Initialize modules system -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1159563 https://bugzilla.suse.com/show_bug.cgi?id=1159563#c3 Egbert Eich <eich@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(werner@suse.com) --- Comment #3 from Egbert Eich <eich@suse.com> --- Actually, we may want to ask Werner. He's an expert on csh. @Werner, could you have a look if there is a better fix for this? You will find the corresponding change for bash there as well. -- You are receiving this mail because: You are on the CC list for the bug.
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com