Bug 220260

Summary: A bad "module use" command in /usr/share/Modules/modulefiles/modules
Product: [Fedora] Fedora Reporter: erikj
Component: environment-modulesAssignee: Orion Poplawski <orion>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 6CC: jh, kaf, michel
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 3.2.3-3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-02-09 18:24:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 213321    

Description erikj 2006-12-19 23:09:37 UTC
We have discovered that the environment-modules package has a problem
with it's "modules" module.

A "module load modules" command gives an error due to an erroneous
"module use" command at line 27 in /usr/share/Modules/modulefiles/modules.

wolfberry8% module load modules
ModuleCmd_Use.c(186):ERROR:11: Usage is 'use [-a|--append] dir [dir ...]'
modules(27):ERROR:102: Tcl command execution failed: module             use


Looking at the file, there is an incomplete "use" command at the end of
the module.

module          use

should be

module          use             /usr/share/Modules

Comment 1 erikj 2006-12-19 23:30:10 UTC
This was observed in environment-modules-3.2.3-2.fc6, which seems
to be the same version in the 'development' directory.

Comment 2 erikj 2006-12-20 03:27:23 UTC
I was messing around with the configure files when I realized the issue seems
to be that VERSIONPATH is not set when --with-version-path is unset AND module
versioning is off.  But the "modules" module file uses the @VERSIONPATH@ macro.

A quick fix that worked for me was to just specify the path on the configure
line like this:

 %build
-%configure --disable-versioning --prefix=%{_datadir}
--exec-prefix=%{_datadir}/Modules
+%configure --disable-versioning --prefix=%{_datadir}
--exec-prefix=%{_datadir}/Modules --with-version-path=/usr/share/Modules/modulefiles
 make %{?_smp_mflags}


Comment 3 Orion Poplawski 2007-02-09 18:24:29 UTC
Fixed in 3.2.3-3.fc6