Bug 1243030 - incompatibility with environment-modules
Summary: incompatibility with environment-modules
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: Lmod
Version: el6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Orion Poplawski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-14 15:13 UTC by Dave Love
Modified: 2016-11-01 17:18 UTC (History)
1 user (show)

Fixed In Version: Lmod-6.5.1-2.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-01 17:18:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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