Bug 2166670 - Change MODULEPATH in a module can trigger errors
Summary: Change MODULEPATH in a module can trigger errors
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: Lmod
Version: epel8
Hardware: All
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Orion Poplawski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-02 15:24 UTC by Ward
Modified: 2023-02-12 01:02 UTC (History)
2 users (show)

Fixed In Version: Lmod-8.7.19-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-02-12 01:02:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ward 2023-02-02 15:24:42 UTC
Description of problem:

Trying to change the MODULEPATH inside a module can lead to errors of the kind:
/usr/share/lmod/lmod/libexec/ModuleA.lua:581: attempt to index field '?' (a nil
value)

Module code:

pushenv("MODULEPATH", '/some/path')
prepend_path("MODULEPATH", '/another/path')



Version-Release number of selected component (if applicable):

8.7.6


How reproducible:

Just try to load a module file with the above code.



I've tried the latest Lmod (version 8.7.19) and there it works as expected.

Could we upgrade the EPEL version to 8.7.19?

Then we also gets some other fixes I'm keen on having ( https://github.com/TACC/Lmod/issues/613 ).

Comment 1 Fedora Update System 2023-02-03 03:58:45 UTC
FEDORA-EPEL-2023-111ad32c1c has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-111ad32c1c

Comment 2 Fedora Update System 2023-02-04 01:49:11 UTC
FEDORA-EPEL-2023-111ad32c1c has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-111ad32c1c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 3 Ward 2023-02-06 11:11:33 UTC
Can the update also be pushed to EPEL 9?

Comment 5 Fedora Update System 2023-02-12 01:02:49 UTC
FEDORA-EPEL-2023-111ad32c1c has been pushed to the Fedora EPEL 8 stable repository.
If problem still persists, 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.