Bug 1443124 - MODULEPATH variable doesn't survive 'sudo' (and similar security wrappers)
Summary: MODULEPATH variable doesn't survive 'sudo' (and similar security wrappers)
Keywords:
Status: CLOSED DUPLICATE of bug 1139165
Alias: None
Product: Fedora
Classification: Fedora
Component: environment-modules
Version: 27
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: 2017-04-18 14:02 UTC by Pavel Raiskup
Modified: 2017-11-10 17:56 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-11-10 17:56:57 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Pavel Raiskup 2017-04-18 14:02:15 UTC
It is really inconvenient to hear complaints like:

$ sudo bash -c '/usr/bin/modulecmd bash load existing-scl'
locate_module.c(245):ERROR:107: 'MODULEPATH' not set
ModuleCmd_Load.c(213):ERROR:105: Unable to locate a modulefile for 'existing-scl'

So I would propose to not strictly *require* MODULEPATH variable, but have it as
an option (let's have a set of directories we load by default, even if
MODULEPATH is not set).

Comment 1 Jan Kurik 2017-08-15 07:57:42 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 27 development cycle.
Changing version to '27'.

Comment 2 Pavel Raiskup 2017-11-10 17:56:57 UTC
Closing in favor of older bug-ID.

*** This bug has been marked as a duplicate of bug 1139165 ***


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