Bug 1243030

Summary: incompatibility with environment-modules
Product: [Fedora] Fedora EPEL Reporter: Dave Love <dave.love>
Component: LmodAssignee: Orion Poplawski <orion>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: el6CC: orion
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Lmod-6.5.1-2.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-01 17:18:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dave Love 2015-07-14 15:13:28 UTC
Description of problem:

I don't know to what extent the Lmod package is supposed to be compatible with
environment-modules, but I've found a number of problems trying it.  Probably
there should at least be a README.fedora or something to explain.  I'd got the
impression from the docs that Lmod was a drop-in replacement, though they
don't say as much.

I had it installed together with environment-modules.  Then I did
"module avail", it took an age to rebuild the cache and then failed because
the result is too complicated.  It appears to have got into a recursion
on /usr/share/Modules/modulefiles/modules which has stopped at some point
many levels down.

After removing environment-modules, various other things go wrong.  User scripts
and rpmbuild macros (%_openmpi_load), for instance, fail because they expect
to source /etc/profile.d/modules.sh.  Also /usr/share/Modules/init/.modulespath
isn't checked, which is the appropriate place to set the path as far as I know,
and at least what's always been used here.

I don't know what the best thing to do is, but I guess Lmod and
environment-modules should be alternatives and Lmod should be made
compatible in those sort of aspects.


Version-Release number of selected component (if applicable):
Lmod-5.7.5-1.el6.noarch

Comment 1 Orion Poplawski 2015-07-14 17:49:45 UTC
I don't remember seeing the "Rebuilding cache" issue before, but I can reproduce it now.  I'm pinging the Lmod author to get his take.

I'd forgotten about the issue of sourcing /etc/profile.d/modules.sh directly.  Alternatives would be ideal (that's how it is in Fedora), but I don't have control over environment-modules in RHEL.  I thought I'd filed a bug for that, but I didn't see one.  Filed bug #1243069.

Comment 2 Fedora Update System 2016-08-18 22:56:51 UTC
Lmod-6.5.1-2.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-a04322bf05

Comment 3 Fedora Update System 2016-08-20 02:48:45 UTC
Lmod-6.5.1-2.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-a04322bf05

Comment 4 Fedora Update System 2016-11-01 17:18:59 UTC
Lmod-6.5.1-2.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.